summaryrefslogtreecommitdiff
path: root/sc/inc/address.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-03-29 12:28:30 +0000
committerRüdiger Timm <rt@openoffice.org>2005-03-29 12:28:30 +0000
commit7279a075786a58017871c6d7a05813f62caf8fa5 (patch)
tree8feb9666ae5750f6363afe4996cf1b9cc788da51 /sc/inc/address.hxx
parent0c19529d4e5ce6db388fc6bb3dda90e413141f85 (diff)
INTEGRATION: CWS dr34 (1.5.2); FILE MERGED
2005/03/14 14:56:08 dr 1.5.2.1: #i44077# set size for new Excel OLE objects
Diffstat (limited to 'sc/inc/address.hxx')
-rw-r--r--sc/inc/address.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 7496864c1171..d909fd445496 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: address.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: vg $ $Date: 2005-03-08 11:26:44 $
+ * last change: $Author: rt $ $Date: 2005-03-29 13:28:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -445,6 +445,7 @@ public:
inline void SetCol( SCCOL nColP ) { nCol = nColP; }
inline void SetTab( SCTAB nTabP ) { nTab = nTabP; }
inline void SetInvalid() { nRow = -1; nCol = -1; nTab = -1; }
+ inline bool IsValid() const { return (nRow >= 0) && (nCol >= 0) && (nTab >= 0); }
inline void PutInOrder( ScAddress& r );
inline void IncRow( SCsROW n=1 ) { nRow += n; }
inline void IncCol( SCsCOL n=1 ) { nCol += n; }
@@ -594,6 +595,8 @@ public:
{ aStart = r.aStart; aEnd = r.aEnd; return *this; }
inline ScRange& operator=( const ScAddress& rPos )
{ aStart = aEnd = rPos; return *this; }
+ inline void SetInvalid() { aStart.SetInvalid(); aEnd.SetInvalid(); }
+ inline bool IsValid() const { return aStart.IsValid() && aEnd.IsValid(); }
inline bool In( const ScAddress& ) const; // is Address& in Range?
inline bool In( const ScRange& ) const; // is Range& in Range?
USHORT Parse( const String&, ScDocument* = NULL );
@@ -605,6 +608,7 @@ public:
bool Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* =NULL );
void Justify();
void ExtendOne();
+ void ExtendTo( const ScRange& rRange );
bool Intersects( const ScRange& ) const; // do two ranges intersect?
inline bool operator==( const ScRange& r ) const;
inline bool operator!=( const ScRange& r ) const;