// use this class when you have an object like // interface XAnInterface which contains XHelperInterface in its inheritance hierarchy // interface XAnInterface // { // interface XHelperInterface; // [attribute, string] name; // } // or // interface XAnInterface : XHelperInterface; // { // [attribute, string] name; // } // // then this class can provide a default implementation of XHelperInterface, // you can use it like this // typedef InheritedHelperInterfaceImpl< XAnInterface > > AnInterfaceImpl_BASE; // class AnInterfaceImpl : public AnInterfaceImpl_BASE // { // public: // AnInterface( const Reference< HelperInterface >& xParent ) : AnInterfaceImpl_BASE( xParent ) {} // // implement XAnInterface methods only, no need to implement the XHelperInterface // // methods // virtual void setName( const OUString& ); // virtual OUString getName(); // } //
virtual css::uno::Any SAL_CALL Application( ) override { // The application could certainly be passed around in the context - seems // to make sense
css::uno::Reference< css::container::XNameAccess > xNameAccess( mxContext, css::uno::UNO_QUERY_THROW ); return xNameAccess->getByName( u"Application"_ustr );
}
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.