diff options
author | Martin van Zijl <martin.vanzijl@gmail.com> | 2018-12-26 07:21:59 +1300 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-03-27 16:54:53 +0100 |
commit | a80317b602e175f780cd662b5526a538d053419a (patch) | |
tree | b916d77e36a21c8034534e11b53491a5149377e7 /sw/inc | |
parent | b7bc2105d5093543058716c12e4d88dffb00b752 (diff) |
tdf#60242 remember horizontal/vertical choice in split cells dialog
Change-Id: I25f6b7c8ff6aa678b597bbede0dd1492468f2f62
Reviewed-on: https://gerrit.libreoffice.org/65606
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/doc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/modcfg.hxx | 8 | ||||
-rw-r--r-- | sw/inc/swmodule.hxx | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 3ebbec5e1cc2..9bba13ef17be 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1197,6 +1197,8 @@ public: bool IsInsTableFormatNum() const; bool IsInsTableChangeNumFormat() const; bool IsInsTableAlignNum() const; + bool IsSplitVerticalByDefault() const; + void SetSplitVerticalByDefault(bool value); // From FEShell (for Undo and BModified). static void GetTabCols( SwTabCols &rFill, const SwCellFrame* pBoxFrame ); diff --git a/sw/inc/modcfg.hxx b/sw/inc/modcfg.hxx index 550cb1c332be..795d1f382fdc 100644 --- a/sw/inc/modcfg.hxx +++ b/sw/inc/modcfg.hxx @@ -155,6 +155,7 @@ class SwTableConfig : public utl::ConfigItem bool m_bInsTableFormatNum; // Table/Input/NumberRecognition // Automatic recognition of numbers. bool m_bInsTableChangeNumFormat; // Table/Input/NumberFormatRecognition // Automatic recognition of number formats. bool m_bInsTableAlignNum; // Table/Input/Alignment // Align numbers. + bool m_bSplitVerticalByDefault; // Table/Input/SplitVerticalByDefault // Split vertical by default. static const css::uno::Sequence<OUString>& GetPropertyNames(); @@ -303,6 +304,13 @@ public: config.m_aInsTableOpts = rOpts; config.SetModified();} + bool IsSplitVerticalByDefault(bool bHTML) const + { return bHTML ? m_aWebTableConfig.m_bSplitVerticalByDefault : m_aTableConfig.m_bSplitVerticalByDefault; } + void SetSplitVerticalByDefault(bool bHTML, bool b) + { auto & config = bHTML ? m_aWebTableConfig : m_aTableConfig; + config.m_bSplitVerticalByDefault = b; + config.SetModified();} + const InsCaptionOpt* GetCapOption(bool bHTML, const SwCapObjType eType, const SvGlobalName *pOleId); bool SetCapOption(bool bHTML, const InsCaptionOpt* pOpt); diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index eec00ab2f3e5..4e4577f3fc10 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -191,6 +191,8 @@ public: bool IsInsTableFormatNum(bool bHTML) const; bool IsInsTableChangeNumFormat(bool bHTML) const; bool IsInsTableAlignNum(bool bHTML) const; + bool IsSplitVerticalByDefault(bool bHTML) const; + void SetSplitVerticalByDefault(bool bHTML, bool value); // Redlining. std::size_t GetRedlineAuthor(); |