rangenam.hxx (38d50f7b) rangenam.hxx (dffa72de)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 63 unchanged lines hidden (view full) ---

72 ScDocument* pDoc;
73 sal_uInt16 nIndex;
74 sal_Bool bModified; // wird bei UpdateReference gesetzt/geloescht
75
76 // max row and column to use for wrapping of references. If -1 use the
77 // application's default.
78 SCROW mnMaxRow;
79 SCCOL mnMaxCol;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 63 unchanged lines hidden (view full) ---

72 ScDocument* pDoc;
73 sal_uInt16 nIndex;
74 sal_Bool bModified; // wird bei UpdateReference gesetzt/geloescht
75
76 // max row and column to use for wrapping of references. If -1 use the
77 // application's default.
78 SCROW mnMaxRow;
79 SCCOL mnMaxCol;
80 SCTAB aRangeNameScope; // table index reference as range name scope. 0 - sheet1, 1- sheet2. MAXTABCOUNT - Global
80
81 friend class ScRangeName;
82 ScRangeData( sal_uInt16 nIndex );
83public:
84 typedef ::std::map<sal_uInt16, sal_uInt16> IndexMap;
85
86 SC_DLLPUBLIC ScRangeData( ScDocument* pDoc,
87 const String& rName,

--- 17 unchanged lines hidden (view full) ---

105
106 virtual ScDataObject* Clone() const;
107
108 sal_Bool operator== (const ScRangeData& rData) const;
109
110 void GetName( String& rName ) const { rName = aName; }
111 const String& GetName( void ) const { return aName; }
112 const String& GetUpperName( void ) const { return aUpperName; }
81
82 friend class ScRangeName;
83 ScRangeData( sal_uInt16 nIndex );
84public:
85 typedef ::std::map<sal_uInt16, sal_uInt16> IndexMap;
86
87 SC_DLLPUBLIC ScRangeData( ScDocument* pDoc,
88 const String& rName,

--- 17 unchanged lines hidden (view full) ---

106
107 virtual ScDataObject* Clone() const;
108
109 sal_Bool operator== (const ScRangeData& rData) const;
110
111 void GetName( String& rName ) const { rName = aName; }
112 const String& GetName( void ) const { return aName; }
113 const String& GetUpperName( void ) const { return aUpperName; }
114 SC_DLLPUBLIC bool SetRangeScope( SCTAB Scope ); // 0 - sheet1, 1 - sheet2, MAXTABCOUNT - global
115 SCTAB GetRangeScope() const { return aRangeNameScope; }
116 String GetScopeSheetName( void ) const;
113 ScAddress GetPos() const { return aPos; }
114 // Der Index muss eindeutig sein. Ist er 0, wird ein neuer Index vergeben
115 void SetIndex( sal_uInt16 nInd ) { nIndex = nInd; }
116 sal_uInt16 GetIndex() const { return nIndex; }
117 ScTokenArray* GetCode() { return pCode; }
118 sal_uInt16 GetErrCode();
119 sal_Bool HasReferences() const;
120 void SetDocument( ScDocument* pDocument){ pDoc = pDocument; }

--- 74 unchanged lines hidden (view full) ---

195 ScRangeData* operator[]( const sal_uInt16 nIndex) const
196 { return (ScRangeData*)At(nIndex); }
197 virtual short Compare(ScDataObject* pKey1, ScDataObject* pKey2) const;
198 virtual sal_Bool IsEqual(ScDataObject* pKey1, ScDataObject* pKey2) const;
199
200//UNUSED2009-05 ScRangeData* GetRangeAtCursor( const ScAddress&, sal_Bool bStartOnly ) const;
201 SC_DLLPUBLIC ScRangeData* GetRangeAtBlock( const ScRange& ) const;
202
117 ScAddress GetPos() const { return aPos; }
118 // Der Index muss eindeutig sein. Ist er 0, wird ein neuer Index vergeben
119 void SetIndex( sal_uInt16 nInd ) { nIndex = nInd; }
120 sal_uInt16 GetIndex() const { return nIndex; }
121 ScTokenArray* GetCode() { return pCode; }
122 sal_uInt16 GetErrCode();
123 sal_Bool HasReferences() const;
124 void SetDocument( ScDocument* pDocument){ pDoc = pDocument; }

--- 74 unchanged lines hidden (view full) ---

199 ScRangeData* operator[]( const sal_uInt16 nIndex) const
200 { return (ScRangeData*)At(nIndex); }
201 virtual short Compare(ScDataObject* pKey1, ScDataObject* pKey2) const;
202 virtual sal_Bool IsEqual(ScDataObject* pKey1, ScDataObject* pKey2) const;
203
204//UNUSED2009-05 ScRangeData* GetRangeAtCursor( const ScAddress&, sal_Bool bStartOnly ) const;
205 SC_DLLPUBLIC ScRangeData* GetRangeAtBlock( const ScRange& ) const;
206
203 SC_DLLPUBLIC sal_Bool SearchName( const String& rName, sal_uInt16& rPos ) const;
207 SC_DLLPUBLIC bool SearchName( const String& rName, sal_uInt16& rPos, SCTAB Scope=MAXTABCOUNT) const;
204 // SearchNameUpper must be called with an upper-case search string
208 // SearchNameUpper must be called with an upper-case search string
205 sal_Bool SearchNameUpper( const String& rUpperName, sal_uInt16& rPos ) const;
209 bool SearchNameUpper( const String& rUpperName, sal_uInt16& rPos, SCTAB Scope=MAXTABCOUNT ) const;
210 /* added by for scope support */
211 bool HasRangeinSheetScope( SCTAB Scope );
212 bool RemoveRangeinScope(SCTAB Scope);
213 bool CopyRangeinScope(SCTAB oldScope, SCTAB newScope);
214 /* end add */
206 void UpdateReference(UpdateRefMode eUpdateRefMode,
207 const ScRange& rRange,
208 SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
209 void UpdateTabRef(SCTAB nTable, sal_uInt16 nFlag, SCTAB nNewTable = 0);
210 void UpdateTranspose( const ScRange& rSource, const ScAddress& rDest );
211 void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY );
212 virtual sal_Bool Insert(ScDataObject* pScDataObject);
213 SC_DLLPUBLIC ScRangeData* FindIndex(sal_uInt16 nIndex);
214 sal_uInt16 GetSharedMaxIndex() { return nSharedMaxIndex; }
215 void SetSharedMaxIndex(sal_uInt16 nInd) { nSharedMaxIndex = nInd; }
216 sal_uInt16 GetEntryIndex();
217};
218
219#endif
220
215 void UpdateReference(UpdateRefMode eUpdateRefMode,
216 const ScRange& rRange,
217 SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
218 void UpdateTabRef(SCTAB nTable, sal_uInt16 nFlag, SCTAB nNewTable = 0);
219 void UpdateTranspose( const ScRange& rSource, const ScAddress& rDest );
220 void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY );
221 virtual sal_Bool Insert(ScDataObject* pScDataObject);
222 SC_DLLPUBLIC ScRangeData* FindIndex(sal_uInt16 nIndex);
223 sal_uInt16 GetSharedMaxIndex() { return nSharedMaxIndex; }
224 void SetSharedMaxIndex(sal_uInt16 nInd) { nSharedMaxIndex = nInd; }
225 sal_uInt16 GetEntryIndex();
226};
227
228#endif
229