summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-01-29 14:14:49 +0000
committerRüdiger Timm <rt@openoffice.org>2008-01-29 14:14:49 +0000
commite4ea7d766ab50d34aeeca4efd48d90934c0b6179 (patch)
tree0cbfe336e76d41289d82801fcffdae9592eba1d4
parent005075bd47d6262dfe4f8172154abf3b0bdfce84 (diff)
INTEGRATION: CWS dr58_SRC680 (1.25.98); FILE MERGED
2008/01/11 12:41:39 dr 1.25.98.1: #i84412# set note visibility when copying cells, remove global depenencies from postit.hxx header
-rw-r--r--sc/inc/cell.hxx49
1 files changed, 7 insertions, 42 deletions
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx
index cc0245b9bf98..66604f817daf 100644
--- a/sc/inc/cell.hxx
+++ b/sc/inc/cell.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cell.hxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: rt $ $Date: 2007-07-03 15:45:51 $
+ * last change: $Author: rt $ $Date: 2008-01-29 15:14:49 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -50,9 +50,6 @@
#ifndef SC_TOKENARRAY_HXX
#include "tokenarray.hxx"
#endif
-#ifndef SC_POSTIT_HXX
-#include "postit.hxx"
-#endif
#ifndef _RTL_USTRBUF_HXX_
#include <rtl/ustrbuf.hxx>
@@ -76,6 +73,7 @@ class SvtBroadcaster;
class ScCodeArray;
class ScTokenArray;
class ScProgress;
+class ScPostIt;
class ScMultipleReadHeader;
class ScMultipleWriteHeader;
@@ -100,8 +98,8 @@ protected:
~ScBaseCell(); // nicht virtuell -> darf nicht direkt aufgerufen werden
public:
- inline ScBaseCell( CellType eNewType );
- inline ScBaseCell( const ScBaseCell& rBaseCell, ScDocument* pDoc );
+ explicit ScBaseCell( CellType eNewType );
+ ScBaseCell( const ScBaseCell& rBaseCell, ScDocument* pDoc );
ScBaseCell* Clone(ScDocument* pDoc) const;
void Delete(); // simulierter virtueller Destructor
@@ -109,8 +107,8 @@ public:
void SetNote( const ScPostIt& rNote );
BOOL GetNote( ScPostIt& rNote ) const;
- const ScPostIt* GetNotePtr() const;
- inline void DeleteNote();
+ inline const ScPostIt* GetNotePtr() const { return pNote; }
+ void DeleteNote();
inline SvtBroadcaster* GetBroadcaster() const;
void SetBroadcaster(SvtBroadcaster* pNew);
@@ -469,44 +467,11 @@ public:
// ScBaseCell
-inline ScBaseCell::ScBaseCell( CellType eNewType ) :
- pNote( NULL ),
- pBroadcaster( NULL ),
- nTextWidth( TEXTWIDTH_DIRTY ),
- eCellType( sal::static_int_cast<BYTE>(eNewType) ),
- nScriptType( SC_SCRIPTTYPE_UNKNOWN )
-{
-}
-
-inline ScBaseCell::ScBaseCell( const ScBaseCell& rBaseCell, ScDocument* pDoc ) :
- pBroadcaster( NULL ),
- nTextWidth( rBaseCell.nTextWidth ),
- eCellType( rBaseCell.eCellType ),
- nScriptType( SC_SCRIPTTYPE_UNKNOWN )
-{
- if (rBaseCell.pNote)
- pNote = new ScPostIt( *rBaseCell.pNote, pDoc );
- else
- pNote = NULL;
-}
-
-
inline CellType ScBaseCell::GetCellType() const
{
return (CellType)eCellType;
}
-inline const ScPostIt* ScBaseCell::GetNotePtr() const
-{
- return pNote;
-}
-
-inline void ScBaseCell::DeleteNote()
-{
- delete pNote;
- pNote = NULL;
-}
-
inline SvtBroadcaster* ScBaseCell::GetBroadcaster() const
{
return pBroadcaster;