From 2cb79089bf0fe44f820edc14a0dec6ba99b87346 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Fri, 7 Mar 2008 15:23:57 +0000 Subject: INTEGRATION: CWS cjksp1_DEV300 (1.6.774); FILE MERGED 2007/11/11 03:11:00 pflin 1.6.774.3: not write layout-grid-standard-mode inside the 2007/10/23 06:03:24 pflin 1.6.774.2: RESYNC: (1.6-1.7); FILE MERGED 2007/04/23 08:01:32 pflin 1.6.774.1: Text grid enhancement: grid layout refactor --- sw/inc/tgrditem.hxx | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/sw/inc/tgrditem.hxx b/sw/inc/tgrditem.hxx index 3e2551ff25..a3c387a6f3 100644 --- a/sw/inc/tgrditem.hxx +++ b/sw/inc/tgrditem.hxx @@ -4,9 +4,9 @@ * * $RCSfile: tgrditem.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: hr $ $Date: 2007-09-27 08:13:36 $ + * last change: $Author: kz $ $Date: 2008-03-07 16:23:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -65,6 +65,10 @@ class SW_DLLPUBLIC SwTextGridItem : public SfxPoolItem BOOL bPrintGrid; BOOL bDisplayGrid; + //for textgrid enhancement + sal_uInt16 nBaseWidth; + BOOL bSnapToChars; + BOOL bSquaredMode; public: SwTextGridItem(); virtual ~SwTextGridItem(); @@ -108,6 +112,21 @@ public: BOOL IsDisplayGrid() const { return bDisplayGrid; } BOOL GetDisplayGrid() const { return bDisplayGrid; } void SetDisplayGrid( BOOL bNew ) { bDisplayGrid = bNew; } + + //for textgrid enhancement + sal_uInt16 GetBaseWidth() const { return nBaseWidth;} + void SetBaseWidth( sal_uInt16 nNew ) { nBaseWidth = nNew; } + + BOOL IsSnapToChars() const { return bSnapToChars; } + BOOL GetSnapToChars() const { return bSnapToChars; } + void SetSnapToChars( BOOL bNew ) { bSnapToChars = bNew; } + + BOOL IsSquaredMode() const { return bSquaredMode; } + BOOL GetSquaredMode() const { return bSquaredMode; } + void SetSquaredMode( BOOL bNew ) { bSquaredMode = bNew; } + void SwitchPaperMode(BOOL bNew ); + + void Init(); }; inline const SwTextGridItem &SwAttrSet::GetTextGrid(BOOL bInP) const -- cgit v1.2.3