/** *TabBarforlayeradministration
*/ class DrawViewShell;
class SAL_DLLPUBLIC_RTTI LayerTabBar final
: public TabBar, public DropTargetHelper
{ public:
LayerTabBar (
DrawViewShell* pDrViewSh,
vcl::Window* pParent); virtualvoid dispose() override; virtual ~LayerTabBar() override;
/** Inform all listeners of this control that the current layer has been activated.Callthismethodafterswitchingthecurrentlayerandis notdoneelsewhere(likewhenusingctrl+pageup/downkeys).
*/ void SendActivatePageEvent();
/** Inform all listeners of this control that the current layer has been deactivated.Callthismethodbeforeswitchingthecurrentlayer andisnotdoneelsewhere(likewhenusingctrlpageup/downkeys).
*/ void SendDeactivatePageEvent();
// Expects not-localized, real layer name in rText. Generates a localized layer name // that will be displayed on the tab of the LayerTabBar and writes the real name // to maAuxiliaryText. In case you want no entry in maAuxiliaryText, use method from TabBar. virtualvoid InsertPage( sal_uInt16 nPageId, const OUString& rText,
TabBarPageBits nBits = TabBarPageBits::NONE,
sal_uInt16 nPos = TabBar::APPEND ) override; virtualvoid SetPageText( sal_uInt16 nPageId, const OUString& rText ) override;
// Returns the real layer name if exists and empty OUString otherwise. const OUString & GetLayerName(sal_uInt16 nPageId) const;
// Used e.g. in DeleteActualLayer() to test whether deleting is allowed. staticbool IsRealNameOfStandardLayer(std::u16string_view rName);
// Used e.g. in validity test of user entered names staticbool IsLocalizedNameOfStandardLayer(std::u16string_view rName);
// In case rName is one of the sUNO_LayerName_*, it generates a localized name, // otherwise it returns value of rName. static OUString convertToLocalizedName(const OUString& rName);
// Expects not-localized, real layer name in rText and writes it to maAuxiliaryText. void SetLayerName( sal_uInt16 nPageId, const OUString& rText );
};
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.