diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-02-15 17:07:10 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-02-15 17:07:10 +0000 |
commit | 8dd9f54c38cc93d47481f76dbb46062694ee72a0 (patch) | |
tree | cda7f88409bf707e65709225137825b1549c42ea /sc/inc | |
parent | export/import of visarea added (diff) | |
download | core-8dd9f54c38cc93d47481f76dbb46062694ee72a0.tar.gz core-8dd9f54c38cc93d47481f76dbb46062694ee72a0.zip |
fill EditEngine for header/footer edit source only if data changed
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/editsrc.hxx | 19 | ||||
-rw-r--r-- | sc/inc/textuno.hxx | 12 |
2 files changed, 27 insertions, 4 deletions
diff --git a/sc/inc/editsrc.hxx b/sc/inc/editsrc.hxx index 5dd92d73745c..d11125861371 100644 --- a/sc/inc/editsrc.hxx +++ b/sc/inc/editsrc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: editsrc.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: nn $ $Date: 2001-01-18 15:52:29 $ + * last change: $Author: nn $ $Date: 2001-02-15 18:05:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,6 +83,19 @@ class ScDocShell; class ScHeaderFooterContentObj; +class ScHeaderFooterChangedHint : public SfxHint +{ + USHORT nPart; + +public: + TYPEINFO(); + ScHeaderFooterChangedHint(USHORT nP); + ~ScHeaderFooterChangedHint(); + + USHORT GetPart() const { return nPart; } +}; + + class ScHeaderFooterEditSource : public SvxEditSource, public SfxListener { private: @@ -90,6 +103,8 @@ private: USHORT nPart; ScEditEngineDefaulter* pEditEngine; SvxEditEngineForwarder* pForwarder; + BOOL bDataValid; + BOOL bInUpdate; public: ScHeaderFooterEditSource( ScHeaderFooterContentObj* pContent, diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index 284e52e8a361..74596e01a605 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -2,9 +2,9 @@ * * $RCSfile: textuno.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: nn $ $Date: 2001-01-18 15:55:11 $ + * last change: $Author: nn $ $Date: 2001-02-15 18:05:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,6 +66,10 @@ #include <svx/unotext.hxx> #endif +#ifndef _SFXBRDCST_HXX +#include <svtools/brdcst.hxx> +#endif + #ifndef _COM_SUN_STAR_TEXT_XTEXTFIELDSSUPPLIER_HPP_ #include <com/sun/star/text/XTextFieldsSupplier.hpp> #endif @@ -116,6 +120,7 @@ private: EditTextObject* pLeftText; EditTextObject* pCenterText; EditTextObject* pRightText; + SfxBroadcaster aBC; public: ScHeaderFooterContentObj(); @@ -129,6 +134,9 @@ public: const EditTextObject* GetCenterEditObject() const { return pCenterText; } const EditTextObject* GetRightEditObject() const { return pRightText; } + void AddListener( SfxListener& rListener ); + void RemoveListener( SfxListener& rListener ); + void UpdateText( USHORT nPart, EditEngine& rSource ); // XHeaderFooterContent |