summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpglobal.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-09 14:58:06 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-09 15:25:09 -0500
commitdc261fc0c4e7f4c29b142c53d4d4e65f8ff3a092 (patch)
tree0c6b1658de8b5dad530753ded9d3b524ddad27ce /sc/inc/dpglobal.hxx
parentMoved definitions of ScDPItemData where they belong. (diff)
downloadcore-dc261fc0c4e7f4c29b142c53d4d4e65f8ff3a092.tar.gz
core-dc261fc0c4e7f4c29b142c53d4d4e65f8ff3a092.zip
Cleaning up ScDPItemData a bit...
Diffstat (limited to 'sc/inc/dpglobal.hxx')
-rw-r--r--sc/inc/dpglobal.hxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sc/inc/dpglobal.hxx b/sc/inc/dpglobal.hxx
index b5ce0190b7d3..992e17152bd2 100644
--- a/sc/inc/dpglobal.hxx
+++ b/sc/inc/dpglobal.hxx
@@ -87,37 +87,37 @@ public:
private:
union
{
- sal_uLong nNumFormat;
+ sal_uLong mnNumFormat;
sal_Int32 mnDatePart;
};
- String aString;
- double fValue;
+ String maString;
+ double mfValue;
sal_uInt8 mbFlag;
friend class ScDPCache;
public:
- ScDPItemData() : nNumFormat( 0 ), fValue(0.0), mbFlag( 0 ){}
- ScDPItemData( sal_uLong nNF, const String & rS, double fV, sal_uInt8 bF ):nNumFormat(nNF), aString(rS), fValue(fV), mbFlag( bF ){}
- ScDPItemData( const String& rS, double fV = 0.0, bool bHV = false, const sal_uLong nNumFormat = 0 , bool bData = true) ;
+ ScDPItemData();
+ ScDPItemData(sal_uLong nNF, const String & rS, double fV, sal_uInt8 bF);
+ ScDPItemData(const String& rS, double fV = 0.0, bool bHV = false, const sal_uLong nNumFormat = 0 , bool bData = true);
ScDPItemData(ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nDocTab, bool bLabel);
- void SetString( const String& rS ) { aString = rS; mbFlag &= ~(MK_VAL|MK_DATE); nNumFormat = 0; mbFlag |= MK_DATA; }
- bool IsCaseInsEqual( const ScDPItemData& r ) const;
+ void SetString( const String& rS );
+ bool IsCaseInsEqual(const ScDPItemData& r) const;
- size_t Hash() const;
+ size_t Hash() const;
// exact equality
- bool operator==( const ScDPItemData& r ) const;
+ bool operator==( const ScDPItemData& r ) const;
// case insensitive equality
- static sal_Int32 Compare( const ScDPItemData& rA, const ScDPItemData& rB );
+ static sal_Int32 Compare( const ScDPItemData& rA, const ScDPItemData& rB );
public:
bool IsHasData() const ;
bool IsHasErr() const ;
bool IsValue() const;
- String GetString() const ;
- double GetValue() const ;
+ String GetString() const ;
+ double GetValue() const ;
bool HasStringData() const ;
bool IsDate() const;
bool HasDatePart() const;