Kaydet (Commit) a5d227a0 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: remove TextUndoSetAttribs

üst 1ccbcfdd
...@@ -43,7 +43,6 @@ TYPEINIT1( TextUndoConnectParas, TextUndo ); ...@@ -43,7 +43,6 @@ TYPEINIT1( TextUndoConnectParas, TextUndo );
TYPEINIT1( TextUndoSplitPara, TextUndo ); TYPEINIT1( TextUndoSplitPara, TextUndo );
TYPEINIT1( TextUndoInsertChars, TextUndo ); TYPEINIT1( TextUndoInsertChars, TextUndo );
TYPEINIT1( TextUndoRemoveChars, TextUndo ); TYPEINIT1( TextUndoRemoveChars, TextUndo );
TYPEINIT1( TextUndoSetAttribs, TextUndo );
TextUndoManager::TextUndoManager( TextEngine* p ) TextUndoManager::TextUndoManager( TextEngine* p )
...@@ -296,44 +295,4 @@ void TextUndoRemoveChars::Redo() ...@@ -296,44 +295,4 @@ void TextUndoRemoveChars::Redo()
SetSelection( aPaM ); SetSelection( aPaM );
} }
TextUndoSetAttribs::TextUndoSetAttribs( TextEngine* pTextEngine, const TextSelection& rSel )
: TextUndo( pTextEngine ), maSelection( rSel )
{
maSelection.Justify();
// aNewAttribs.Set( rNewItems );
// mbSetIsRemove = sal_False;
// mnRemoveWhich = 0;
// mnSpecial = 0;
}
TextUndoSetAttribs::~TextUndoSetAttribs()
{
// ...............
}
void TextUndoSetAttribs::Undo()
{
for ( sal_uLong nPara = maSelection.GetStart().GetPara(); nPara <= maSelection.GetEnd().GetPara(); nPara++ )
{
// ContentAttribsInfo* pInf = aPrevAttribs[ (sal_uInt16)(nPara-aESel.nStartPara) ];
// GetTextEngine()->RemoveCharAttribs( nPara );
// TextNode* pNode = GetTextEngine()->GetTextDoc().GetObject( nPara );
// for ( sal_uInt16 nAttr = 0; nAttr < pInf->GetPrevCharAttribs().Count(); nAttr++ )
// {
// GetTextEngine()->GetTextDoc().InsertAttrib( pNode, pX->GetStart(), pX->GetEnd(), *pX->GetItem() );
// }
}
SetSelection( maSelection );
}
void TextUndoSetAttribs::Redo()
{
// if ( !bSetIsRemove )
// GetTextEngine()->SetAttribs( aSel, aNewAttribs, nSpecial );
// else
// GetTextEngine()->RemoveCharAttribs( aSel, bRemoveParaAttribs, nRemoveWhich );
SetSelection( maSelection );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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