/** A configuration describes the resources of an application like panes, views,andtoolbarsandtheirrelationshipsthatarecurrentlyactive orarerequestedtobeactivated.ResourcesarespecifiedbyURLsrather thanreferencessothatnotonlythecurrentconfigurationbutalsoa requestedconfigurationcanberepresented.
Directmanipulationofaconfigurationobjectisnotadvisedwiththe exceptionoftheconfigurationcontrollerandobjectsthatimplementthe XConfigurationChangeOperationinterface.
*/ class Configuration final
: public ConfigurationInterfaceBase
{ public: /** Create a new configuration with a broadcaster that is used to send eventsaboutrequestedconfigurationchanges. @paramrxBroadcaster Thisbroadcasteristypicallythesameastheoneusedbythe ConfigurationController. @parambBroadcastRequestEvents Whenthisis<TRUE/>thenmodificationstotheconfiguration triggerthebroadcastingof"ResourceActivationRequestEvent"and "ResourceDeactivationRequestEvent".Whenthisflagis<FALSE/> theneventswithtype"ResourceActivationEvent"and "ResourceDeactivationEvent"arebroadcasted.
*/
Configuration (const css::uno::Reference<css::drawing::framework::XConfigurationControllerBroadcaster>& rxBroadcaster, bool bBroadcastRequestEvents); virtual ~Configuration() override;
/** Return a human readable string representation. This is used for debuggingpurposes.
*/ virtual OUString SAL_CALL getName() override;
/** This call is ignored because the XNamed interface is (mis)used to giveaccesstoahumanreadablenamefordebuggingpurposes.
*/ virtualvoid SAL_CALL setName (const OUString& rName) override;
private: class ResourceContainer; /** The resource container holds the URLs of unique resource and of resourcelinkedtouniqueresources.
*/
std::unique_ptr<ResourceContainer> mpResourceContainer;
/** The broadcaster used for notifying listeners of requests for configurationchanges.
*/
css::uno::Reference<css::drawing::framework::XConfigurationControllerBroadcaster>
mxBroadcaster;
bool mbBroadcastRequestEvents;
/** This private variant of the constructor is used for cloning a Configurationobject. @paramrResourceContainer ThenewConfigurationiscreatedwithacopyoftheelementsin thiscontainer.
*/
Configuration (const css::uno::Reference<css::drawing::framework::XConfigurationControllerBroadcaster>& rxBroadcaster, bool bBroadcastRequestEvents, const ResourceContainer& rResourceContainer);
/** Send an event to all interested listeners that a resource has been addedorremoved.Theeventissenttothelistenersviathe ConfigurationController. @paramrxResourceId Theresourcethatisaddedtoorremovedfromtheconfiguration. @parambActivation Thisspecifieswhetheranactivationordeactivationis broadcasted.ThembBroadcastRequestEventsmemberisalsotaken intoaccountwhentheactualeventtypefieldisdetermined.
*/ void PostEvent ( const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId, constbool bActivation);
/** When the called object has already been disposed this method throws anexceptionanddoesnotreturn.
/** Return whether the two given configurations contain the same resource ids.Theorderofresourceidsisignored.Emptyreferencesare treatedlikeemptyconfigurations.
*/ bool AreConfigurationsEquivalent ( const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration1, const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration2);
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.