LibreOffice Module svtools (master) 1
|
Public Types | |
enum class | SetModifiedFlag { SET , DONT_SET } |
Public Member Functions | |
SvtMiscOptions_Impl () | |
virtual | ~SvtMiscOptions_Impl () override |
virtual void | Notify (const Sequence< OUString > &seqPropertyNames) override |
void | Load (const Sequence< OUString > &rPropertyNames) |
loads required data from the configuration. More... | |
void | SetSymbolsSize (sal_Int16 nSet) |
void | SetIconTheme (const OUString &theme, SetModifiedFlag setModified) |
Set the icon theme. More... | |
bool | IconThemeWasSetAutomatically () const |
void | AddListenerLink (const Link< LinkParamNone *, void > &rLink) |
void | RemoveListenerLink (const Link< LinkParamNone *, void > &rLink) |
void | CallListeners () |
Static Public Member Functions | |
static OUString | GetIconTheme () |
Private Member Functions | |
virtual void | ImplCommit () override |
Static Private Member Functions | |
static Sequence< OUString > | GetPropertyNames () |
Private Attributes | |
::std::vector< Link< LinkParamNone *, void > > | aList |
sal_Int16 | m_nSymbolsSize |
bool | m_bIsSymbolsSizeRO |
bool | m_bIsSymbolsStyleRO |
bool | m_bIconThemeWasSetAutomatically |
Definition at line 61 of file miscopt.cxx.
|
strong |
Enumerator | |
---|---|
SET | |
DONT_SET |
Definition at line 102 of file miscopt.cxx.
SvtMiscOptions_Impl::SvtMiscOptions_Impl | ( | ) |
Definition at line 145 of file miscopt.cxx.
References DBG_ASSERT, DONT_SET, GetPropertyNames(), Load(), m_bIsSymbolsSizeRO, m_bIsSymbolsStyleRO, m_nSymbolsSize, PROPERTYHANDLE_SYMBOLSET, PROPERTYHANDLE_SYMBOLSTYLE, and SetIconTheme().
|
overridevirtual |
Definition at line 206 of file miscopt.cxx.
void SvtMiscOptions_Impl::AddListenerLink | ( | const Link< LinkParamNone *, void > & | rLink | ) |
Definition at line 248 of file miscopt.cxx.
References aList.
void SvtMiscOptions_Impl::CallListeners | ( | ) |
Definition at line 258 of file miscopt.cxx.
References aList.
Referenced by Notify(), SetIconTheme(), and SetSymbolsSize().
|
static |
Definition at line 271 of file miscopt.cxx.
References StyleSettings::DetermineIconTheme(), Application::GetSettings(), and AllSettings::GetStyleSettings().
Referenced by SvtMiscOptions::GetIconTheme(), and ImplCommit().
|
staticprivate |
Definition at line 356 of file miscopt.cxx.
References PROPERTYNAME_ICONTHEME, PROPERTYNAME_NOTEBOOKBARICONSIZE, PROPERTYNAME_SIDEBARICONSIZE, and PROPERTYNAME_SYMBOLSET.
Referenced by ImplCommit(), Load(), and SvtMiscOptions_Impl().
|
inline |
Definition at line 119 of file miscopt.cxx.
References m_bIconThemeWasSetAutomatically.
|
overrideprivatevirtual |
Definition at line 314 of file miscopt.cxx.
References GetIconTheme(), GetPropertyNames(), m_bIconThemeWasSetAutomatically, m_bIsSymbolsSizeRO, m_bIsSymbolsStyleRO, m_nSymbolsSize, nCount, PROPERTYHANDLE_SYMBOLSET, PROPERTYHANDLE_SYMBOLSTYLE, and value.
void SvtMiscOptions_Impl::Load | ( | const Sequence< OUString > & | rPropertyNames | ) |
loads required data from the configuration.
It's called in the constructor to read all entries and form Notify to re-read changed settings
Definition at line 211 of file miscopt.cxx.
References DBG_ASSERT, DONT_SET, comphelper::findValue(), GetPropertyNames(), m_nSymbolsSize, PROPERTYHANDLE_SYMBOLSET, PROPERTYHANDLE_SYMBOLSTYLE, and SetIconTheme().
Referenced by Notify(), and SvtMiscOptions_Impl().
|
overridevirtual |
Definition at line 305 of file miscopt.cxx.
References CallListeners(), and Load().
void SvtMiscOptions_Impl::RemoveListenerLink | ( | const Link< LinkParamNone *, void > & | rLink | ) |
Definition at line 253 of file miscopt.cxx.
References aList.
void SvtMiscOptions_Impl::SetIconTheme | ( | const OUString & | theme, |
SetModifiedFlag | setModified | ||
) |
Set the icon theme.
theme | The name of the icon theme to use. |
setModified | Whether to call SetModified() and CallListeners(). |
Definition at line 277 of file miscopt.cxx.
References CallListeners(), StyleSettings::GetAutomaticallyChosenIconTheme(), Application::GetSettings(), AllSettings::GetStyleSettings(), m_bIconThemeWasSetAutomatically, Application::MergeSystemSettings(), SET, StyleSettings::SetIconTheme(), Application::SetSettings(), and AllSettings::SetStyleSettings().
Referenced by Load(), and SvtMiscOptions_Impl().
void SvtMiscOptions_Impl::SetSymbolsSize | ( | sal_Int16 | nSet | ) |
Definition at line 264 of file miscopt.cxx.
References CallListeners(), and m_nSymbolsSize.
|
private |
Definition at line 64 of file miscopt.cxx.
Referenced by AddListenerLink(), CallListeners(), and RemoveListenerLink().
|
private |
Definition at line 68 of file miscopt.cxx.
Referenced by IconThemeWasSetAutomatically(), ImplCommit(), and SetIconTheme().
|
private |
Definition at line 66 of file miscopt.cxx.
Referenced by ImplCommit(), and SvtMiscOptions_Impl().
|
private |
Definition at line 67 of file miscopt.cxx.
Referenced by ImplCommit(), and SvtMiscOptions_Impl().
|
private |
Definition at line 65 of file miscopt.cxx.
Referenced by ImplCommit(), Load(), SetSymbolsSize(), and SvtMiscOptions_Impl().