Added boolean option for inline control in extension

This commit is contained in:
Georgy Litvinov 2020-02-06 10:01:21 +01:00
parent 26cde24fdb
commit 9c66ab4d21
8 changed files with 18 additions and 1 deletions

View file

@ -82,6 +82,8 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
loadTextFieldOption(xProps, "PageBreakStyle");
loadCheckBoxOption(xProps, "InlineCSS");
// Special content
loadCheckBoxOption(xProps, "Notes");
@ -139,6 +141,7 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
helper.put("image_size", getCheckBoxStateAsBoolean("OriginalImageSize") ? "none" : "absolute");
// Special content
saveCheckBoxOption(xProps, helper, "InlineCSS", "css_inline");
saveCheckBoxOption(xProps, helper, "Notes", "notes");
saveCheckBoxOption(xProps, helper, "UseDublinCore", "use_dublin_core");
@ -200,6 +203,8 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
setControlEnabled("OriginalImageSize",!isLocked("image_size") && !isLocked("original_image_size"));
// Special content
setControlEnabled("InlineCSS",!isLocked("css_inline"));
setControlEnabled("Notes",!isLocked("notes"));
setControlEnabled("UseDublinCore",!isLocked("use_dublin_core"));

View file

@ -0,0 +1,5 @@
package properties;
public interface Property {
}

View file

@ -30,6 +30,7 @@
<prop oor:name="Config" oor:type="xs:short" />
<prop oor:name="ConfigName" oor:type="xs:string" />
<prop oor:name="ConvertToPx" oor:type="xs:boolean" />
<prop oor:name="InlineCSS" oor:type="xs:boolean" />
<prop oor:name="Scaling" oor:type="xs:int" />
<prop oor:name="ColumnScaling" oor:type="xs:int" />
<prop oor:name="OriginalImageSize" oor:type="xs:boolean"/>

View file

@ -180,6 +180,9 @@
<prop oor:name="UseTitleAsHeading" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="InlineCSS" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="UseSheetNamesAsHeadings" oor:type="xs:boolean">
<value>true</value>
</prop>

View file

@ -130,3 +130,4 @@
146.XhtmlOptions.MinimumLetterSpacing.Label=Minimum Letter Spacing
147.XhtmlOptions.MinimumLetterSpacing.HelpText=Minimum Letter Spacing
148.XhtmlOptions.MinLetterSpacing.HelpText=Minimum Letter Spacing Value
152.XhtmlOptions.InlineCSS.Label=Inline CSS

View file

@ -130,3 +130,4 @@
146.XhtmlOptions.MinimumLetterSpacing.Label=\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043C\u0435\u0436\u0441\u0438\u043C\u0432\u043E\u043B\u044C\u043D\u043E\u0435 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435
147.XhtmlOptions.MinimumLetterSpacing.HelpText=\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043C\u0435\u0436\u0441\u0438\u043C\u0432\u043E\u043B\u044C\u043D\u043E\u0435 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435
148.XhtmlOptions.MinLetterSpacing.HelpText=\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043C\u0435\u0436\u0441\u0438\u043C\u0432\u043E\u043B\u044C\u043D\u043E\u0435 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435
152.XhtmlOptions.InlineCSS.Label=Inline CSS

View file

@ -68,5 +68,6 @@
<dlg:text dlg:id="MinimumLetterSpacing" dlg:tab-index="29" dlg:left="9" dlg:top="63" dlg:width="138" dlg:height="12" dlg:help-text="&amp;147.XhtmlOptions.MinimumLetterSpacing.HelpText" dlg:value="&amp;146.XhtmlOptions.MinimumLetterSpacing.Label"/>
<dlg:textfield dlg:id="MinLetterSpacing" dlg:tab-index="30" dlg:left="151" dlg:top="63" dlg:width="29" dlg:height="12" dlg:help-text="&amp;148.XhtmlOptions.MinLetterSpacing.HelpText"/>
<dlg:textfield dlg:id="PageBreakStyle" dlg:tab-index="31" dlg:left="90" dlg:top="2" dlg:width="235" dlg:height="13" dlg:help-text="&amp;151.XhtmlOptions.PageBreakStyle.HelpText" dlg:value="&amp;152.XhtmlOptions.PageBreakStyle.Text"/>
<dlg:checkbox dlg:id="InlineCSS" dlg:tab-index="32" dlg:left="208" dlg:top="38" dlg:width="81" dlg:height="12" dlg:help-text="&amp;151.XhtmlOptions.InlineCSS.HelpText" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:OptionsNotes" dlg:value="&amp;152.XhtmlOptions.InlineCSS.Label" dlg:checked="true"/>
</dlg:bulletinboard>
</dlg:window>

View file

@ -5,7 +5,7 @@
<identifier value="pro.litvinovg.writer2paginatedhtml" />
<version value="0.3.3" />
<version value="0.4.0" />
<dependencies>
<OpenOffice.org-minimal-version value="3.0" d:name="OpenOffice.org 3.0"/>