diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-30 21:27:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-30 23:50:03 -0400 |
commit | 8a19af57bbcc57a02a7d87c6408d1e3212a6deba (patch) | |
tree | 73c07df0169af4f6ab9efd11fd4c1a629d3f41fa /sc/inc/refdata.hxx | |
parent | 3ddb748a46e9c21fd4a7d8eb82aa7569f3bc868a (diff) |
Now nobody accesses reference members directly. Make them private.
Change-Id: If4499dbee52532cc8a95c380bbe840719fe9279b
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index 653d1a060265..10c7a6346bc1 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -28,6 +28,7 @@ /// Single reference (one address) into the sheet struct SC_DLLPUBLIC ScSingleRefData { +private: SCsCOL nCol; ///< Absolute values SCsROW nRow; SCsTAB nTab; @@ -51,6 +52,7 @@ struct SC_DLLPUBLIC ScSingleRefData } Flags; }; +public: /// No default ctor, because used in ScRawToken union, set InitFlags! inline void InitFlags() { mnFlagValue = 0; } ///< all FALSE /// InitAddress: InitFlags and set address @@ -58,6 +60,8 @@ struct SC_DLLPUBLIC ScSingleRefData void InitAddress( SCCOL nCol, SCROW nRow, SCTAB nTab ); /// InitAddressRel: InitFlags and set address, everything relative to rPos void InitAddressRel( const ScAddress& rAdr, const ScAddress& rPos ); + sal_uInt8 FlagValue() const; + inline void SetColRel( bool bVal ) { Flags.bColRel = (bVal ? true : false ); } inline bool IsColRel() const{ return Flags.bColRel; } inline void SetRowRel( bool bVal ) { Flags.bRowRel = (bVal ? true : false ); } @@ -89,6 +93,9 @@ struct SC_DLLPUBLIC ScSingleRefData inline bool IsRelName() const { return Flags.bRelName; } bool Valid() const; + bool ColValid() const; + bool RowValid() const; + bool TabValid() const; /// In external references nTab is -1 bool ValidExternal() const; @@ -141,8 +148,6 @@ struct ScComplexRefData SC_DLLPUBLIC ScRange toAbs( const ScAddress& rPos ) const; void SetRange( const ScRange& rRange, const ScAddress& rPos ); - /// Absolute references have to be up-to-date when calling this! - void PutInOrder(); inline bool operator==( const ScComplexRefData& r ) const { return Ref1 == r.Ref1 && Ref2 == r.Ref2; } /** Enlarge range if reference passed is not within existing range. |