diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-04 21:25:49 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-04 22:40:30 -0400 |
commit | a1675f6d7691d57df1c80537e1be257172aa9d49 (patch) | |
tree | d3061edf8c86e0dc17fefda9923e76a613cfe0ad /sc/inc/queryparam.hxx | |
parent | Do the simple string equality matching in ScQueryEntry instead. (diff) | |
download | core-a1675f6d7691d57df1c80537e1be257172aa9d49.tar.gz core-a1675f6d7691d57df1c80537e1be257172aa9d49.zip |
Hide the query strings member, and add relevant methods for it.
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r-- | sc/inc/queryparam.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx index f3d755c562fb..6b87397a14dd 100644 --- a/sc/inc/queryparam.hxx +++ b/sc/inc/queryparam.hxx @@ -52,9 +52,8 @@ namespace utl { struct ScQueryEntry { -private: - String* pStr; -public: + typedef std::vector<rtl::OUString> QueryStringsType; + bool bDoQuery; bool bQueryByString; bool bQueryByDate; @@ -74,11 +73,15 @@ public: bool IsQueryStringEmpty() const; bool MatchByString(const rtl::OUString& rStr, bool bCaseSens) const; + void SwapQueryStrings(QueryStringsType& rStrings); + void SortQueryStrings(bool bCaseSens); SC_DLLPUBLIC void SetQueryString(const rtl::OUString& rStr); SC_DLLPUBLIC rtl::OUString GetQueryString() const; void Clear(); ScQueryEntry& operator=( const ScQueryEntry& r ); bool operator==( const ScQueryEntry& r ) const; +private: + QueryStringsType maQueryStrings; }; struct ScQueryParamBase |