35 const Reference<XResourceId>& rxResourceId,
40 if ( ! rxResourceId.is() || rxResourceId->getResourceURL().isEmpty())
41 throw css::lang::IllegalArgumentException();
49 const Reference<XConfiguration>& rxConfiguration)
51 if (!rxConfiguration.is())
68 return OUString::Concat(
"GenericConfigurationChangeRequest ")
70 ? std::u16string_view(
u"activate ") : std::u16string_view(
u"deactivate "))
Reference< XResourceId > mxResourceId
static OUString ResourceIdToString(const css::uno::Reference< css::drawing::framework::XResourceId > &rxResourceId)
Return a string representation of the given XResourceId object.
Mode
This enum specified whether the activation or deactivation of a resource is requested.
virtual void SAL_CALL setName(const OUString &rName) override
This call is ignored because the XNamed interface is (mis)used to give access to a human readable nam...
const css::uno::Reference< css::drawing::framework::XResourceId > mxResourceId
GenericConfigurationChangeRequest(const css::uno::Reference< css::drawing::framework::XResourceId > &rxResourceId, const Mode eMode)
Create a new object that represents the request for activation or deactivation of the specified resou...
virtual ~GenericConfigurationChangeRequest() noexcept override
virtual void SAL_CALL execute(const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration) override
The requested configuration change is executed on the given configuration.
virtual OUString SAL_CALL getName() override
Return a human readable string representation.