diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-09-09 23:58:50 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-09-09 23:58:50 -0400 |
commit | b78dc8dc8073b0a5b7c4ab8d5ef7088098a201b1 (patch) | |
tree | 928b58e12f03d8f5e4e8dff01f42ac19bfa9b403 /sc/inc/queryparam.hxx | |
parent | f371fca09ddff5d5d32a0dcec05931be04b1b8c9 (diff) |
#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.hxx | 59 |
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 |