Kaydet (Commit) d4a99ec4 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Some cleanup. We don't need the broadcaster hint class anymore.

üst 1de32aec
...@@ -39,25 +39,10 @@ class ScEditEngineDefaulter; ...@@ -39,25 +39,10 @@ class ScEditEngineDefaulter;
class SvxEditEngineForwarder; class SvxEditEngineForwarder;
class ScDocShell; class ScDocShell;
class ScHeaderFooterContentObj;
class ScCellTextData; class ScCellTextData;
class ScHeaderFooterTextData; class ScHeaderFooterTextData;
class ScAccessibleTextData; class ScAccessibleTextData;
class SdrObject; class SdrObject;
class EditTextObject;
class ScHeaderFooterChangedHint : public SfxHint
{
sal_uInt16 nPart;
public:
TYPEINFO();
ScHeaderFooterChangedHint(sal_uInt16 nP);
~ScHeaderFooterChangedHint();
sal_uInt16 GetPart() const { return nPart; }
};
/** /**
* ScHeaderFooterEditSource with local copy of ScHeaderFooterTextData is * ScHeaderFooterEditSource with local copy of ScHeaderFooterTextData is
......
...@@ -127,8 +127,7 @@ private: ...@@ -127,8 +127,7 @@ private:
sal_uInt16 nPart; sal_uInt16 nPart;
ScEditEngineDefaulter* pEditEngine; ScEditEngineDefaulter* pEditEngine;
SvxEditEngineForwarder* pForwarder; SvxEditEngineForwarder* pForwarder;
sal_Bool bDataValid; bool bDataValid;
sal_Bool bInUpdate;
public: public:
ScHeaderFooterTextData( ScHeaderFooterTextData(
......
...@@ -1418,7 +1418,7 @@ SvxTextForwarder* ScAccessiblePreviewHeaderCellTextData::GetTextForwarder() ...@@ -1418,7 +1418,7 @@ SvxTextForwarder* ScAccessiblePreviewHeaderCellTextData::GetTextForwarder()
pEditEngine->SetText( maText ); pEditEngine->SetText( maText );
} }
bDataValid = sal_True; bDataValid = true;
if (pEditEngine) if (pEditEngine)
pEditEngine->SetNotifyHdl( LINK(this, ScAccessibleCellTextData, NotifyHdl) ); pEditEngine->SetNotifyHdl( LINK(this, ScAccessibleCellTextData, NotifyHdl) );
......
...@@ -50,23 +50,6 @@ ...@@ -50,23 +50,6 @@
#include "postit.hxx" #include "postit.hxx"
#include "AccessibleText.hxx" #include "AccessibleText.hxx"
//------------------------------------------------------------------------
TYPEINIT1( ScHeaderFooterChangedHint, SfxHint );
ScHeaderFooterChangedHint::ScHeaderFooterChangedHint(sal_uInt16 nP) :
nPart( nP )
{
}
ScHeaderFooterChangedHint::~ScHeaderFooterChangedHint()
{
}
//------------------------------------------------------------------------
// each ScHeaderFooterEditSource object has its own ScHeaderFooterTextData
ScHeaderFooterEditSource::ScHeaderFooterEditSource(ScHeaderFooterTextData* pData) : ScHeaderFooterEditSource::ScHeaderFooterEditSource(ScHeaderFooterTextData* pData) :
mpTextData(pData) {} mpTextData(pData) {}
......
...@@ -202,8 +202,7 @@ ScHeaderFooterTextData::ScHeaderFooterTextData( ...@@ -202,8 +202,7 @@ ScHeaderFooterTextData::ScHeaderFooterTextData(
nPart( nP ), nPart( nP ),
pEditEngine( NULL ), pEditEngine( NULL ),
pForwarder( NULL ), pForwarder( NULL ),
bDataValid( false ), bDataValid(false)
bInUpdate( false )
{ {
rContentObj.acquire(); // must not go away rContentObj.acquire(); // must not go away
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment