LibreOffice Module svtools (master) 1
|
Public Member Functions | |
ExtendedColorConfig_Impl () | |
virtual | ~ExtendedColorConfig_Impl () override |
void | Load (const OUString &rScheme) |
void | CommitCurrentSchemeName () |
void | SetCurrentSchemeName (const OUString &rSchemeName) |
bool | ExistsScheme (std::u16string_view _sSchemeName) |
virtual void | Notify (const uno::Sequence< OUString > &aPropertyNames) override |
sal_Int32 | GetComponentCount () const |
OUString | GetComponentName (sal_uInt32 _nPos) const |
OUString | GetComponentDisplayName (const OUString &_sComponentName) const |
sal_Int32 | GetComponentColorCount (const OUString &_sName) const |
ExtendedColorConfigValue | GetComponentColorConfigValue (const OUString &_sName, sal_uInt32 _nPos) const |
ExtendedColorConfigValue | GetColorConfigValue (const OUString &_sComponentName, const OUString &_sName) |
void | SetColorConfigValue (const OUString &_sName, const ExtendedColorConfigValue &rValue) |
void | AddScheme (const OUString &rNode) |
void | RemoveScheme (const OUString &rNode) |
void | SettingsChanged () |
DECL_LINK (DataChangedEventListener, VclSimpleEvent &, void) | |
![]() | |
virtual | ~ConfigItem () override |
ConfigItem (ConfigItem const &)=default | |
ConfigItem (ConfigItem &&)=default | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (ConfigItem &&)=delete |
virtual void | Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0 |
const OUString & | GetSubTreeName () const |
bool | IsModified () const |
void | Commit () |
ConfigItemMode | GetMode () const |
![]() | |
void | AddListener (utl::ConfigurationListener *pListener) |
void | RemoveListener (utl::ConfigurationListener const *pListener) |
void | NotifyListeners (ConfigurationHints nHint) |
ConfigurationBroadcaster () | |
ConfigurationBroadcaster (ConfigurationBroadcaster const &) | |
virtual | ~ConfigurationBroadcaster () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
![]() | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Static Public Member Functions | |
static void | DisableBroadcast () |
static void | EnableBroadcast () |
static void | LockBroadcast () |
static void | UnlockBroadcast () |
![]() | |
static css::uno::Sequence< OUString > | GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat) |
static css::uno::Sequence< css::uno::Any > | GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales) |
static bool | PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales) |
static bool | ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode) |
static bool | ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales) |
static bool | SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
Private Types | |
typedef std::map< OUString, OUString > | TDisplayNames |
typedef std::map< OUString, ExtendedColorConfigValue > | TConfigValues |
typedef ::std::vector< TConfigValues::iterator > | TMapPos |
typedef ::std::pair< TConfigValues, TMapPos > | TComponentMapping |
typedef std::map< OUString, TComponentMapping > | TComponents |
Private Member Functions | |
uno::Sequence< OUString > | GetPropertyNames (const OUString &rScheme) |
void | FillComponentColors (const uno::Sequence< OUString > &_rComponents, const TDisplayNames &_rDisplayNames) |
virtual void | ImplCommit () override |
Private Attributes | |
TComponents | m_aConfigValues |
TDisplayNames | m_aComponentDisplayNames |
::std::vector< TComponents::iterator > | m_aConfigValuesPos |
OUString | m_sLoadedScheme |
bool | m_bIsBroadcastEnabled |
Static Private Attributes | |
static bool | m_bLockBroadcast = false |
static bool | m_bBroadcastWhenUnlocked = false |
Additional Inherited Members | |
![]() | |
ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE) | |
void | SetModified () |
void | ClearModified () |
css::uno::Sequence< css::uno::Any > | GetProperties (const css::uno::Sequence< OUString > &rNames) |
css::uno::Sequence< sal_Bool > | GetReadOnlyStates (const css::uno::Sequence< OUString > &rNames) |
bool | PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues) |
bool | EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false) |
void | DisableNotification () |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode) |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat) |
bool | ClearNodeSet (const OUString &rNode) |
bool | ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements) |
bool | SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | AddNode (const OUString &rNode, const OUString &rNewNode) |
![]() | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 63 of file extcolorcfg.cxx.
|
private |
Definition at line 68 of file extcolorcfg.cxx.
|
private |
Definition at line 69 of file extcolorcfg.cxx.
|
private |
Definition at line 66 of file extcolorcfg.cxx.
|
private |
Definition at line 65 of file extcolorcfg.cxx.
|
private |
Definition at line 67 of file extcolorcfg.cxx.
|
explicit |
Definition at line 193 of file extcolorcfg.cxx.
References Application::AddEventListener(), utl::ConfigItem::EnableNotification(), LINK, and Load().
|
overridevirtual |
Definition at line 206 of file extcolorcfg.cxx.
References LINK, and Application::RemoveEventListener().
void svtools::ExtendedColorConfig_Impl::AddScheme | ( | const OUString & | rNode | ) |
Definition at line 452 of file extcolorcfg.cxx.
References utl::ConfigItem::Commit(), and m_sLoadedScheme.
Referenced by Load().
void svtools::ExtendedColorConfig_Impl::CommitCurrentSchemeName | ( | ) |
Definition at line 422 of file extcolorcfg.cxx.
References m_sLoadedScheme, and utl::ConfigItem::PutProperties().
Referenced by ImplCommit(), and Load().
svtools::ExtendedColorConfig_Impl::DECL_LINK | ( | DataChangedEventListener | , |
VclSimpleEvent & | , | ||
void | |||
) |
|
static |
Definition at line 211 of file extcolorcfg.cxx.
References m_bIsBroadcastEnabled, and svtools::ExtendedColorConfig::m_pImpl.
Referenced by svtools::EditableExtendedColorConfig::DisableBroadcast().
|
static |
Definition at line 217 of file extcolorcfg.cxx.
References m_bIsBroadcastEnabled, and svtools::ExtendedColorConfig::m_pImpl.
Referenced by svtools::EditableExtendedColorConfig::EnableBroadcast().
bool svtools::ExtendedColorConfig_Impl::ExistsScheme | ( | std::u16string_view | _sSchemeName | ) |
Definition at line 431 of file extcolorcfg.cxx.
References comphelper::findValue(), and GetPropertyNames().
Referenced by Load().
|
private |
Definition at line 308 of file extcolorcfg.cxx.
References first, utl::ConfigItem::GetProperties(), GetPropertyNames(), o3tl::getToken(), i, svtools::lcl_addString(), m_aConfigValues, m_aConfigValuesPos, nIndex, sColor, sDisplayName, sName, and u.
Referenced by Load().
|
inline |
Definition at line 101 of file extcolorcfg.cxx.
References m_aConfigValues, and SAL_WARN.
Referenced by svtools::ExtendedColorConfig::GetColorValue().
ExtendedColorConfigValue svtools::ExtendedColorConfig_Impl::GetComponentColorConfigValue | ( | const OUString & | _sName, |
sal_uInt32 | _nPos | ||
) | const |
Definition at line 161 of file extcolorcfg.cxx.
References _nPos, and m_aConfigValues.
Referenced by svtools::ExtendedColorConfig::GetComponentColorConfigValue().
sal_Int32 svtools::ExtendedColorConfig_Impl::GetComponentColorCount | ( | const OUString & | _sName | ) | const |
Definition at line 150 of file extcolorcfg.cxx.
References m_aConfigValues.
Referenced by svtools::ExtendedColorConfig::GetComponentColorCount().
sal_Int32 svtools::ExtendedColorConfig_Impl::GetComponentCount | ( | ) | const |
Definition at line 145 of file extcolorcfg.cxx.
References m_aConfigValues.
Referenced by svtools::ExtendedColorConfig::GetComponentCount().
OUString svtools::ExtendedColorConfig_Impl::GetComponentDisplayName | ( | const OUString & | _sComponentName | ) | const |
Definition at line 174 of file extcolorcfg.cxx.
References m_aComponentDisplayNames.
Referenced by svtools::ExtendedColorConfig::GetComponentDisplayName().
OUString svtools::ExtendedColorConfig_Impl::GetComponentName | ( | sal_uInt32 | _nPos | ) | const |
Definition at line 183 of file extcolorcfg.cxx.
References _nPos, and m_aConfigValuesPos.
Referenced by svtools::ExtendedColorConfig::GetComponentName().
|
private |
Definition at line 135 of file extcolorcfg.cxx.
References utl::ConfigItem::GetNodeNames(), and i.
Referenced by ExistsScheme(), FillComponentColors(), and Load().
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 383 of file extcolorcfg.cxx.
References CommitCurrentSchemeName(), m_aConfigValues, m_sLoadedScheme, sColor, utl::ConfigItem::SetSetProperties(), and u.
void svtools::ExtendedColorConfig_Impl::Load | ( | const OUString & | rScheme | ) |
Definition at line 229 of file extcolorcfg.cxx.
References AddScheme(), CommitCurrentSchemeName(), ExistsScheme(), FillComponentColors(), utl::ConfigItem::GetProperties(), GetPropertyNames(), o3tl::getToken(), svtools::lcl_addString(), m_aComponentDisplayNames, m_aConfigValues, m_aConfigValuesPos, m_sLoadedScheme, nIndex, sDisplayName, sName, and u.
Referenced by ExtendedColorConfig_Impl(), and Notify().
|
static |
Definition at line 474 of file extcolorcfg.cxx.
References m_bLockBroadcast.
Referenced by svtools::EditableExtendedColorConfig::EditableExtendedColorConfig().
|
overridevirtual |
Definition at line 368 of file extcolorcfg.cxx.
References SfxBroadcaster::Broadcast(), Load(), m_bBroadcastWhenUnlocked, and m_bLockBroadcast.
void svtools::ExtendedColorConfig_Impl::RemoveScheme | ( | const OUString & | rNode | ) |
Definition at line 461 of file extcolorcfg.cxx.
References utl::ConfigItem::ClearNodeElements().
void svtools::ExtendedColorConfig_Impl::SetColorConfigValue | ( | const OUString & | _sName, |
const ExtendedColorConfigValue & | rValue | ||
) |
Definition at line 440 of file extcolorcfg.cxx.
References svtools::ExtendedColorConfigValue::getName(), m_aConfigValues, and utl::ConfigItem::SetModified().
|
inline |
Definition at line 91 of file extcolorcfg.cxx.
References m_sLoadedScheme.
void svtools::ExtendedColorConfig_Impl::SettingsChanged | ( | ) |
Definition at line 467 of file extcolorcfg.cxx.
References SfxBroadcaster::Broadcast().
|
static |
Definition at line 479 of file extcolorcfg.cxx.
References SfxBroadcaster::Broadcast(), m_bBroadcastWhenUnlocked, m_bIsBroadcastEnabled, m_bLockBroadcast, and svtools::ExtendedColorConfig::m_pImpl.
Referenced by svtools::EditableExtendedColorConfig::~EditableExtendedColorConfig().
|
private |
Definition at line 71 of file extcolorcfg.cxx.
Referenced by GetComponentDisplayName(), and Load().
|
private |
Definition at line 70 of file extcolorcfg.cxx.
Referenced by FillComponentColors(), GetColorConfigValue(), GetComponentColorConfigValue(), GetComponentColorCount(), GetComponentCount(), ImplCommit(), Load(), and SetColorConfigValue().
|
private |
Definition at line 72 of file extcolorcfg.cxx.
Referenced by FillComponentColors(), GetComponentName(), and Load().
|
staticprivate |
Definition at line 77 of file extcolorcfg.cxx.
Referenced by Notify(), and UnlockBroadcast().
|
private |
Definition at line 75 of file extcolorcfg.cxx.
Referenced by DisableBroadcast(), EnableBroadcast(), and UnlockBroadcast().
|
staticprivate |
Definition at line 76 of file extcolorcfg.cxx.
Referenced by LockBroadcast(), Notify(), and UnlockBroadcast().
|
private |
Definition at line 74 of file extcolorcfg.cxx.
Referenced by AddScheme(), CommitCurrentSchemeName(), ImplCommit(), Load(), and SetCurrentSchemeName().