diff options
author | Niklas Nebel <nn@openoffice.org> | 2002-05-06 08:19:15 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2002-05-06 08:19:15 +0000 |
commit | 0fe9d97ac490a113e17bb19ede8dcba6327e353b (patch) | |
tree | 93ce994ab8444398c56b168c26c379559bdd0539 /sc/source/ui/inc/prevloc.hxx | |
parent | 746622501cb6e35c90fbf1f21fc671ac1ce372f2 (diff) |
#95584# added draw ranges to location data
Diffstat (limited to 'sc/source/ui/inc/prevloc.hxx')
-rw-r--r-- | sc/source/ui/inc/prevloc.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sc/source/ui/inc/prevloc.hxx b/sc/source/ui/inc/prevloc.hxx index 21c271e7d9cf..27ae0d972d38 100644 --- a/sc/source/ui/inc/prevloc.hxx +++ b/sc/source/ui/inc/prevloc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: prevloc.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: nn $ $Date: 2002-04-24 07:56:26 $ + * last change: $Author: nn $ $Date: 2002-05-06 09:18:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,6 +71,8 @@ #endif +#define SC_PREVIEW_MAXRANGES 4 + class Window; class String; class Point; @@ -125,6 +127,9 @@ class ScPreviewLocationData Window* pWindow; ScDocument* pDoc; MapMode aCellMapMode; + MapMode aDrawMapMode[SC_PREVIEW_MAXRANGES]; + Rectangle aDrawRectangle[SC_PREVIEW_MAXRANGES]; + USHORT nDrawRanges; USHORT nPrintTab; List aEntries; @@ -138,7 +143,8 @@ public: void SetCellMapMode( const MapMode& rMapMode ); void SetPrintTab( USHORT nNew ); void Clear(); - void AddCellRange( const Rectangle& rRect, const ScRange& rRange, BOOL bRepCol, BOOL bRepRow ); + void AddCellRange( const Rectangle& rRect, const ScRange& rRange, BOOL bRepCol, BOOL bRepRow, + const MapMode& rDrawMap ); void AddColHeaders( const Rectangle& rRect, USHORT nStartCol, USHORT nEndCol, BOOL bRepCol ); void AddRowHeaders( const Rectangle& rRect, USHORT nStartRow, USHORT nEndRow, BOOL bRepRow ); void AddHeaderFooter( const Rectangle& rRect, BOOL bHeader, BOOL bLeft ); @@ -150,6 +156,9 @@ public: // Get info on visible columns/rows in the visible area void GetTableInfo( const Rectangle& rVisiblePixel, ScPreviewTableInfo& rInfo ) const; + USHORT GetDrawRanges() const { return nDrawRanges; } + void GetDrawRange( USHORT nPos, Rectangle& rPixelRect, MapMode& rMapMode ) const; + BOOL GetHeaderPosition( Rectangle& rHeaderRect ) const; BOOL GetFooterPosition( Rectangle& rFooterRect ) const; BOOL IsHeaderLeft() const; |