summaryrefslogtreecommitdiffstats
path: root/sc/inc/queryentry.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-07 22:55:53 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-07 22:56:53 -0500
commit5897d4a60f766ca0cd751281e7c32af3df677303 (patch)
tree79c8f1516f521f3db39586851e060b45e152e0aa /sc/inc/queryentry.hxx
parentfdo#36100: show blink borders for cut like we do for copy (diff)
downloadcore-5897d4a60f766ca0cd751281e7c32af3df677303.tar.gz
core-5897d4a60f766ca0cd751281e7c32af3df677303.zip
Encapsulated empty and non-empty filter criteria.
Because those two conditions were not very obvious.
Diffstat (limited to 'sc/inc/queryentry.hxx')
-rw-r--r--sc/inc/queryentry.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/queryentry.hxx b/sc/inc/queryentry.hxx
index c0ce6e40d686..6419141432e2 100644
--- a/sc/inc/queryentry.hxx
+++ b/sc/inc/queryentry.hxx
@@ -52,8 +52,8 @@ struct ScQueryEntry
double mfVal;
rtl::OUString maString;
- bool operator== (const Item& r) const;
Item();
+ bool operator== (const Item& r) const;
};
typedef std::vector<Item> QueryItemsType;
@@ -71,6 +71,10 @@ struct ScQueryEntry
// creates pSearchParam and pSearchText if necessary, always RegExp!
utl::TextSearch* GetSearchTextPtr( bool bCaseSens ) const;
+ SC_DLLPUBLIC void SetQueryByEmpty();
+ SC_DLLPUBLIC bool IsQueryByEmpty() const;
+ SC_DLLPUBLIC void SetQueryByNonEmpty();
+ SC_DLLPUBLIC bool IsQueryByNonEmpty() const;
SC_DLLPUBLIC const Item& GetQueryItem() const;
SC_DLLPUBLIC Item& GetQueryItem();
void Clear();