sw/qa/extras/htmlexport/data/text-align-start-end.fodt | 130 +++++++++++++++++ sw/qa/extras/htmlexport/htmlexport2.cxx | 20 ++ sw/qa/extras/htmlimport/data/text-align-start-end.html | 25 +++ sw/qa/extras/htmlimport/htmlimport.cxx | 41 +++++ sw/source/filter/html/css1atr.cxx | 17 ++ sw/source/filter/html/css1kywd.hxx | 2 sw/source/filter/html/svxcss1.cxx | 2 7 files changed, 236 insertions(+), 1 deletion(-)
New commits: commit d60dd03fda17fc8b14fa8673e18e16ffa6368877 Author: Jonathan Clark <[email protected]> AuthorDate: Thu Jan 8 11:14:47 2026 -0700 Commit: Jonathan Clark <[email protected]> CommitDate: Sat Jan 17 19:13:06 2026 +0100 sw: Add para align start/end support to HTML filter Updates the HTML filter to map CSS text-align start and end onto SvxAdjust::ParaStart and ParaEnd. One point worth noting: the HTML filter was written to always prefer the align= attribute whenever possible. The align attribute doesn't allow start/end, so this change forces export of text-align as a style attribute when alignment is start or end. The align= attribute was deprecated in HTML 4.01 (published 1999), so we should probably stop writing it entirely at some point. Change-Id: Ic4b1285bfa3b90e74946d6a48b8cc094b0d89e97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196888 Tested-by: Jenkins Reviewed-by: Jonathan Clark <[email protected]> diff --git a/sw/qa/extras/htmlexport/data/text-align-start-end.fodt b/sw/qa/extras/htmlexport/data/text-align-start-end.fodt new file mode 100644 index 000000000000..17c4b806ca19 --- /dev/null +++ b/sw/qa/extras/htmlexport/data/text-align-start-end.fodt @@ -0,0 +1,130 @@ +<?xml version='1.0' encoding='UTF-8'?> +<office:document xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:c alcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns: meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" office:version="1.4" office:mimetype="application/vnd.oasis.opendocument.text"> + <office:meta><meta:creation-date>2026-01-08T13:21:12.261122194</meta:creation-date><meta:generator>LibreOfficeDev/26.8.0.0.alpha0$Linux_X86_64 LibreOffice_project/ceb5a97a4ed740d3ce84d84713e4b5cb1eacb8b1</meta:generator><meta:editing-duration>PT23S</meta:editing-duration><meta:editing-cycles>2</meta:editing-cycles><dc:date>2026-01-08T13:21:14.926317558</dc:date><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="4" meta:word-count="16" meta:character-count="104" meta:non-whitespace-character-count="92"/></office:meta> + <office:font-face-decls> + <style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Noto Sans1" svg:font-family="'Noto Sans'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Noto Serif CJK SC" svg:font-family="'Noto Serif CJK SC'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:styles> + <style:default-style style:family="graphic"> + <style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.3cm" draw:shadow-offset-y="0.3cm" draw:start-line-spacing-horizontal="0.283cm" draw:start-line-spacing-vertical="0.283cm" draw:end-line-spacing-horizontal="0.283cm" draw:end-line-spacing-vertical="0.283cm" style:writing-mode="lr-tb" style:flow-with-text="false"/> + <style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" loext:tab-stop-distance="0cm" style:font-independent-line-spacing="false"> + <style:tab-stops/> + </style:paragraph-properties> + <style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="CA" style:letter-kerning="true" style:font-name-asian="Noto Serif CJK SC" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Noto Sans1" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/> + </style:default-style> + <style:default-style style:family="paragraph"> + <style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" fo:hyphenation-keep="auto" loext:hyphenation-keep-type="column" loext:hyphenation-keep-line="false" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="1.251cm" style:writing-mode="page"/> + <style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="CA" style:letter-kerning="true" style:font-name-asian="Noto Serif CJK SC" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Noto Sans1" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false" loext:hyphenation-no-last-word="false" loext:hyphenation-word-char-count="5" loext:hyphenation-zone="no-limit" loext:hyphenation-compound-remain-char-count="2" loext:hyphenation-compound-push-char-count="2"/> + </style:default-style> + <style:default-style style:family="table"> + <style:table-properties table:border-model="collapsing"/> + </style:default-style> + <style:default-style style:family="table-row"> + <style:table-row-properties fo:keep-together="auto"/> + </style:default-style> + <style:style style:name="Standard" style:family="paragraph" style:class="text"/> + <text:outline-style style:name="Outline"> + <text:outline-level-style text:level="1" loext:num-list-format="%1%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="2" loext:num-list-format="%2%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="3" loext:num-list-format="%3%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="4" loext:num-list-format="%4%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="5" loext:num-list-format="%5%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="6" loext:num-list-format="%6%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="7" loext:num-list-format="%7%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="8" loext:num-list-format="%8%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="9" loext:num-list-format="%9%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + <text:outline-level-style text:level="10" loext:num-list-format="%10%" style:num-format=""> + <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> + <style:list-level-label-alignment text:label-followed-by="nothing"/> + </style:list-level-properties> + </text:outline-level-style> + </text:outline-style> + <text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/> + <text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/> + <text:linenumbering-configuration text:number-lines="false" text:offset="0.499cm" style:num-format="1" text:number-position="left" text:increment="5"/> + </office:styles> + <office:automatic-styles> + <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard"> + <style:paragraph-properties fo:text-align="start" style:justify-single-word="false" style:writing-mode="lr-tb"/> + <style:text-properties fo:language="en" fo:country="US"/> + </style:style> + <style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard"> + <style:paragraph-properties fo:text-align="start" style:justify-single-word="false" style:writing-mode="rl-tb" style:writing-mode-automatic="false"/> + <style:text-properties fo:language="en" fo:country="US"/> + </style:style> + <style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard"> + <style:paragraph-properties fo:text-align="end" style:justify-single-word="false" style:writing-mode="lr-tb"/> + <style:text-properties fo:language="en" fo:country="US"/> + </style:style> + <style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard"> + <style:paragraph-properties fo:text-align="end" style:justify-single-word="false" style:writing-mode="rl-tb" style:writing-mode-automatic="false"/> + <style:text-properties fo:language="en" fo:country="US"/> + </style:style> + <style:page-layout style:name="pm1"> + <style:page-layout-properties fo:page-width="21.59cm" fo:page-height="27.94cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.706cm" style:layout-grid-ruby-height="0.353cm" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0cm" loext:margin-gutter="0cm"> + <style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/> + </style:page-layout-properties> + <style:header-style/> + <style:footer-style/> + </style:page-layout> + <style:style style:name="dp1" style:family="drawing-page"> + <style:drawing-page-properties draw:background-size="full"/> + </style:style> + </office:automatic-styles> + <office:master-styles> + <style:master-page style:name="Standard" style:page-layout-name="pm1" draw:style-name="dp1"/> + </office:master-styles> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + <text:sequence-decl text:display-outline-level="0" text:name="Figure"/> + </text:sequence-decls> + <text:p text:style-name="P1">Start-aligned left to right</text:p> + <text:p text:style-name="P2">Start-aligned right to left</text:p> + <text:p text:style-name="P3">End-aligned left to right</text:p> + <text:p text:style-name="P4">End-aligned right to left</text:p> + </office:text> + </office:body> +</office:document> \ No newline at end of file diff --git a/sw/qa/extras/htmlexport/htmlexport2.cxx b/sw/qa/extras/htmlexport/htmlexport2.cxx index c1fe12df2435..1952fba15b30 100644 --- a/sw/qa/extras/htmlexport/htmlexport2.cxx +++ b/sw/qa/extras/htmlexport/htmlexport2.cxx @@ -1637,6 +1637,26 @@ CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, testReqifNoObjectBorderExport) assertXPath(pXmlDoc, "//reqif-xhtml:font", 0); } +CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, testTextAlignStartEnd) +{ + createSwDoc("text-align-start-end.fodt"); + + ExportToHTML(); + + xmlDocUniquePtr pDoc = parseXml(maTempFile); + CPPUNIT_ASSERT(pDoc); + + assertXPath(pDoc, "/html/body/p", 4); + assertXPath(pDoc, + "/html/body/p[1]/descendant-or-self::*[contains(@style, 'text-align: start')]", 1); + assertXPath(pDoc, + "/html/body/p[2]/descendant-or-self::*[contains(@style, 'text-align: start')]", 1); + assertXPath(pDoc, "/html/body/p[3]/descendant-or-self::*[contains(@style, 'text-align: end')]", + 1); + assertXPath(pDoc, "/html/body/p[4]/descendant-or-self::*[contains(@style, 'text-align: end')]", + 1); +} + } // end of anonymous namespace CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/sw/qa/extras/htmlimport/data/text-align-start-end.html b/sw/qa/extras/htmlimport/data/text-align-start-end.html new file mode 100644 index 000000000000..cab19a1b12f6 --- /dev/null +++ b/sw/qa/extras/htmlimport/data/text-align-start-end.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> + <title></title> + <meta name="generator" content="LibreOfficeDev 26.8.0.0.alpha0 (Linux)"/> + <meta name="created" content="2026-01-08T10:39:12.443381621"/> + <meta name="changed" content="2026-01-08T10:40:53.376461459"/> + <style type="text/css"> + @page { size: 21.59cm 27.94cm; margin: 2cm } + p { margin-bottom: 0.25cm; line-height: 115%; background: transparent } + a:link { color: #000080; text-decoration: underline } + a:visited { color: #800000; text-decoration: underline } + </style> +</head> +<body lang="en-CA" link="#000080" vlink="#800000" dir="ltr"><p lang="en-US" style="margin-bottom: 0cm; line-height: 100%; text-align: start"> +Start-aligned left to right</p> +<p lang="en-US" dir="rtl" style="margin-bottom: 0cm; line-height: 100%; text-align: start"> +Start-aligned right to left</p> +<p lang="en-US" style="margin-bottom: 0cm; line-height: 100%; text-align: end"> +End-aligned left to right</p> +<p lang="en-US" dir="rtl" style="margin-bottom: 0cm; line-height: 100%; text-align: end"> +End-aligned right to left</p> +</body> +</html> \ No newline at end of file diff --git a/sw/qa/extras/htmlimport/htmlimport.cxx b/sw/qa/extras/htmlimport/htmlimport.cxx index 842c5408d82c..0fcc747f310f 100644 --- a/sw/qa/extras/htmlimport/htmlimport.cxx +++ b/sw/qa/extras/htmlimport/htmlimport.cxx @@ -28,6 +28,7 @@ #include <sfx2/linkmgr.hxx> #include <comphelper/propertyvalue.hxx> +#include <wrtsh.hxx> #include <docsh.hxx> #include <editsh.hxx> #include <ndgrf.hxx> @@ -37,6 +38,10 @@ #include <fmtfsize.hxx> #include <frameformats.hxx> #include <unotxdoc.hxx> +#include <rootfrm.hxx> +#include <pagefrm.hxx> +#include <bodyfrm.hxx> +#include <txtfrm.hxx> namespace { @@ -675,6 +680,42 @@ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTdf155011) CPPUNIT_ASSERT_EQUAL(u"HTML"_ustr, getProperty<OUString>(xCursor, u"PageStyleName"_ustr)); } +CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTextAlignStartEnd) +{ + createSwWebDoc("text-align-start-end.html"); + + auto* pWrtShell = getSwDocShell()->GetWrtShell(); + + auto* pRoot = pWrtShell->GetLayout(); + + CPPUNIT_ASSERT(pRoot->GetLower()->IsPageFrame()); + auto* pPage = static_cast<SwPageFrame*>(pRoot->GetLower()); + + CPPUNIT_ASSERT(pPage->GetLower()->IsBodyFrame()); + auto* pBody = static_cast<SwBodyFrame*>(pPage->GetLower()); + + CPPUNIT_ASSERT(pBody->GetLower()->IsTextFrame()); + auto* pTextFrame = dynamic_cast<SwTextFrame*>(pBody->GetLower()); + CPPUNIT_ASSERT_EQUAL( + SvxAdjust::ParaStart, + pTextFrame->GetTextNodeForParaProps()->GetSwAttrSet().Get(RES_PARATR_ADJUST).GetAdjust()); + + pTextFrame = dynamic_cast<SwTextFrame*>(pTextFrame->GetNext()); + CPPUNIT_ASSERT_EQUAL( + SvxAdjust::ParaStart, + pTextFrame->GetTextNodeForParaProps()->GetSwAttrSet().Get(RES_PARATR_ADJUST).GetAdjust()); + + pTextFrame = dynamic_cast<SwTextFrame*>(pTextFrame->GetNext()); + CPPUNIT_ASSERT_EQUAL( + SvxAdjust::ParaEnd, + pTextFrame->GetTextNodeForParaProps()->GetSwAttrSet().Get(RES_PARATR_ADJUST).GetAdjust()); + + pTextFrame = dynamic_cast<SwTextFrame*>(pTextFrame->GetNext()); + CPPUNIT_ASSERT_EQUAL( + SvxAdjust::ParaEnd, + pTextFrame->GetTextNodeForParaProps()->GetSwAttrSet().Get(RES_PARATR_ADJUST).GetAdjust()); +} + } // end of anonymous namespace CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx index 892584bd0820..475b49406dac 100644 --- a/sw/source/filter/html/css1atr.cxx +++ b/sw/source/filter/html/css1atr.cxx @@ -2653,8 +2653,21 @@ static SwHTMLWriter& OutCSS1_SvxLineSpacing( SwHTMLWriter& rWrt, const SfxPoolIt static SwHTMLWriter& OutCSS1_SvxAdjust( SwHTMLWriter& rWrt, const SfxPoolItem& rHt ) { // Export Alignment in Style-Option only if the Tag does not allow ALIGN=xxx + // or if the align value is accepted by CSS text-align, but not ALIGN + auto fnUseAlignAttr = [&] { + switch(static_cast<const SvxAdjustItem&>(rHt).GetAdjust()) + { + default: + return true; + + case SvxAdjust::ParaStart: + case SvxAdjust::ParaEnd: + return false; + } + }; + if( rWrt.IsCSS1Source( CSS1_OUTMODE_PARA ) && - !rWrt.m_bNoAlign) + !rWrt.m_bNoAlign && fnUseAlignAttr()) return rWrt; std::string_view pStr; @@ -2664,6 +2677,8 @@ static SwHTMLWriter& OutCSS1_SvxAdjust( SwHTMLWriter& rWrt, const SfxPoolItem& r case SvxAdjust::Right: pStr = sCSS1_PV_right; break; case SvxAdjust::Block: pStr = sCSS1_PV_justify; break; case SvxAdjust::Center: pStr = sCSS1_PV_center; break; + case SvxAdjust::ParaStart: pStr = sCSS1_PV_start; break; + case SvxAdjust::ParaEnd: pStr = sCSS1_PV_end; break; default: ; } diff --git a/sw/source/filter/html/css1kywd.hxx b/sw/source/filter/html/css1kywd.hxx index 74c21bd88f62..b258047cbe87 100644 --- a/sw/source/filter/html/css1kywd.hxx +++ b/sw/source/filter/html/css1kywd.hxx @@ -123,6 +123,8 @@ constexpr inline std::string_view sCSS1_PV_left = "left"; constexpr inline std::string_view sCSS1_PV_center = "center"; constexpr inline std::string_view sCSS1_PV_right = "right"; constexpr inline std::string_view sCSS1_PV_justify = "justify"; +constexpr inline std::string_view sCSS1_PV_start = "start"; +constexpr inline std::string_view sCSS1_PV_end = "end"; constexpr inline std::string_view sCSS1_P_text_indent = "text-indent"; diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx index 7b18efd302d7..e116e30376ba 100644 --- a/sw/source/filter/html/svxcss1.cxx +++ b/sw/source/filter/html/svxcss1.cxx @@ -161,6 +161,8 @@ CSS1PropertyEnum const aTextAlignTable[] = { "center", sal_uInt16(SvxAdjust::Center) }, { "right", sal_uInt16(SvxAdjust::Right) }, { "justify", sal_uInt16(SvxAdjust::Block) }, + { "start", sal_uInt16(SvxAdjust::ParaStart)}, + { "end", sal_uInt16(SvxAdjust::ParaEnd) }, { nullptr, 0 } };
