namespace com::sun::star::container { class XHierarchicalNameAccess; } namespace com::sun::star::lang { class XMultiServiceFactory; }
namespace sd::tools {
/** This class gives access to the configuration. Create an object of this classforonenodeoftheconfiguration.Thiswillbetherootnode. ItschildrenarethenaccessiblethroughthenewConfigurationAccess object.
*/ class ConfigurationAccess
{ public: enum WriteMode { READ_WRITE, READ_ONLY };
/** Create a new object to access the configuration entries below the givenroot. @paramrsRootName Nameoftheroot. @parameMode Thisflagspecifieswhethertogiveread-writeorread-only access.
*/
ConfigurationAccess( const OUString& rsRootName, const WriteMode eMode);
/** Return a configuration node below the root of the called object. @paramrsPathToNode Therelativepathfromtheroot(asgiventheconstructor)to thenode. @return Thetypeofthereturnednodevarieswiththerequestednode. Itisemptywhenthenodewasnotfound.
*/
css::uno::Any GetConfigurationNode ( const OUString& rsPathToNode);
/** Return a configuration node below the given node. @paramrxNode Thenodethatactsasroottothegivenrelativepath. @paramrsPathToNode Therelativepathfromthegivennodetotherequestednode. @return Thetypeofthereturnednodevarieswiththerequestednode. Itisemptywhenthenodewasnotfound.
*/ static css::uno::Any GetConfigurationNode ( const css::uno::Reference<css::container::XHierarchicalNameAccess>& rxNode, const OUString& rsPathToNode);
/** Write any changes that have been made back to the configuration. ThiscallisignoredwhenthecalledConfigurationAccessobjectwas notcreatewithread-writemode.
*/ void CommitChanges();
/** This functor is typically called for every item in a set. Its two parametersarethenameofkeyitem(oftenofnofurtherinterest) andthevalueoftheitem.
*/ typedef ::std::function<void ( const OUString&, const std::vector<css::uno::Any>&) > Functor;
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.