diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-01 21:38:53 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-01 21:38:53 +0200 |
commit | d4a8a64c218a4640e9701356aa87701d5a80589b (patch) | |
tree | 2a94bafb512349b5ca13147c6039698eb34aeab5 /sc/inc | |
parent | 0ef96d2d92f754b56eb3b472b88c81da689bbb92 (diff) |
change to SCTAB from sal_Int16 and sal_Int32 for sheet index
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/appoptio.hxx | 6 | ||||
-rw-r--r-- | sc/inc/sheetdata.hxx | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sc/inc/appoptio.hxx b/sc/inc/appoptio.hxx index 53cf1b968b1a..84fbc86801ec 100644 --- a/sc/inc/appoptio.hxx +++ b/sc/inc/appoptio.hxx @@ -46,8 +46,8 @@ public: void SetDefaults(); // Set or get the initial tab count for new spreadsheet, it is used by VBA API currently. - void SetTabCountInNewSpreadsheet( sal_Int16 nCount ) { nTabCountInNewSpreadsheet = nCount; } - sal_Int16 GetTabCountInNewSpreadsheet() const { return nTabCountInNewSpreadsheet; } + void SetTabCountInNewSpreadsheet( SCTAB nCount ) { nTabCountInNewSpreadsheet = nCount; } + SCTAB GetTabCountInNewSpreadsheet() const { return nTabCountInNewSpreadsheet; } void SetAppMetric( FieldUnit eUnit ) { eMetric = eUnit; } FieldUnit GetAppMetric() const { return eMetric; } @@ -92,7 +92,7 @@ public: const ScAppOptions& operator= ( const ScAppOptions& rOpt ); private: - sal_Int16 nTabCountInNewSpreadsheet; + SCTAB nTabCountInNewSpreadsheet; FieldUnit eMetric; sal_uInt16 nLRUFuncCount; sal_uInt16* pLRUList; diff --git a/sc/inc/sheetdata.hxx b/sc/inc/sheetdata.hxx index b4790684ba05..8c6a2360a538 100644 --- a/sc/inc/sheetdata.hxx +++ b/sc/inc/sheetdata.hxx @@ -128,7 +128,7 @@ class ScSheetSaveData std::vector<bool> maBlocked; std::vector<ScStreamEntry> maStreamEntries; std::vector<ScStreamEntry> maSaveEntries; - sal_Int32 mnStartTab; + SCTAB mnStartTab; sal_Int32 mnStartOffset; ScNoteStyleEntry maPreviousNote; @@ -149,20 +149,20 @@ public: void AddTextStyle( const rtl::OUString& rName, const ScAddress& rCellPos, const ESelection& rSelection ); - void BlockSheet( sal_Int32 nTab ); - bool IsSheetBlocked( sal_Int32 nTab ) const; + void BlockSheet( SCTAB nTab ); + bool IsSheetBlocked( SCTAB nTab ) const; - void AddStreamPos( sal_Int32 nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset ); - void GetStreamPos( sal_Int32 nTab, sal_Int32& rStartOffset, sal_Int32& rEndOffset ) const; - bool HasStreamPos( sal_Int32 nTab ) const; + void AddStreamPos( SCTAB nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset ); + void GetStreamPos( SCTAB nTab, sal_Int32& rStartOffset, sal_Int32& rEndOffset ) const; + bool HasStreamPos( SCTAB nTab ) const; - void StartStreamPos( sal_Int32 nTab, sal_Int32 nStartOffset ); + void StartStreamPos( SCTAB nTab, sal_Int32 nStartOffset ); void EndStreamPos( sal_Int32 nEndOffset ); bool HasStartPos() const { return mnStartTab >= 0; } void ResetSaveEntries(); - void AddSavePos( sal_Int32 nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset ); + void AddSavePos( SCTAB nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset ); void UseSaveEntries(); void StoreInitialNamespaces( const SvXMLNamespaceMap& rNamespaces ); |