Change paragraph default style to DocBook.
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 9 Jul 2021 04:31:06 +0000 (06:31 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 9 Jul 2021 04:31:06 +0000 (06:31 +0200)
publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/Paragraph.java
publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/TextSection.java

index 8f9542cc2fdceeb2ebcec8f3e50f0b08e5d7a175..23f4111c95325a63347dc05e862a6f5ffa5b0e51 100644 (file)
@@ -7,6 +7,7 @@ import org.argeo.cms.ui.util.CmsUiUtils;
 import org.argeo.cms.ui.viewers.SectionPart;
 import org.argeo.cms.ui.widgets.EditableText;
 import org.argeo.cms.ui.widgets.TextStyles;
+import org.argeo.docbook.DbkType;
 
 /** An editable paragraph. */
 public class Paragraph extends EditableText implements SectionPart {
@@ -17,7 +18,7 @@ public class Paragraph extends EditableText implements SectionPart {
        public Paragraph(TextSection section, int style, Node node) throws RepositoryException {
                super(section, style, node);
                this.section = section;
-               CmsUiUtils.style(this, TextStyles.TEXT_PARAGRAPH);
+               CmsUiUtils.style(this, DbkType.para.name());
        }
 
        public TextSection getSection() {
index ba49f1a1d4b4cc749412ac0121b4c3323946681b..d7fe97994532e503dba1aaa2006aaea72edb2a99 100644 (file)
@@ -6,6 +6,7 @@ import org.argeo.cms.ui.util.CmsUiUtils;
 import org.argeo.cms.ui.viewers.EditablePart;
 import org.argeo.cms.ui.viewers.Section;
 import org.argeo.cms.ui.widgets.TextStyles;
+import org.argeo.docbook.DbkType;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
@@ -13,7 +14,7 @@ import org.eclipse.swt.widgets.Control;
 /** An editable section. */
 public class TextSection extends Section {
        private static final long serialVersionUID = -8625209546243220689L;
-       private String defaultTextStyle = TextStyles.TEXT_DEFAULT;
+       private String defaultTextStyle = DbkType.para.name();
        private String titleStyle;
 
        private final boolean flat;
@@ -38,7 +39,7 @@ public class TextSection extends Section {
                } else {
                        level = 0;
                }
-               // CmsUiUtils.style(this, TextStyles.TEXT_SECTION);
+               CmsUiUtils.style(this, DbkType.section.name());
        }
 
        public String getDefaultTextStyle() {