summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/pagefrm.hxx
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2002-02-05 14:00:23 +0000
committerAndreas Martens <ama@openoffice.org>2002-02-05 14:00:23 +0000
commit7cf9bba37553e2e27a53fad76fcc40e61e274284 (patch)
tree74aa141312971580b62df0ef0eb9101af4669ecc /sw/source/core/inc/pagefrm.hxx
parent04661914fc9ba80640f7aa4ba20e43e5f1fd6cf7 (diff)
Fix #96678#: Asian grid
Diffstat (limited to 'sw/source/core/inc/pagefrm.hxx')
-rw-r--r--sw/source/core/inc/pagefrm.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/inc/pagefrm.hxx b/sw/source/core/inc/pagefrm.hxx
index cd1b005bba44..181d7e0e54a6 100644
--- a/sw/source/core/inc/pagefrm.hxx
+++ b/sw/source/core/inc/pagefrm.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pagefrm.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: ama $ $Date: 2002-01-30 13:34:41 $
+ * last change: $Author: ama $ $Date: 2002-02-05 14:59:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -120,8 +120,6 @@ class SwPageFrm: public SwFtnBossFrm
BOOL bInvalidAutoCmplWrds :1; //Auto-Complete Wordliste aktualisieren
#ifdef VERTICAL_LAYOUT
BOOL bHasGrid :1; // Grid for Asian layout
- BOOL bShowGrid :1; // Display the grid
- BOOL bPrintGrid :1; // Print the grid
#endif
//Anpassung der RootSize und Benachrichtigungen beim Einsetzen,
//Entfernen und Groessenaenderungen der Seite.
@@ -197,10 +195,6 @@ public:
virtual void CheckDirection( BOOL bVert );
void PaintGrid( OutputDevice* pOut, SwRect &rRect ) const;
BOOL HasGrid() const { return bHasGrid; }
- BOOL ShowGrid() const { return bShowGrid; }
- BOOL PrintGrid() const { return bPrintGrid; }
- BOOL GetGrid( long& rGrid, long& rRuby, long& rLines,
- BOOL& rbLower, BOOL& rbCell ) const;
#endif
//Umrandungen aller Frms innerhalb der Seite Painten.
@@ -331,6 +325,12 @@ inline BOOL SwPageFrm::IsInvalidFly() const
return bInvalidFlyLayout || bInvalidFlyCntnt;
}
+#ifdef VERTICAL_LAYOUT
+#define GETGRID( pPage ) const SwTextGridItem *pGrid = NULL; \
+ {if( pPage && pPage->HasGrid() && GRID_NONE==(pGrid=(SwTextGridItem*)&pPage->\
+ GetPageDesc()->GetMaster().GetAttr(RES_TEXTGRID))->GetGridType() ) \
+ pGrid = NULL;}
+#endif
#endif //_PAGEFRM_HXX