diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:42:06 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:42:06 +0000 |
commit | 317053b4648f5aa6330198a862fe3778cb8fafdc (patch) | |
tree | b10bcbf21a69aff68dc27b0069134d1346188999 /sc/inc/global.hxx | |
parent | 6b2049a4aafafea24167aa98d27eb7025c568df4 (diff) |
INTEGRATION: CWS dr12 (1.25.12); FILE MERGED
2004/08/27 07:46:05 sab 1.25.12.5: RESYNC: (1.37-1.39); FILE MERGED
2004/07/26 22:44:54 sab 1.25.12.4: RESYNC: (1.30-1.37); FILE MERGED
2004/05/06 11:08:19 dr 1.25.12.3: RESYNC: (1.26-1.30); FILE MERGED
2004/02/25 10:35:23 dr 1.25.12.2: RESYNC: (1.25-1.26); FILE MERGED
2004/02/24 09:58:15 jmarmion 1.25.12.1: #i21255# text formatting for cell notes
Diffstat (limited to 'sc/inc/global.hxx')
-rw-r--r-- | sc/inc/global.hxx | 88 |
1 files changed, 2 insertions, 86 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index 5d9298493b28..9459be000b57 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -2,9 +2,9 @@ * * $RCSfile: global.hxx,v $ * - * $Revision: 1.39 $ + * $Revision: 1.40 $ * - * last change: $Author: rt $ $Date: 2004-08-23 09:24:41 $ + * last change: $Author: hr $ $Date: 2004-09-08 13:42:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -804,90 +804,6 @@ public: }; //================================================================== -// Notiz -//================================================================== - -class ScPostIt -{ -private: - String aStrText; - String aStrDate; - String aStrAuthor; - BOOL bShown; - -public: - ScPostIt(); - ScPostIt( const String& rText ); - ScPostIt( const String& rText, const String& rDate, const String& rAuthor ); - ScPostIt( const ScPostIt& rCpy ); - ~ScPostIt(); - - const String& GetText() const { return aStrText; } - const String& GetDate() const { return aStrDate; } - const String& GetAuthor() const { return aStrAuthor; } - BOOL IsShown() const { return bShown; } - - void SetText( const String& rNew ) { aStrText = rNew; } - void SetDate( const String& rNew ) { aStrDate = rNew; } - void SetAuthor( const String& rNew ) { aStrAuthor = rNew; } - void SetShown( BOOL bNew ) { bShown = bNew; } - - void Clear() { aStrText.Erase(); aStrDate.Erase(); - aStrAuthor.Erase(); bShown = FALSE; } - void AutoSetText( const String& rNewText ); - - inline const ScPostIt& operator= ( const ScPostIt& rCpy ); - - inline int operator==( const ScPostIt& rPostIt ) const; - int operator!=( const ScPostIt& rPostIt ) const { return !(operator==(rPostIt)); } - - friend inline SvStream& operator>>( SvStream& rStream, ScPostIt& rPostIt ); - friend inline SvStream& operator<<( SvStream& rStream, const ScPostIt& rPostIt ); -}; - -inline const ScPostIt& ScPostIt::operator=( const ScPostIt& rCpy ) -{ - aStrText = rCpy.aStrText; - aStrDate = rCpy.aStrDate; - aStrAuthor = rCpy.aStrAuthor; - bShown = rCpy.bShown; - - return *this; -} - -inline int ScPostIt::operator==( const ScPostIt& rPostIt ) const -{ - return ( aStrText == rPostIt.aStrText - && aStrDate == rPostIt.aStrDate - && aStrAuthor == rPostIt.aStrAuthor - && bShown == rPostIt.bShown ); -} - -inline SvStream& operator>>( SvStream& rStream, ScPostIt& rPostIt ) -{ - // ohne bShown !!! - - CharSet eSet = rStream.GetStreamCharSet(); - rStream.ReadByteString( rPostIt.aStrText, eSet ); - rStream.ReadByteString( rPostIt.aStrDate, eSet ); - rStream.ReadByteString( rPostIt.aStrAuthor, eSet ); - - return rStream; -} - -inline SvStream& operator<<( SvStream& rStream, const ScPostIt& rPostIt ) -{ - // ohne bShown !!! - - CharSet eSet = rStream.GetStreamCharSet(); - rStream.WriteByteString( rPostIt.aStrText, eSet ); - rStream.WriteByteString( rPostIt.aStrDate, eSet ); - rStream.WriteByteString( rPostIt.aStrAuthor, eSet ); - - return rStream; -} - -//================================================================== // evtl. in dbdata.hxx auslagern (?): enum ScQueryOp |