From df311b82a3df1576732dcf74a45c47316d31f7ee Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sat, 16 Mar 2013 16:35:34 -0300 Subject: Widget UI for Calc cell alignment page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Format - cell, alignment tab Change-Id: I78e4252064671720d41ad3af086b41d2efe06ac1 Reviewed-on: https://gerrit.libreoffice.org/2773 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- cui/source/inc/align.hxx | 69 ++++++++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 25 deletions(-) (limited to 'cui/source/inc') diff --git a/cui/source/inc/align.hxx b/cui/source/inc/align.hxx index c47afaedb14b..7e85836e1c3d 100644 --- a/cui/source/inc/align.hxx +++ b/cui/source/inc/align.hxx @@ -19,6 +19,23 @@ #ifndef _SVX_ALIGN_HXX #define _SVX_ALIGN_HXX +// list box indexes +#define ALIGNDLG_HORALIGN_STD 0 +#define ALIGNDLG_HORALIGN_LEFT 1 +#define ALIGNDLG_HORALIGN_CENTER 2 +#define ALIGNDLG_HORALIGN_RIGHT 3 +#define ALIGNDLG_HORALIGN_BLOCK 4 +#define ALIGNDLG_HORALIGN_FILL 5 +#define ALIGNDLG_HORALIGN_DISTRIBUTED 6 + +#define ALIGNDLG_VERALIGN_STD 0 +#define ALIGNDLG_VERALIGN_TOP 1 +#define ALIGNDLG_VERALIGN_MID 2 +#define ALIGNDLG_VERALIGN_BOTTOM 3 +#define ALIGNDLG_VERALIGN_BLOCK 4 +#define ALIGNDLG_VERALIGN_DISTRIBUTED 5 + + #include #include #include @@ -42,7 +59,7 @@ public: virtual ~AlignmentTabPage(); static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); - static sal_uInt16* GetRanges(); + static sal_uInt16* GetRanges(); virtual sal_Bool FillItemSet( SfxItemSet& rSet ); virtual void Reset( const SfxItemSet& rSet ); @@ -60,30 +77,32 @@ private: DECL_LINK( UpdateEnableHdl, void* ); private: - FixedLine maFlAlignment; - FixedText maFtHorAlign; - ListBox maLbHorAlign; - FixedText maFtIndent; - MetricField maEdIndent; - FixedText maFtVerAlign; - ListBox maLbVerAlign; - - FixedLine maFlOrient; - DialControl maCtrlDial; - FixedText maFtRotate; - WrapField maNfRotate; - FixedText maFtRefEdge; - ValueSet maVsRefEdge; - TriStateBox maCbStacked; - TriStateBox maCbAsianMode; - OrientationHelper maOrientHlp; - - FixedLine maFlProperties; - TriStateBox maBtnWrap; - TriStateBox maBtnHyphen; - TriStateBox maBtnShrink; - FixedText maFtFrameDir; - FrameDirListBox maLbFrameDir; + ListBox* m_pLbHorAlign; + FixedText* m_pFtIndent; + MetricField* m_pEdIndent; + ListBox* m_pLbVerAlign; + + DialControl* m_pCtrlDial; + FixedText* m_pFtRotate; + WrapField* m_pNfRotate; + FixedText* m_pFtRefEdge; + ValueSet* m_pVsRefEdge; + TriStateBox* m_pCbStacked; + TriStateBox* m_pCbAsianMode; + OrientationHelper* m_pOrientHlp; + + VclHBox* m_pBoxDirection; + TriStateBox* m_pBtnWrap; + TriStateBox* m_pBtnHyphen; + TriStateBox* m_pBtnShrink; + FrameDirListBox* m_pLbFrameDir; + + // hidden labels/string + FixedText* m_pFtBotLock; + FixedText* m_pFtTopLock; + FixedText* m_pFtCelLock; + FixedText* m_pFtABCD; + }; // ============================================================================ -- cgit