summaryrefslogtreecommitdiffstats
path: root/sc/inc/queryparam.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-09-09 23:58:50 -0400
committerKohei Yoshida <kyoshida@novell.com>2009-09-09 23:58:50 -0400
commitb78dc8dc8073b0a5b7c4ab8d5ef7088098a201b1 (patch)
tree928b58e12f03d8f5e4e8dff01f42ac19bfa9b403 /sc/inc/queryparam.hxx
parent#i102750# initial refactoring in an effort to support external references in ... (diff)
downloadcore-b78dc8dc8073b0a5b7c4ab8d5ef7088098a201b1.tar.gz
core-b78dc8dc8073b0a5b7c4ab8d5ef7088098a201b1.zip
#i102750# more work toward supporting external refs in DB functions. Still a long way to go...
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r--sc/inc/queryparam.hxx59
1 files changed, 45 insertions, 14 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx
index 3e106647b58b..569b55719100 100644
--- a/sc/inc/queryparam.hxx
+++ b/sc/inc/queryparam.hxx
@@ -36,14 +36,13 @@
struct ScQueryParamBase
{
- enum DataType { INTERNAL, MATRIX };
-
bool bHasHeader;
bool bByRow;
bool bInplace;
bool bCaseSens;
bool bRegExp;
bool bDuplicate;
+ bool bMixedComparison; // whether numbers are smaller than strings
virtual ~ScQueryParamBase();
@@ -53,30 +52,33 @@ struct ScQueryParamBase
SC_DLLPUBLIC void DeleteQuery( SCSIZE nPos );
void FillInExcelSyntax(String& aCellStr, SCSIZE nIndex);
- DataType GetType() const;
-
protected:
- ScQueryParamBase(DataType eType);
+ ScQueryParamBase();
ScQueryParamBase(const ScQueryParamBase& r);
SCSIZE nEntryCount;
ScQueryEntry* pEntries;
-
-private:
- ScQueryParamBase();
- DataType meType;
};
// ============================================================================
-struct SC_DLLPUBLIC ScQueryParam : public ScQueryParamBase
+struct ScQueryParamTable
{
SCCOL nCol1;
SCROW nRow1;
SCCOL nCol2;
SCROW nRow2;
SCTAB nTab;
- BOOL bMixedComparison; // whether numbers are smaller than strings
+
+ ScQueryParamTable();
+ ScQueryParamTable(const ScQueryParamTable& r);
+ virtual ~ScQueryParamTable();
+};
+
+// ============================================================================
+
+struct SC_DLLPUBLIC ScQueryParam : public ScQueryParamBase, public ScQueryParamTable
+{
BOOL bDestPers; // nicht gespeichert
SCTAB nDestTab;
SCCOL nDestCol;
@@ -94,12 +96,41 @@ struct SC_DLLPUBLIC ScQueryParam : public ScQueryParamBase
// ============================================================================
-struct ScQueryParamMatrix : public ScQueryParamBase
+struct ScDBQueryParamBase : public ScQueryParamBase
+{
+ enum DataType { INTERNAL, MATRIX };
+
+ SCCOL mnField; /// the field in which the values are processed during iteration.
+
+ DataType GetType() const;
+
+ virtual ~ScDBQueryParamBase();
+
+protected:
+ ScDBQueryParamBase(DataType eType);
+
+private:
+ ScDBQueryParamBase();
+
+ DataType meType;
+};
+
+// ============================================================================
+
+struct ScDBQueryParamInternal : public ScDBQueryParamBase, public ScQueryParamTable
+{
+ ScDBQueryParamInternal();
+ virtual ~ScDBQueryParamInternal();
+};
+
+// ============================================================================
+
+struct ScDBQueryParamMatrix : public ScDBQueryParamBase
{
ScMatrixRef mpMatrix;
- ScQueryParamMatrix();
- virtual ~ScQueryParamMatrix();
+ ScDBQueryParamMatrix();
+ virtual ~ScDBQueryParamMatrix();
};
#endif