summaryrefslogtreecommitdiff
path: root/sc/inc/scmatrix.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-06 14:19:59 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-06 14:19:59 +0000
commit1dd831b0bc5e78f0b9c5995a52f7d849b2234b1c (patch)
tree386ce43ba46f9adf2745a123618c52996ffb8fa0 /sc/inc/scmatrix.hxx
parent6d251e393d96aea108f4b2b81fe3ede5e333e9bc (diff)
INTEGRATION: CWS odff (1.8.90); FILE MERGED
2008/01/31 15:34:21 er 1.8.90.3: #i32340# ScFormulaResult, third wave 2008/01/24 20:42:16 er 1.8.90.2: #i32340# ScFormulaResult, handle error code and matrix clone 2007/08/30 09:57:29 er 1.8.90.1: resynced to cws xmlfilter02
Diffstat (limited to 'sc/inc/scmatrix.hxx')
-rw-r--r--sc/inc/scmatrix.hxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx
index 14859cb01a0e..fddd3bbdfcc9 100644
--- a/sc/inc/scmatrix.hxx
+++ b/sc/inc/scmatrix.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: scmatrix.hxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2008-01-10 13:09:53 $
+ * last change: $Author: kz $ $Date: 2008-03-06 15:19:59 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -155,6 +155,18 @@ public:
return (nType & SC_MATVAL_STRING) != 0;
}
+ /// Empty, but not empty path or any other type.
+ inline static bool IsEmptyType( ScMatValType nType )
+ {
+ return (nType & SC_MATVAL_EMPTY) == SC_MATVAL_EMPTY;
+ }
+
+ /// Empty path, but not empty or any other type.
+ inline static bool IsEmptyPathType( ScMatValType nType )
+ {
+ return (nType & SC_MATVAL_EMPTYPATH) == SC_MATVAL_EMPTYPATH;
+ }
+
/** If nC*nR results in more than GetElementsMax() entries, a 1x1 matrix is
created instead and a double error value (errStackOverflow) is set.
Compare nC and nR with a GetDimensions() call to check. */
@@ -319,6 +331,7 @@ public:
typedef ScSimpleIntrusiveReference< class ScMatrix > ScMatrixRef;
+typedef ScSimpleIntrusiveReference< const class ScMatrix > ScConstMatrixRef;
// Old values as used up to SO52.