summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-12-07 22:33:44 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-12-07 22:35:28 -0500
commitc3f5bfb3c6ad03c3582c404c16c1707cddd8a7a7 (patch)
treecc60658bd5b62c670c950e3b4e5c4b6ecd12f7f6 /sc/inc
parent885b66496c5fdf09aa2402c9e2ec18d46933e5b9 (diff)
fdo#43534: Fully support external references in CELL function.
Some parameters don't work with external references, however, such as PROTECT, PREFIX and WIDTH.
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/externalrefmgr.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index e0f31580773e..e39ac2ed6077 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -107,9 +107,9 @@ public:
struct CellFormat
{
- bool mbIsSet;
- short mnType;
- sal_uInt32 mnIndex;
+ bool mbIsSet;
+ short mnType;
+ sal_uLong mnIndex;
explicit CellFormat();
};
@@ -118,8 +118,8 @@ private:
/** individual cell within cached external ref table. */
struct Cell
{
- TokenRef mxToken;
- sal_uInt32 mnFmtIndex;
+ TokenRef mxToken;
+ sal_uLong mnFmtIndex;
};
typedef ::boost::unordered_map<SCCOL, Cell> RowDataType;
typedef ::boost::unordered_map<SCROW, RowDataType> RowsDataType;
@@ -160,7 +160,7 @@ public:
* false _only when_ adding a range of cell
* values, for performance reasons.
*/
- SC_DLLPUBLIC void setCell(SCCOL nCol, SCROW nRow, TokenRef pToken, sal_uInt32 nFmtIndex = 0, bool bSetCacheRange = true);
+ SC_DLLPUBLIC void setCell(SCCOL nCol, SCROW nRow, TokenRef pToken, sal_uLong nFmtIndex = 0, bool bSetCacheRange = true);
SC_DLLPUBLIC TokenRef getCell(SCCOL nCol, SCROW nRow, sal_uInt32* pnFmtIndex = NULL) const;
bool hasRow( SCROW nRow ) const;
/** Set/clear referenced status flag only if current status is not
@@ -242,7 +242,7 @@ public:
void setRangeNameTokens(sal_uInt16 nFileId, const ::rtl::OUString& rName, TokenArrayRef pArray);
void setCellData(sal_uInt16 nFileId, const ::rtl::OUString& rTabName,
- SCCOL nCol, SCROW nRow, TokenRef pToken, sal_uInt32 nFmtIndex);
+ SCCOL nCol, SCROW nRow, TokenRef pToken, sal_uLong nFmtIndex);
struct SingleRangeData
{
@@ -681,7 +681,7 @@ private:
void insertRefCell(sal_uInt16 nFileId, const ScAddress& rCell);
- void fillCellFormat(sal_uInt32 nFmtIndex, ScExternalRefCache::CellFormat* pFmt) const;
+ void fillCellFormat(sal_uLong nFmtIndex, ScExternalRefCache::CellFormat* pFmt) const;
ScExternalRefCache::TokenRef getSingleRefTokenFromSrcDoc(
sal_uInt16 nFileId, const ScDocument* pSrcDoc, const ScAddress& rCell,