enumclass ConfigNameFormat
{
LocalNode, // local node name, for use in XNameAccess etc. ("Item", "Q & A")
LocalPath, // one-level relative path, for use when building paths etc. ("Item", "Typ['Q & A']")
};
class UNOTOOLS_DLLPUBLIC ConfigItem : public ConfigurationBroadcaster
{ friendclass ConfigChangeListener_Impl; friendclass ConfigManager;
css::uno::Reference< css::container::XHierarchicalNameAccess>
GetTree(); /** writes the changed values into the sub tree.
Private and only called from non-virtual public Commit(). */ virtualvoid ImplCommit() = 0;
@seeNotify @seeDisableNotification
*/ bool EnableNotification(const css::uno::Sequence< OUString >& rNames, bool bEnableInternalNotification = false); /** disables notifications about changes on sub nodes/values, which previously had beenenabledwithEnableNotification @seeNotify @seeEnableNotification
*/ void DisableNotification();
//returns all members of a node in a specific format
css::uno::Sequence< OUString >
GetNodeNames(const OUString& rNode); //returns all members of a node in a specific format
css::uno::Sequence< OUString >
GetNodeNames(const OUString& rNode, ConfigNameFormat eFormat); // remove all members of a set bool ClearNodeSet(const OUString& rNode); // remove selected members of a set bool ClearNodeElements(const OUString& rNode,
css::uno::Sequence< OUString > const & rElements); // change or add members to a set bool SetSetProperties(const OUString& rNode, const css::uno::Sequence< css::beans::PropertyValue >& rValues); // remove, change or add members of a set bool ReplaceSetProperties(const OUString& rNode, const css::uno::Sequence< css::beans::PropertyValue >& rValues); // add a new node without setting any properties bool AddNode(const OUString& rNode, const OUString& rNewNode);
public: virtual ~ConfigItem() override;
ConfigItem(ConfigItem const &);
ConfigItem(ConfigItem &&);
ConfigItem & operator =(ConfigItem const &) = delete; // due to const sSubTree
ConfigItem & operator =(ConfigItem &&) = delete; // due to const sSubTree
/** is called from the ConfigManager before application ends of from the
PropertyChangeListener if the sub tree broadcasts changes. */ virtualvoid Notify( const css::uno::Sequence<OUString>& aPropertyNames)=0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.