summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/atrfld.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-02-19 12:48:10 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-02-19 12:48:10 +0000
commitb4e0fb051f3cf35ab87c300a247cb190219ce167 (patch)
tree0980ab15efce37fab22bfae7d7c953dc98808908 /sw/source/core/txtnode/atrfld.cxx
parent3455936053af2d1dc21e9daf9dbf9a979653aa5b (diff)
INTEGRATION: CWS notes2 (1.11.320); FILE MERGED
2008/01/31 11:43:56 mba 1.11.320.7: warning about copy ctor 2008/01/27 15:55:44 mba 1.11.320.6: #i84074#: better update procedure when content of notes is changed 2007/11/08 08:17:41 mba 1.11.320.5: #i6193#: improved and more notifications about removed and inserted PostItFields 2007/11/06 16:06:36 mod 1.11.320.4: mba patch: undo/redo cut/copy/paste 2007/10/12 22:30:10 mod 1.11.320.3: fix for overlays, layout algorithm fix, patch for ww8 import 2007/09/28 16:32:18 mod 1.11.320.2: RESYNC: (1.11-1.12); FILE MERGED 2007/09/24 13:49:50 mod 1.11.320.1: notes are now collected inside SwTxtFld::SwTxtFld, IsInVisibleArea added to PostItMg, new colors for change tracking
Diffstat (limited to 'sw/source/core/txtnode/atrfld.cxx')
-rw-r--r--sw/source/core/txtnode/atrfld.cxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx
index 339d7104e514..d59eb1cd9d0f 100644
--- a/sw/source/core/txtnode/atrfld.cxx
+++ b/sw/source/core/txtnode/atrfld.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: atrfld.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2007-09-27 09:23:16 $
+ * last change: $Author: rt $ $Date: 2008-02-19 13:48:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -36,8 +36,6 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
-
-
#include "fldbas.hxx" // fuer FieldType
#ifndef _FMTFLD_HXX //autogen
@@ -49,6 +47,13 @@
#ifndef _DOCUFLD_HXX //autogen
#include <docufld.hxx>
#endif
+
+#include "doc.hxx"
+#include "docsh.hxx"
+#include "../../../inc/PostItMgr.hxx"
+#include "../../ui/inc/view.hxx"
+
+
#include "reffld.hxx"
#include "ddefld.hxx"
#include "usrfld.hxx"
@@ -59,7 +64,10 @@
#include "hints.hxx"
#include <IDocumentFieldsAccess.hxx>
+#include <svtools/smplhint.hxx>
+
TYPEINIT2( SwFmtFld, SfxPoolItem, SwClient )
+TYPEINIT1(SwFmtFldHint, SfxHint);
/****************************************************************************
*
@@ -89,7 +97,7 @@ SwFmtFld::SwFmtFld( const SwField &rFld )
// full pool range, all items need to be clonable. Thus, this one needed to be
// corrected
SwFmtFld::SwFmtFld( const SwFmtFld& rAttr )
- : SfxPoolItem( RES_TXTATR_FIELD ), SwClient(),
+ : SfxPoolItem( RES_TXTATR_FIELD ), SwClient(), SfxBroadcaster(),
pField( 0 ),
pTxtAttr( 0 )
{
@@ -107,6 +115,7 @@ SwFmtFld::~SwFmtFld()
if (pType && pType->Which() == RES_DBFLD)
pType = 0; // DB-Feldtypen zerstoeren sich selbst
+ Broadcast( SwFmtFldHint( this, SWFMTFLD_REMOVED ) );
delete pField;
// bei einige FeldTypen muessen wir den FeldTypen noch loeschen
@@ -144,6 +153,7 @@ void SwFmtFld::SetFld(SwField * _pField)
delete pField;
pField = _pField;
+ Broadcast( SwFmtFldHint( this, SWFMTFLD_CHANGED ) );
}
int SwFmtFld::operator==( const SfxPoolItem& rAttr ) const