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;
class SvxEditEngineForwarder;
class ScDocShell;
class ScHeaderFooterContentObj;
class ScCellTextData;
class ScHeaderFooterTextData;
class ScAccessibleTextData;
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
......
......@@ -127,8 +127,7 @@ private:
sal_uInt16 nPart;
ScEditEngineDefaulter* pEditEngine;
SvxEditEngineForwarder* pForwarder;
sal_Bool bDataValid;
sal_Bool bInUpdate;
bool bDataValid;
public:
ScHeaderFooterTextData(
......
......@@ -1418,7 +1418,7 @@ SvxTextForwarder* ScAccessiblePreviewHeaderCellTextData::GetTextForwarder()
pEditEngine->SetText( maText );
}
bDataValid = sal_True;
bDataValid = true;
if (pEditEngine)
pEditEngine->SetNotifyHdl( LINK(this, ScAccessibleCellTextData, NotifyHdl) );
......
......@@ -50,23 +50,6 @@
#include "postit.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) :
mpTextData(pData) {}
......
......@@ -202,8 +202,7 @@ ScHeaderFooterTextData::ScHeaderFooterTextData(
nPart( nP ),
pEditEngine( NULL ),
pForwarder( NULL ),
bDataValid( false ),
bInUpdate( false )
bDataValid(false)
{
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