summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorPanos <panos1029@gmail.com>2021-03-25 20:01:08 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-29 22:38:13 +0200
commit6c241f991809dd9ab825baf400c6da77c1c130bd (patch)
tree886456be5f97d0826cca494e6194d7f154cc1787 /sw/inc
parent869f3fa36e2c6306252cee43b244240d4024a242 (diff)
tdf#98749 Move initialization of page defaults to writer core
A function (SetPageFormatToDefault) was created at sw/source/core/attr/format.cxx for the SwFormat class containing some hardcoded PageDescs defaults. The double setting of left was replaced with left, right The lines affected in sw/source/core/unocore/unostyle.cxx were replaced with the function call. Change-Id: I4ea548145d42321b696233995f6dba323c72d078 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113104 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/format.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx
index 29c3fab36033..c3d2aec20773 100644
--- a/sw/inc/format.hxx
+++ b/sw/inc/format.hxx
@@ -241,6 +241,8 @@ public:
inline const SwTableBoxFormula &GetTableBoxFormula( bool = true ) const;
inline const SwTableBoxValue &GetTableBoxValue( bool = true ) const;
+ void SetPageFormatToDefault();
+
/** SwFormat::IsBackgroundTransparent
Virtual method to determine, if background of format is transparent.