diff options
author | Andreas Bregas <ab@openoffice.org> | 2009-06-17 13:32:41 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2009-06-17 13:32:41 +0000 |
commit | 179cb343c8534c04b4d53b01290cb93395893133 (patch) | |
tree | 6d81d65b061bbe014177efe1102665e88e8e99d9 /sc/inc | |
parent | 3027f5a9472bfbaaccc23d41e21ec01ad1f22c19 (diff) |
#i102261# OLE control event handler support
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/document.hxx | 5 | ||||
-rw-r--r-- | sc/inc/scextopt.hxx | 2 | ||||
-rw-r--r-- | sc/inc/servuno.hxx | 3 | ||||
-rw-r--r-- | sc/inc/table.hxx | 4 |
4 files changed, 13 insertions, 1 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index e21b0af336f0..f74d1b1f5753 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -287,6 +287,7 @@ private: ::std::auto_ptr<ScExternalRefManager> pExternalRefMgr; String aDocName; // opt: Dokumentname + String aDocCodeName; // opt: Dokumentname ScRangePairListRef xColNameRanges; ScRangePairListRef xRowNameRanges; @@ -433,6 +434,8 @@ public: SC_DLLPUBLIC const String& GetName() const { return aDocName; } void SetName( const String& r ) { aDocName = r; } + const String& GetCodeName() const { return aDocCodeName; } + void SetCodeName( const String& r ) { aDocCodeName = r; } void GetDocStat( ScDocStat& rDocStat ); @@ -523,6 +526,8 @@ public: SC_DLLPUBLIC BOOL HasTable( SCTAB nTab ) const; SC_DLLPUBLIC BOOL GetName( SCTAB nTab, String& rName ) const; + SC_DLLPUBLIC BOOL GetCodeName( SCTAB nTab, String& rName ) const; + SC_DLLPUBLIC BOOL SetCodeName( SCTAB nTab, String& rName ); SC_DLLPUBLIC BOOL GetTable( const String& rName, SCTAB& rTab ) const; SC_DLLPUBLIC inline SCTAB GetTableCount() const { return nMaxTableNumber; } SvNumberFormatterIndexTable* GetFormatExchangeList() const { return pFormatExchangeList; } diff --git a/sc/inc/scextopt.hxx b/sc/inc/scextopt.hxx index 4b3f763b4e8c..5f60fdc0c676 100644 --- a/sc/inc/scextopt.hxx +++ b/sc/inc/scextopt.hxx @@ -126,6 +126,8 @@ public: const String& GetCodeName( size_t nIdx ) const; /** Appends a codename for a sheet. */ void AppendCodeName( const String& rCodeName ); + void SetCodeName( const String& rCodeName, size_t nIdx ); + void DeleteCodeName( size_t nIdx ); private: ::std::auto_ptr< ScExtDocOptionsImpl > mxImpl; diff --git a/sc/inc/servuno.hxx b/sc/inc/servuno.hxx index ace44dc5be4d..a468c088d2d4 100644 --- a/sc/inc/servuno.hxx +++ b/sc/inc/servuno.hxx @@ -93,8 +93,9 @@ class ScDocShell; #define SC_SERVICE_FORMULAPARS 38 #define SC_SERVICE_OPCODEMAPPER 39 +#define SC_SERVICE_VBACODENAMEPROVIDER 40 -#define SC_SERVICE_COUNT 40 +#define SC_SERVICE_COUNT 41 #define SC_SERVICE_INVALID USHRT_MAX diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index e738ff5fbdb8..03be8eca157f 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -81,6 +81,7 @@ private: ScColumn aCol[MAXCOLCOUNT]; String aName; + String aCodeName; String aComment; BOOL bScenario; BOOL bLayoutRTL; @@ -212,6 +213,9 @@ public: void GetName( String& rName ) const; void SetName( const String& rNewName ); + void GetCodeName( String& rName ) const { rName = aCodeName; } + void SetCodeName( const String& rNewName ) { aCodeName = rNewName; } + const String& GetUpperName() const; const String& GetPageStyle() const { return aPageStyle; } |