diff options
author | Jonathan Clark <jonathan@libreoffice.org> | 2024-11-07 02:23:02 -0700 |
---|---|---|
committer | Jonathan Clark <jonathan@libreoffice.org> | 2024-11-13 09:35:20 +0100 |
commit | d3a59f7a915f9cc0864f2c76ccf90b6cd6fea339 (patch) | |
tree | 79d370eb7e4e66e6e625c24e2e465c6c624b9ddb /sw/inc | |
parent | 510f0837882284d20b49da8ee1f4f909ed54f0b7 (diff) |
tdf#36709 sw: Writer layout for font-relative first-line indent
This change implements layout for font-relative paragraph first-line
indentation in Writer.
Change-Id: Ie8f386bcc13a43ab92d5c15654c24bfdfc62bd69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176216
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ndtxt.hxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx index c77e91a89371..48d9d287df50 100644 --- a/sw/inc/ndtxt.hxx +++ b/sw/inc/ndtxt.hxx @@ -43,6 +43,7 @@ class SwNumRule; class SwNodeNum; class SvxFirstLineIndentItem; class SvxTextLeftMarginItem; +struct SvxFontUnitMetrics; class SwXParagraph; namespace utl { @@ -530,13 +531,18 @@ public: Returns the combined first line indent of this text node and its numbering. - @param the first line indent of this text node taking the - numbering into account (return parameter) + @param rFirstOffset + the first line indent of this text node taking the numbering into + account (return parameter) + + @param rMetrics + helper structure containing font metrics, used for resolving font- + relative indentation @retval true this node has SwNodeNum and has numbering rule @retval false else */ - bool GetFirstLineOfsWithNum( short& rFirstOffset ) const; + bool GetFirstLineOfsWithNum( short& rFirstOffset, const SvxFontUnitMetrics& rMetrics ) const; SwTwips GetAdditionalIndentForStartingNewList() const; |