diff options
author | Paris Oplopoios <paris.oplopoios@collabora.com> | 2023-03-16 03:58:18 +0200 |
---|---|---|
committer | Paris Oplopoios <parisoplop@gmail.com> | 2023-03-16 23:48:10 +0000 |
commit | 9f0cf00d29298ed55737928ec4dddc50ac850cd8 (patch) | |
tree | a4f69bb28a004e533306f31baf4a37d816c80f7d /sw/inc/viewopt.hxx | |
parent | 9310192a4a0af4e7e3e9ac6124cdd2a706dfedcb (diff) |
Update view options string based on theme
Update the view options string based on the theme when tiled rendering,
and make sure only the currently active view is updated
Change-Id: Ib24111848f2926fe7ae858ca2e18e946d980e83f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148943
Tested-by: Paris Oplopoios <parisoplop@gmail.com>
Reviewed-by: Paris Oplopoios <parisoplop@gmail.com>
Diffstat (limited to 'sw/inc/viewopt.hxx')
-rw-r--r-- | sw/inc/viewopt.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index 4c9dcf8e071b..a6fd5eea8a57 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -248,6 +248,7 @@ class SW_DLLPUBLIC SwViewOption { SwViewColors m_aColorConfig; static SwViewColors s_aInitialColorConfig; + OUString m_sThemeName; static sal_uInt16 s_nPixelTwips;// 1 Pixel == ? Twips @@ -314,6 +315,16 @@ public: return m_aColorConfig; } + void SetThemeName(const OUString& rThemeName) + { + m_sThemeName = rThemeName; + } + + OUString GetThemeName() const + { + return m_sThemeName; + } + static void SetInitialColorConfig(const SwViewColors& rColorConfig) { s_aInitialColorConfig = rColorConfig; |