summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2001-05-10 16:31:17 +0000
committerDaniel Rentz <dr@openoffice.org>2001-05-10 16:31:17 +0000
commite431a92cddaa01e47629ae705d488b4fec1092ff (patch)
treecd5220ae80b7d19765a9b204e89054b7bfbdf826 /sc/inc
parente6d3bb572ffc9ef537faa8ed4152e1bb26474f87 (diff)
excel import/export of view settings
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/scextopt.hxx55
-rw-r--r--sc/inc/viewopti.hxx10
2 files changed, 34 insertions, 31 deletions
diff --git a/sc/inc/scextopt.hxx b/sc/inc/scextopt.hxx
index 6bee5d431250..7e53c137cc74 100644
--- a/sc/inc/scextopt.hxx
+++ b/sc/inc/scextopt.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scextopt.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: gt $ $Date: 2000-09-28 09:28:03 $
+ * last change: $Author: dr $ $Date: 2001-05-10 17:22:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -86,22 +86,24 @@ struct ScExtTabOptions
{
// Split -Info
UINT16 nTabNum;
- UINT16 nSplitX; // horiz. Pos. in Twips, 0 = kein Split
- UINT16 nSplitY; // vert. Pos. ~
- UINT16 nLeftSplitCol; // linke sichtbare Col im rechten Teil
- UINT16 nTopSplitRow; // obere sichtbare Row im unteren Teil
- UINT16 nActPane; // 0: ur, 1: or, 2: ul, 3: ol
-
- ScRange aLastSel; // letzte Selektion
+ UINT16 nSplitX; // horiz. pos. in twips, 0 = no split
+ UINT16 nSplitY; // vert. pos. ~
+ UINT16 nLeftCol; // leftmost column visible
+ UINT16 nTopRow; // topmost row visible
+ UINT16 nLeftSplitCol; // leftmost column after horizontal split
+ UINT16 nTopSplitRow; // topmost row after vertical split
+ UINT16 nActPane; // 0: br, 1: tr, 2: bl, 3: tl
+
+ ScRange aLastSel; // last selection
BOOL bValidSel;
- ScRange aDim; // original Excel-Groesse
+ ScRange aDim; // original Excel size
BOOL bValidDim;
- BOOL bFrozen; // = TRUE -> nSplitX / nSplitY Anzahl
- // sichtbarer Col/Row links bzw. oben
+ BOOL bSelected;
+ BOOL bFrozen; // = TRUE -> nSplitX / nSplitY contain
+ // count of visible columns/rows
inline ScExtTabOptions( void );
- inline ScExtTabOptions( const ScRange& rLastSel );
inline ScExtTabOptions( const ScExtTabOptions& rCpy );
inline void operator =( const ScExtTabOptions& rCpy );
@@ -148,8 +150,7 @@ public:
UINT32 nLinkCnt; // Zaehlt die Rekursionstufe beim Laden
// von externen Dokumenten
UINT16 nActTab; // aktuelle Tabelle
- UINT16 nVisLeftCol; // linke Col des sichtbaren Tabellenteils
- UINT16 nVisTopRow; // rechte Row des sichtbaren Tabellenteils
+ UINT16 nSelTabs; // count of selected sheets
Color* pGridCol; // Farbe Grid und Row-/Col-Heading
UINT16 nZoom; // in %
// Cursor
@@ -162,9 +163,10 @@ public:
ScExtDocOptions& operator =( const ScExtDocOptions& rCpy );
- void SetGridCol( BYTE nR, BYTE nG, BYTE nB );
+ void SetExtTabOptions( UINT16 nTabNum, ScExtTabOptions* pTabOpt );
+
+ void SetGridCol( const Color& rColor );
void SetActTab( UINT16 nTab );
- void SetVisCorner( UINT16 nCol, UINT16 nRow );
void SetCursor( UINT16 nCol, UINT16 nRow );
void SetZoom( UINT16 nZaehler, UINT16 nNenner );
@@ -215,16 +217,9 @@ inline const String* CodenameList::Act( void ) const
inline ScExtTabOptions::ScExtTabOptions( void )
{
- nSplitX = nSplitY = nLeftSplitCol = nTopSplitRow = nActPane = 0;
- bFrozen = bValidSel = bValidDim = FALSE;
-}
-
-
-inline ScExtTabOptions::ScExtTabOptions( const ScRange& rLastSel ) : aLastSel( rLastSel )
-{
- nTabNum = nSplitX = nSplitY = nLeftSplitCol = nTopSplitRow = nActPane = 0;
- bFrozen = bValidDim = FALSE;
- bValidSel = TRUE;
+ nTabNum = nSplitX = nSplitY = nLeftCol = nTopRow = nLeftSplitCol = nTopSplitRow = 0;
+ nActPane = 3;
+ bSelected = bFrozen = bValidSel = bValidDim = FALSE;
}
@@ -233,11 +228,14 @@ inline ScExtTabOptions::ScExtTabOptions( const ScExtTabOptions& rCpy )
nTabNum = rCpy.nTabNum;
nSplitX = rCpy.nSplitX;
nSplitY = rCpy.nSplitY;
+ nLeftCol = rCpy.nLeftCol;
+ nTopRow = rCpy.nTopRow;
nLeftSplitCol = rCpy.nLeftSplitCol;
nTopSplitRow = rCpy.nTopSplitRow;
nActPane = rCpy.nActPane;
aLastSel = rCpy.aLastSel;
aDim = rCpy.aDim;
+ bSelected = rCpy.bSelected;
bFrozen = rCpy.bFrozen;
bValidSel = rCpy.bValidSel;
bValidDim = rCpy.bValidDim;
@@ -249,11 +247,14 @@ inline void ScExtTabOptions::operator =( const ScExtTabOptions& rCpy )
nTabNum = rCpy.nTabNum;
nSplitX = rCpy.nSplitX;
nSplitY = rCpy.nSplitY;
+ nLeftCol = rCpy.nLeftCol;
+ nTopRow = rCpy.nTopRow;
nLeftSplitCol = rCpy.nLeftSplitCol;
nTopSplitRow = rCpy.nTopSplitRow;
nActPane = rCpy.nActPane;
aLastSel = rCpy.aLastSel;
aDim = rCpy.aDim;
+ bSelected = rCpy.bSelected;
bFrozen = rCpy.bFrozen;
bValidSel = rCpy.bValidSel;
bValidDim = rCpy.bValidDim;
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx
index 4cd189a3073d..ed2dc7e65b99 100644
--- a/sc/inc/viewopti.hxx
+++ b/sc/inc/viewopti.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewopti.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: nn $ $Date: 2000-11-02 19:10:56 $
+ * last change: $Author: dr $ $Date: 2001-05-10 17:22:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -109,8 +109,10 @@ enum ScVObjType
VOBJ_TYPE_DRAW
};
-#define MAX_OPT (USHORT)VOPT_BIGHANDLES+1
-#define MAX_TYPE (USHORT)VOBJ_TYPE_DRAW+1
+#define MAX_OPT (USHORT)VOPT_BIGHANDLES+1
+#define MAX_TYPE (USHORT)VOBJ_TYPE_DRAW+1
+
+#define SC_STD_GRIDCOLOR COL_LIGHTGRAY
//==================================================================
// SvxGrid-Optionen mit Standard-Operatoren