Thiscacheactslikeasingletonwithalifetimeequaltothatofthesd module.
*/ class IconCache final : public SdGlobalResource
{ public: /** The lifetime of the returned reference is limited to that of the sd module.
*/ static IconCache& Instance();
/** Return the icon with the given resource id. @return ThereturnedImagemaybeemptywhenthereisnoiconforthe givenidoranerroroccurred.Shouldnothappenundernormal circumstances.
*/
Image GetIcon(const OUString& rResourceId);
private: class Implementation;
::std::unique_ptr<Implementation> mpImpl;
/** The constructor creates the one instance of the cache and registers itattheSdGlobalResourceContainertolimitislifetimetothatof thesdmodule.
*/
IconCache();
/** This destructor is called by SdGlobalResourceContainer.
*/ virtual ~IconCache() override;
};
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.