Kaydet (Commit) 9f01ba1b authored tarafından Michael Stahl's avatar Michael Stahl

i#107771: sw: burn, UnoCallBack, burn!

Change-Id: Ifdb6d4b2e404bd160e6fcec3229691e750bdf698
üst bd6f0559
......@@ -346,7 +346,6 @@ class SW_DLLPUBLIC SwDoc :
SwLayoutCache *mpLayoutCache; /**< Layout cache to read and save with the
document for a faster formatting */
SwModify *mpUnoCallBack;
IGrammarContact *mpGrammarContact; //< for grammar checking in paragraphs during editing
// table of forbidden characters of this document
......@@ -1562,9 +1561,6 @@ public:
*/
bool ContainsHiddenChars() const;
// call back for API wrapper
SwModify* GetUnoCallBack() const { return mpUnoCallBack; }
IGrammarContact* getGrammarContact() const { return mpGrammarContact; }
/** Marks/Unmarks a list level of a certain list
......
......@@ -254,7 +254,6 @@ SwDoc::SwDoc()
mpExtInputRing( 0 ),
mpStyleAccess( 0 ),
mpLayoutCache( 0 ),
mpUnoCallBack(new SwModify(0)),
mpGrammarContact(createGrammarContact()),
m_pXmlIdRegistry(),
mReferenceCount(0),
......@@ -446,7 +445,6 @@ SwDoc::~SwDoc()
getIDocumentTimerAccess().StopIdling(); // stop idle timer
delete mpUnoCallBack, mpUnoCallBack = 0;
delete mpURLStateChgd;
// Deactivate Undo notification from Draw
......
......@@ -263,7 +263,6 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, sal_uLong nSz,
GetDoc()->GetIDocumentUndoRedo().IsUndoNodes(rNds);
for( size_t i = pHts->Count(); i; )
{
sal_uInt16 nDelMsg = 0;
SwTxtAttr * const pAttr = pHts->GetTextHint( --i );
switch ( pAttr->Which() )
{
......@@ -325,14 +324,6 @@ void SwNodes::ChgNode( SwNodeIndex& rDelPos, sal_uLong nSz,
default:
break;
}
if( nDelMsg && bToUndo )
{
SwPtrMsgPoolItem aMsgHint( nDelMsg,
(void*)&pAttr->GetAttr() );
rNds.GetDoc()->GetUnoCallBack()->
ModifyNotification( &aMsgHint, &aMsgHint );
}
}
}
//FEATURE::CONDCOLL
......
......@@ -1114,7 +1114,6 @@ void SwTxtNode::DestroyAttr( SwTxtAttr* pAttr )
{
// einige Sachen muessen vorm Loeschen der "Format-Attribute" erfolgen
SwDoc* pDoc = GetDoc();
sal_uInt16 nDelMsg = 0;
switch( pAttr->Which() )
{
case RES_TXTATR_FLYCNT:
......@@ -1198,12 +1197,6 @@ void SwTxtNode::DestroyAttr( SwTxtAttr* pAttr )
break;
}
if( nDelMsg && !pDoc->IsInDtor() && GetNodes().IsDocNodes() )
{
SwPtrMsgPoolItem aMsgHint( nDelMsg, (void*)&pAttr->GetAttr() );
pDoc->GetUnoCallBack()->ModifyNotification( &aMsgHint, &aMsgHint );
}
SwTxtAttr::Destroy( pAttr, pDoc->GetAttrPool() );
}
}
......
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