LibreOffice Module sw (master) 1
|
#include <SwRewriter.hxx>
Public Member Functions | |
SwRewriter () | |
void | AddRule (SwUndoArg eWhat, const OUString &rWith) |
OUString | Apply (const OUString &rStr) const |
Static Public Member Functions | |
static OUString | GetPlaceHolder (SwUndoArg eId) |
Private Attributes | |
std::vector< SwRewriteRule > | mRules |
Definition at line 36 of file SwRewriter.hxx.
SwRewriter::SwRewriter | ( | ) |
Definition at line 23 of file SwRewriter.cxx.
void SwRewriter::AddRule | ( | SwUndoArg | eWhat, |
const OUString & | rWith | ||
) |
Definition at line 25 of file SwRewriter.cxx.
Referenced by sw::DocumentRedlineManager::AcceptAllRedline(), sw::DocumentRedlineManager::AcceptRedline(), SwWrtShell::AutoCorrect(), SwRedlineAcceptDlg::CallAcceptReject(), SwUndoInsertLabel::CreateRewriter(), SwEditShell::Delete(), SwPostItMgr::Delete(), SwPostItMgr::DeleteCommentThread(), SwContentTree::DeleteOutlineSelections(), SwEditShell::DeleteSel(), SwDocShell::Edit(), SwContentTree::EditEntry(), EndUndo(), SwTextShell::ExecInsert(), SwSpellPopup::Execute(), SwView::Execute(), SwTextShell::Execute(), SwCursor::FindFormat(), SwPostItMgr::FormatAll(), SwRangeRedline::GetDescr(), SwAnnotationShell::GetNoteState(), SwUndoDelLayFormat::GetRewriter(), SwUndoFormatCreate::GetRewriter(), SwUndoFormatDelete::GetRewriter(), SwUndoRenameFormat::GetRewriter(), SwUndoNumruleCreate::GetRewriter(), SwUndoNumruleDelete::GetRewriter(), SwUndoNumruleRename::GetRewriter(), SwUndoPageDesc::GetRewriter(), SwUndoPageDescCreate::GetRewriter(), SwUndoPageDescDelete::GetRewriter(), SwUndoFormatAttr::GetRewriter(), SwUndoBookmark::GetRewriter(), SwUndoRenameBookmark::GetRewriter(), SwUndoFormatColl::GetRewriter(), SwUndoSetFlyFormat::GetRewriter(), SwUndoDelete::GetRewriter(), SwUndoFlyStrAttr::GetRewriter(), SwUndoFlyDecorative::GetRewriter(), SwUndoInsert::GetRewriter(), SwUndoInsNum::GetRewriter(), SwUndoOverwrite::GetRewriter(), SwUndoRedlineDelete::GetRewriter(), SwUndoInsTable::GetRewriter(), SwUndoTableStyleMake::GetRewriter(), SwUndoTableStyleDelete::GetRewriter(), SwUndoTableStyleUpdate::GetRewriter(), SwWrtShell::GotoContentControl(), sw::annotation::SwAnnotationWin::InitAnswer(), sw::annotation::SwAnnotationWin::InitControls(), SwWrtShell::Insert(), SwWrtShell::InsertContentControl(), SwWrtShell::InsertField2(), SwWrtShell::InsertGraphic(), SwView::InsertGraphicDlg(), SwWrtShell::InsertOleObject(), SwTextShell::InsertSymbol(), SwXText::insertTextContentWithProperties(), SwIndexMarkPane::InsertUpdate(), lcl_DenotedPortion(), lcl_RewriterFromHistory(), MakeUndoReplaceRewriter(), SwDrawBase::MouseButtonUp(), SwTransferable::PrivateDrop(), sw::DocumentRedlineManager::RejectRedline(), SwView::Replace(), SwDocStyleSheet::SetItemSet(), SwEditShell::SetTextFormatColl(), SwPostItMgr::ToggleResolved(), SwPostItMgr::ToggleResolvedForThread(), and SwDocShell::UpdateStyle().
OUString SwRewriter::Apply | ( | const OUString & | rStr | ) | const |
Definition at line 39 of file SwRewriter.cxx.
References GetPlaceHolder(), and mRules.
Referenced by sw::DocumentRedlineManager::AcceptAllRedline(), sw::DocumentRedlineManager::AcceptRedline(), SwRedlineAcceptDlg::CallAcceptReject(), SwContentTree::EditEntry(), sw::UndoManager::EndUndo(), SwUndo::GetComment(), SwRangeRedline::GetDescr(), SwAnnotationShell::GetNoteState(), SwUndoDelete::GetRewriter(), SwUndoRedlineDelete::GetRewriter(), sw::annotation::SwAnnotationWin::InitAnswer(), sw::annotation::SwAnnotationWin::InitControls(), lcl_DenotedPortion(), sw::DocumentRedlineManager::RejectRedline(), and sw::UndoManager::StartUndo().
|
static |
Definition at line 51 of file SwRewriter.cxx.
References UndoArg1, UndoArg2, and UndoArg3.
Referenced by Apply(), DenoteSpecialCharacters(), SwUndoDelete::GetRewriter(), and lcl_DenotedPortion().
|
private |
Definition at line 38 of file SwRewriter.hxx.