diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 11:05:34 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 11:05:34 +0000 |
commit | 4ac5ff1ff0c4bba253581d10cdeddb4a1f59084e (patch) | |
tree | 684513e19e019b76cca00044633e746e6e680b0a /svtools/inc | |
parent | 9e8b67232720603a50020525a0008e4454b27d93 (diff) |
INTEGRATION: CWS calcrtl (1.5.178); FILE MERGED
2003/11/13 10:23:41 dr 1.5.178.2: #106948# added virtual Mirror() function
2003/11/06 14:43:28 dr 1.5.178.1: #106948# TabBar supports permanent mirrored layout
Diffstat (limited to 'svtools/inc')
-rw-r--r-- | svtools/inc/tabbar.hxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/svtools/inc/tabbar.hxx b/svtools/inc/tabbar.hxx index 59badc3d9598..820da738b578 100644 --- a/svtools/inc/tabbar.hxx +++ b/svtools/inc/tabbar.hxx @@ -2,9 +2,9 @@ * * $RCSfile: tabbar.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: vg $ $Date: 2003-04-24 15:42:56 $ + * last change: $Author: hr $ $Date: 2004-02-03 12:05:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -389,7 +389,7 @@ private: long mnCurMaxWidth; long mnOffX; long mnOffY; - long mnOutWidth; + long mnLastOffX; long mnSplitSize; ULONG mnSwitchTime; WinBits mnWinStyle; @@ -409,6 +409,7 @@ private: BOOL mbInSelect; BOOL mbSelColor; BOOL mbSelTextColor; + BOOL mbMirrored; Link maSelectHdl; Link maDoubleClickHdl; Link maSplitHdl; @@ -418,7 +419,6 @@ private: Link maAllowRenamingHdl; Link maEndRenamingHdl; -#ifdef _SV_TABBAR_CXX void ImplInit( WinBits nWinStyle ); void ImplInitSettings( BOOL bFont, BOOL bBackground ); void ImplGetColors( Color& rFaceColor, Color& rFaceTextColor, @@ -433,7 +433,6 @@ private: void ImplActivatePage(); long ImplDeactivatePage(); DECL_LINK( ImplClickHdl, ImplTabButton* ); -#endif public: TabBar( Window* pParent, WinBits nWinStyle = WB_STDTABBAR ); @@ -456,6 +455,7 @@ public: virtual long StartRenaming(); virtual long AllowRenaming(); virtual void EndRenaming(); + virtual void Mirror(); void InsertPage( USHORT nPageId, const XubString& rText, TabBarPageBits nBits = 0, @@ -510,6 +510,10 @@ public: BOOL IsEditModeCanceled() const { return mbEditCanceled; } USHORT GetEditPageId() const { return mnEditId; } + /** Mirrors the entire control. It will draw RTL in LTR GUI, and vice versa. */ + void SetMirrored( BOOL bMirrored = TRUE ); + BOOL IsMirrored() const { return mbMirrored; } + BOOL StartDrag( const CommandEvent& rCEvt, Region& rRegion ); USHORT ShowDropPos( const Point& rPos ); void HideDropPos(); |