summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2018-09-14 18:56:23 +0200
committerRegina Henschel <rb.henschel@t-online.de>2018-09-21 11:32:34 +0200
commita9ec212c1b545d745285f0ab3119a80713b1d1f2 (patch)
treeca538b767f4f5ac69926e6da6c988a7175c21f6e /include/svtools
parented480e918b6c1d3566ebfdfae6687bc4a4a06c10 (diff)
tdf#67248 Use localized layer name only for display in UI
The internal management of layers was based on localized layer names. So it could happen, that a custom layer name was a standard layer name (which includes special handling) in one local and not in the other. The patch changes the implementation to use the same real layer names as in file, and use localized standard layer names only for display in the UI. Removes no longer needed RestoreLayerName() Removes convertToInternalName(), ersatz convertToLocalizedName() Removes no longer needed convertToExternalName() Includes fix for tdf#119956 in addition Change-Id: Iaedb73e4017e728f7ca3b0dc4aa7bb7f0e6ce6da Reviewed-on: https://gerrit.libreoffice.org/60507 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/tabbar.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx
index 0e5b93a5e861..94b3b029062f 100644
--- a/include/svtools/tabbar.hxx
+++ b/include/svtools/tabbar.hxx
@@ -376,6 +376,8 @@ private:
protected:
virtual void AddTabClick();
+ OUString GetAuxiliaryText(sal_uInt16 nPageId) const; // needed in derived class LayerTabBar
+ void SetAuxiliaryText(sal_uInt16 nPageId, const OUString& rText );
public:
static const sal_uInt16 APPEND;
@@ -405,7 +407,7 @@ public:
virtual void EndRenaming();
virtual void Mirror();
- void InsertPage( sal_uInt16 nPageId, const OUString& rText,
+ virtual void InsertPage( sal_uInt16 nPageId, const OUString& rText,
TabBarPageBits nBits = TabBarPageBits::NONE,
sal_uInt16 nPos = TabBar::APPEND );
void RemovePage( sal_uInt16 nPageId );
@@ -474,7 +476,7 @@ public:
void SwitchPage( const Point& rPos );
void EndSwitchPage();
- void SetPageText( sal_uInt16 nPageId, const OUString& rText );
+ virtual void SetPageText( sal_uInt16 nPageId, const OUString& rText );
OUString GetPageText( sal_uInt16 nPageId ) const;
OUString GetHelpText( sal_uInt16 nPageId ) const;
OString GetHelpId( sal_uInt16 nPageId ) const;