/** Implementation of the css::drawing::framework::ResourceId serviceandthecss::drawing::framework::XResourceId interface.
*/ class ResourceId final
: public ResourceIdInterfaceBase
{ public: /** Create a new, empty resource id.
*/
ResourceId();
/** Create a new resource id that is described by the given URLs. @paramrsResourceURLs ThefirstURLspecifiesthetypeofresource.TheotherURLs describeitsanchor. ThesetofURLsmaybeempty.Theresultisthenthesameas returnedbyResourceId()defaultconstructor.
*/
ResourceId (std::vector<OUString>&& rsResourceURLs);
/** Create a new resource id that has an empty anchor. @paramrsResourceURL WhenthisresourceURLisemptythentheresultingResourceId objectisidenticaltowhentheResourceId()defaultconstructor hadbeencalled.
*/
ResourceId ( const OUString& rsResourceURL);
/** Create a new resource id for the given resource type and an anchor thatisspecifiedbyasingleURL.Thisconstructorcanbeusedfor exampleforviewsthatareboundtopanes. @paramrsResourceURL TheURLoftheactualresource. @paramrsAnchorURL ThesingleURLoftheanchor.
*/
ResourceId ( const OUString& rsResourceURL, const OUString& rsAnchorURL);
/** Create a new resource id with an anchor that consists of a sequence ofURLsthatisextendedbyafurtherURL. @paramrsResourceURL TheURLoftheactualresource. @paramrsFirstAnchorURL ThisURLextendstheanchorgivenbyrAnchorURLs. @paramrAnchorURLs AnanchorasitisreturnedbyXResourceId::getAnchorURLs().
*/
ResourceId ( const OUString& rsResourceURL, const OUString& rsFirstAnchorURL, const css::uno::Sequence<OUString>& rAnchorURLs);
private: /** The set of URLs that consist of the resource URL at index 0 and the anchorURLsandindices1andabove.
*/
std::vector<OUString> maResourceURLs;
/** Compare the called ResourceId object to the given ResourceId object. Thisusestheimplementationofbothobjectstospeedupthe comparison.
*/
sal_Int16 CompareToLocalImplementation (const ResourceId& rId) const;
/** Compare the called ResourceId object to the given XResourceId object reference.ThecomparisonisdoneviatheUNOinterface.Namely, itusesthegetResourceURL()andthegetAnchorURLs()methodstoget accesstotheURLsofthegivenobject.
*/
sal_Int16 CompareToExternalImplementation (const css::uno::Reference<
css::drawing::framework::XResourceId>& rxId) const;
/** Return whether the called ResourceId object is bound to the anchor consistingoftheURLsgivenbypsFirstAnchorURLandpaAnchorURLs. @parampsFirstAnchorURL OptionalfirstURLoftheanchor.Thiscanbemissingorpresent independentlyofpaAnchorURLs. @parampaAnchorURLs OptionalsetofadditionalanchorURLs.Thiscanbemissingor presentindependentlyofpsFirstAnchorURL. @parameMode Thisspecifieswhetherthecalledresourcehastobedirectly boundtothegivenanchorinordertoreturn<TRUE/>orwhether itcanbeboundindirectly,too.
*/ bool IsBoundToAnchor ( const OUString* psFirstAnchorURL, const css::uno::Sequence<OUString>* paAnchorURLs,
css::drawing::framework::AnchorBindingMode eMode) const;
/** Return whether the called ResourceId object is bound to the anchor consistingoftheURLsinrResourceURLs. @paramrResourceURLs ApossiblyemptylistofanchorURLs. @parameMode Thisspecifieswhetherthecalledresourcehastobedirectly boundtothegivenanchorinordertoreturn<TRUE/>orwhether itcanbeboundindirectly,too.
*/ bool IsBoundToAnchor ( const ::std::vector<OUString>& rResourceURLs,
css::drawing::framework::AnchorBindingMode eMode) const;
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.