summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-08-23 15:56:46 +0100
committerNoel Power <noel.power@suse.com>2013-08-26 14:42:17 +0100
commite5755f4022c1e99514a236a97a9a62552dd8e9fe (patch)
tree296e2d350baef323c686af6a940e0efeb9cb37e9 /sc/inc
parent37e36eca17563b2580abf97f4f46a470387e5b70 (diff)
treelist for autofilter ( nested nodes for dates ) ( using SvxTreeListBox )
Attempt at trying to get more interopable behavior, imho the way dates are presented in the autofilter of the "other" well known spreadsheet application is very nice and intuitive. This attempt here is lacking in that a) for some reason I am not getting the node icons ( and subsequently can't sing le click anything to expand the nodes ) Only double clicking works to expand b) the 'check' behaviour is not quite right, e.g. as simple example is if all nodes of a particular date are unset then clicking the leaf node ( e.g. day ) wont set the ancestor nodes. Change-Id: Iaa89cac21fb18074ff64a984f099a35851c2fe3c
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/typedstrdata.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/inc/typedstrdata.hxx b/sc/inc/typedstrdata.hxx
index 346978bf8446..7d8cf4483400 100644
--- a/sc/inc/typedstrdata.hxx
+++ b/sc/inc/typedstrdata.hxx
@@ -27,13 +27,15 @@ public:
};
ScTypedStrData( const OUString& rStr, double nVal = 0.0,
- StringType eType = Standard );
+ StringType eType = Standard, bool bDate = false );
ScTypedStrData( const ScTypedStrData& rCpy );
bool IsStrData() const;
+ bool IsDate() const;
SC_DLLPUBLIC const OUString& GetString() const;
StringType GetStringType() const;
+ double GetValue() const { return mfValue; }
struct LessCaseSensitive : std::binary_function<ScTypedStrData, ScTypedStrData, bool>
{
@@ -62,6 +64,7 @@ private:
OUString maStrValue;
double mfValue;
StringType meStrType;
+ bool mbIsDate;
};
class FindTypedStrData : std::unary_function<ScTypedStrData, bool>