LibreOffice Module sw (master)
1
|
#include <annotsh.hxx>
Static Public Member Functions | |
static void | StateDisableItems (SfxItemSet &) |
static void | StateStatusLine (SfxItemSet &rSet) |
static SfxItemPool * | GetAnnotationPool (SwView const &rV) |
![]() | |
static SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
Static Private Member Functions | |
static void | InitInterface_Impl () |
SfxInterface initializer. More... | |
Private Attributes | |
SwView & | rView |
RotateTransliteration | m_aRotateCase |
Additional Inherited Members | |
![]() | |
SfxShell () | |
SfxShell (SfxViewShell *pViewSh) | |
void | SetViewShell_Impl (SfxViewShell *pView) |
SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
![]() | |
static void | HandleOpenXmlFilterSettings (SfxRequest &) |
Definition at line 28 of file annotsh.hxx.
SwAnnotationShell::SwAnnotationShell | ( | SwView & | r | ) |
Definition at line 127 of file annotsh.cxx.
References vcl::EnumContext::Annotation, GetAnnotationPool(), vcl::EnumContext::GetContextName(), rView, SfxShell::SetContextName(), and SfxShell::SetPool().
|
overridevirtual |
Definition at line 134 of file annotsh.cxx.
void SwAnnotationShell::Exec | ( | SfxRequest & | rReq | ) |
Definition at line 150 of file annotsh.cxx.
References Ann, EditView::ChangeFontSize(), CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_LRM, CHAR_NNBSP, CHAR_RLM, CHAR_SOFTHYPHEN, CHAR_ZWNBSP, CHAR_ZWSP, SfxPoolItem::CloneSetWhich(), SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateSwCharDlg(), SwAbstractDialogFactory::CreateSwParaDlg(), SfxObjectShell::Current(), SwPostItHelper::DELETED, SfxRequest::Done(), EE_CHAR_BKGCOLOR(), EE_CHAR_COLOR(), EE_CHAR_ESCAPEMENT(), EE_CHAR_FONTWIDTH(), EE_CHAR_KERNING(), EE_CHAR_LANGUAGE(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_PAIRKERNING(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WLM(), EE_FEATURE_FIELD(), EE_ITEMS_END(), EE_ITEMS_START(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), EE_PARA_WRITINGDIR(), SwView::ExecFormatFootnote(), SwView::ExecNumberingOutline(), SfxShell::ExecuteSlot(), FN_FORMAT_FOOTNOTE_DLG, FN_GROW_FONT_SIZE, FN_INSERT_STRING, FN_NUMBERING_OUTLINE_DLG, FN_SET_SUB_SCRIPT, FN_SET_SUPER_SCRIPT, FN_SHRINK_FONT_SIZE, FN_WORDCOUNT_DIALOG, SfxItemSet::Get(), Get(), SwPostItMgr::GetActiveSidebarWin(), SfxRequest::GetArg(), SfxRequest::GetArgs(), OutlinerView::GetAttribs(), SfxViewFrame::GetBindings(), OutlinerView::GetEditView(), SvxFieldItem::GetField(), OutlinerView::GetFieldAtSelection(), SvxFontListItem::GetFontList(), SfxViewShell::GetFrameWeld(), SfxShell::GetItem(), SfxItemSet::GetItemState(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), SvxTextLineItem::GetLineStyle(), SvxHyperlinkItem::GetName(), OutlinerView::GetOutliner(), sw::annotation::SwAnnotationWin::GetOutlinerView(), OutlinerView::GetOutputArea(), SfxAbstractDialog::GetOutputItemSet(), Outliner::GetParagraphCount(), SfxShell::GetPool(), SwView::GetPostItMgr(), OutlinerView::GetSelectedScriptType(), OutlinerView::GetSelection(), SfxRequest::GetSlot(), SvxHyperlinkItem::GetTargetFrame(), SvxULSpaceItem::GetUpper(), SvxHyperlinkItem::GetURL(), CntUnencodedStringItem::GetValue(), SfxViewShell::GetViewFrame(), GetWhich, SfxItemPool::GetWhich(), SwView::GetWrtShell(), SfxShell::HandleOpenXmlFilterSettings(), SwPostItMgr::HasActiveSidebarWin(), OutlinerView::InsertField(), InsertSymbol(), OutlinerView::InsertText(), SfxBindings::InvalidateAll(), Outliner::IsModified(), LINE_SPACE_DEFAULT_HEIGHT, LINESTYLE_NONE, LINESTYLE_SINGLE, ESelection::nEndPos, OUStringToOString(), SvxScriptSetItem::PutItemForScriptType(), RES_BREAK(), RES_CHRATR_KERNING(), RES_PARATR_HYPHENZONE(), RES_PARATR_ORPHANS(), RES_PARATR_SPLIT(), RES_PARATR_WIDOWS(), sw::annotation::SwAnnotationWin::ResetAttributes(), RET_OK, rView, OutlinerView::SelectRange(), OutlinerView::SetAttribs(), SfxAbstractTabDialog::SetCurPageId(), SvxEscapementItem::SetEscapement(), SwEditShell::SetModified(), SvxLineSpacingItem::SetPropLineSpace(), OutlinerView::SetSelection(), SvxURLField::SetTargetFrame(), and SwView::UpdateWordCount().
void SwAnnotationShell::ExecClpbrd | ( | SfxRequest const & | rReq | ) |
Definition at line 859 of file annotsh.cxx.
References OutlinerView::Copy(), SvxAbstractDialogFactory::Create(), TransferableDataHelper::CreateFromSystemClipboard(), OutlinerView::Cut(), SwPostItHelper::DELETED, SwPostItMgr::GetActiveSidebarWin(), SfxRequest::GetArgs(), SwView::GetEditWin(), SfxAbstractPasteDialog::GetFormat(), vcl::Window::GetFrameWeld(), SfxItemSet::GetItemState(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), sw::annotation::SwAnnotationWin::GetPostItTextHeight(), SfxRequest::GetSlot(), TransferableDataHelper::GetTransferable(), SwPostItMgr::HasActiveSidebarWin(), OutlinerView::HasSelection(), SfxAbstractPasteDialog::Insert(), OutlinerView::Paste(), OutlinerView::PasteSpecial(), sw::annotation::SwAnnotationWin::ResizeIfNecessary(), and rView.
void SwAnnotationShell::ExecLingu | ( | SfxRequest & | rReq | ) |
Definition at line 1230 of file annotsh.cxx.
References aSeq, cppu::defaultBootstrap_InitialComponentContext(), Exception, SwPostItMgr::GetActiveSidebarWin(), SfxRequest::GetArg(), OutputDevice::GetDefaultFont(), OutlinerView::GetEditView(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), OutlinerView::GetSelection(), SfxRequest::GetSlot(), CntUnencodedStringItem::GetValue(), SwView::GetWrtShell(), SwPostItMgr::HasActiveSidebarWin(), EditView::HasSelection(), comphelper::InitAnyPropertySequence(), LANGUAGE_CHINESE_SIMPLIFIED, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_KOREAN, ReplaceTextWithSynonym(), RET_OK, rView, EditView::SelectCurrentWord(), SwLangHelper::SetLanguageStatus(), EditView::SetSelection(), OutlinerView::StartTextConversion(), and OutlinerView::StartThesaurus().
void SwAnnotationShell::ExecRotateTransliteration | ( | SfxRequest const & | rReq | ) |
Definition at line 1471 of file annotsh.cxx.
References SwPostItMgr::GetActiveSidebarWin(), RotateTransliteration::getNextMode(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), SfxRequest::GetSlot(), SwPostItMgr::HasActiveSidebarWin(), m_aRotateCase, rView, and OutlinerView::TransliterateText().
void SwAnnotationShell::ExecSearch | ( | SfxRequest & | rReq | ) |
Definition at line 849 of file annotsh.cxx.
References SwView::ExecSearch(), and rView.
void SwAnnotationShell::ExecTransliteration | ( | SfxRequest const & | rReq | ) |
Definition at line 1420 of file annotsh.cxx.
References SwPostItMgr::GetActiveSidebarWin(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), SfxRequest::GetSlot(), SwPostItMgr::HasActiveSidebarWin(), rView, and OutlinerView::TransliterateText().
void SwAnnotationShell::ExecUndo | ( | SfxRequest & | rReq | ) |
Definition at line 1488 of file annotsh.cxx.
References CONFLICT, SwWrtShell::Do(), EMPTY, SwPostItMgr::GetActiveSidebarWin(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SwEditShell::GetFirstRedoInfo(), SfxItemSet::GetItemState(), SwEditShell::GetLastUndoInfo(), SwView::GetPostItMgr(), sw::annotation::SwAnnotationWin::GetPostItTextHeight(), SfxUndoManager::GetRedoActionCount(), SfxRequest::GetSlot(), SfxUndoManager::GetUndoActionCount(), GetUndoManager(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), SwPostItMgr::HasActiveSidebarWin(), SfxBindings::InvalidateAll(), nCount, nId, SfxUndoManager::Redo(), SwWrtShell::REDO, sw::annotation::SwAnnotationWin::ResizeIfNecessary(), rView, SfxRequest::SetReturnValue(), SfxUndoManager::Undo(), SwWrtShell::UNDO, and void().
|
static |
Definition at line 121 of file annotsh.cxx.
References SwViewShell::GetAttrPool(), SfxItemPool::GetSecondaryPool(), and SwView::GetWrtShell().
Referenced by SwPostItMgr::ExecuteFormatAllDialog(), and SwAnnotationShell().
void SwAnnotationShell::GetLinguState | ( | SfxItemSet & | rSet | ) |
Definition at line 1350 of file annotsh.cxx.
References LanguageTag::convertToLocale(), SwPostItHelper::DELETED, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SwPostItMgr::GetActiveSidebarWin(), GetAppLanguage(), SfxViewFrame::GetBindings(), SwDoc::GetDefault(), SwViewShell::GetDoc(), OutlinerView::GetEditView(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SwLangHelper::GetLanguage(), SwLangHelper::GetLanguageStatus(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), GetStatusValueForThesaurusFromContext(), GetThesaurus(), SfxViewShell::GetViewFrame(), GetWhichOfScript(), SwView::GetWrtShell(), SwPostItMgr::HasActiveSidebarWin(), LANGUAGE_NONE, SfxWhichIter::NextWhich(), nLang, SfxItemSet::Put(), RES_CHRATR_LANGUAGE(), rView, and SfxBindings::SetVisibleState().
void SwAnnotationShell::GetNoteState | ( | SfxItemSet & | rSet | ) |
Definition at line 1123 of file annotsh.cxx.
References SwRewriter::AddRule(), SwRewriter::Apply(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), FN_DELETE_ALL_NOTES, FN_DELETE_COMMENT, FN_DELETE_COMMENT_THREAD, FN_DELETE_NOTE_AUTHOR, FN_FORMAT_ALL_NOTES, FN_HIDE_ALL_NOTES, FN_HIDE_NOTE, FN_HIDE_NOTE_AUTHOR, FN_POSTIT, FN_REPLY, FN_RESOLVE_NOTE, FN_RESOLVE_NOTE_THREAD, SwPostItMgr::GetActiveSidebarWin(), sw::annotation::SwAnnotationWin::GetAuthor(), SvtUserOptions::GetFullName(), SvtUserOptions::GetID(), SfxShell::GetPool(), SwView::GetPostItMgr(), SfxItemPool::GetSlotId(), SwPostItMgr::HasActiveAnnotationWin(), SwPostItMgr::HasActiveSidebarWin(), SfxItemSet::InvalidateItem(), sw::annotation::SwAnnotationWin::IsProtected(), sw::annotation::SwAnnotationWin::IsResolved(), sw::annotation::SwAnnotationWin::IsThreadResolved(), SfxWhichIter::NextWhich(), SfxItemSet::Put(), rView, SwResId(), and UndoArg1.
void SwAnnotationShell::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 584 of file annotsh.cxx.
References SfxPoolItem::CloneSetWhich(), SwPostItHelper::DELETED, SfxItemSet::DisableItem(), EE_CHAR_BKGCOLOR(), EE_CHAR_COLOR(), EE_CHAR_ESCAPEMENT(), EE_CHAR_KERNING(), EE_CHAR_LANGUAGE(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), EE_PARA_WRITINGDIR(), FN_SET_SUB_SCRIPT, FN_SET_SUPER_SCRIPT, SwPostItMgr::GetActiveSidebarWin(), OutlinerView::GetAttribs(), SfxViewFrame::GetBindings(), SvxScriptSetItem::GetItemOfScript(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), SvxULSpaceItem::GetLower(), OutlinerView::GetOutliner(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SfxShell::GetPool(), SwView::GetPostItMgr(), OutlinerView::GetSelectedScriptType(), SfxItemPool::GetSlotId(), SfxShell::GetSlotState(), SvxULSpaceItem::GetUpper(), GetValue, SfxViewShell::GetViewFrame(), SwPostItMgr::HasActiveSidebarWin(), SfxItemSet::InvalidateItem(), SvtCTLOptions::IsCTLFontEnabled(), IsInvalidItem(), Outliner::IsVertical(), SfxItemSet::Put(), rView, and SfxBindings::SetVisibleState().
|
overridevirtual |
Reimplemented from SfxShell.
Definition at line 138 of file annotsh.cxx.
References SwPostItMgr::GetActiveSidebarWin(), OutlinerView::GetOutliner(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), Outliner::GetUndoManager(), SwPostItMgr::HasActiveSidebarWin(), and rView.
Referenced by ExecUndo(), and StateUndo().
|
staticprivate |
SfxInterface initializer.
Definition at line 113 of file annotsh.cxx.
References SFX_OBJECTBAR_OBJECT.
void SwAnnotationShell::InsertSymbol | ( | SfxRequest & | rReq | ) |
Definition at line 1699 of file annotsh.cxx.
References SfxRequest::AppendItem(), SfxPoolItem::Clone(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateCharMapDialog(), SfxRequest::Done(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), g_pBreakIt, SwPostItMgr::GetActiveSidebarWin(), SwBreakIt::GetAllScriptsOfText(), GetAppLanguage(), SfxRequest::GetArgs(), OutlinerView::GetAttribs(), vcl::Font::GetCharSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxViewShell::GetFrameWeld(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SfxItemSet::GetItemState(), OutlinerView::GetOutliner(), sw::annotation::SwAnnotationWin::GetOutlinerView(), vcl::Font::GetPitch(), SfxShell::GetPool(), SwView::GetPostItMgr(), OutlinerView::GetSelectedScriptType(), OutlinerView::GetSelection(), vcl::Font::GetStyleName(), SwViewOption::GetSymbolFont(), GetValue, SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), GetWhich, GetWhichOfScript(), SwView::GetWrtShell(), SwPostItMgr::HasActiveSidebarWin(), OutlinerView::HideCursor(), OutlinerView::InsertText(), ESelection::nStartPara, SfxItemSet::Put(), RES_CHRATR_FONT(), rView, OutlinerView::SetAttribs(), OutlinerView::SetSelection(), Outliner::SetUpdateMode(), OutlinerView::ShowCursor(), and xFrame.
Referenced by Exec().
void SwAnnotationShell::NoteExec | ( | SfxRequest const & | rReq | ) |
Definition at line 1074 of file annotsh.cxx.
References SwPostItMgr::Delete(), sw::annotation::SwAnnotationWin::ExecuteCommand(), SwPostItMgr::ExecuteFormatAllDialog(), FN_DELETE_ALL_NOTES, FN_DELETE_COMMENT, FN_DELETE_COMMENT_THREAD, FN_DELETE_NOTE_AUTHOR, FN_FORMAT_ALL_NOTES, FN_HIDE_ALL_NOTES, FN_HIDE_NOTE, FN_HIDE_NOTE_AUTHOR, FN_POSTIT, FN_REPLY, FN_RESOLVE_NOTE, FN_RESOLVE_NOTE_THREAD, SwPostItMgr::GetActiveSidebarWin(), SfxRequest::GetArg(), sw::annotation::SwAnnotationWin::GetAuthor(), SwView::GetPostItMgr(), SfxRequest::GetSlot(), CntUnencodedStringItem::GetValue(), SwPostItMgr::HasActiveSidebarWin(), SwPostItMgr::Hide(), and rView.
void SwAnnotationShell::StateClpbrd | ( | SfxItemSet & | rSet | ) |
Definition at line 935 of file annotsh.cxx.
References SvxClipboardFormatItem::AddClipbrdFormat(), TransferableDataHelper::CreateFromSystemClipboard(), SwPostItHelper::DELETED, SfxItemSet::DisableItem(), SwPostItMgr::GetActiveSidebarWin(), SwView::GetEditWin(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), SfxShell::GetObjectShell(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), SwPostItMgr::HasActiveSidebarWin(), TransferableDataHelper::HasFormat(), OutlinerView::HasSelection(), SfxObjectShell::isContentExtractionLocked(), SfxItemSet::Put(), and rView.
|
static |
Definition at line 1688 of file annotsh.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), and SfxWhichIter::NextWhich().
void SwAnnotationShell::StateInsert | ( | SfxItemSet & | rSet | ) |
Definition at line 1021 of file annotsh.cxx.
References SwPostItHelper::DELETED, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SwPostItMgr::GetActiveSidebarWin(), SwView::GetDocShell(), SvxFieldItem::GetField(), OutlinerView::GetFieldAtSelection(), GetHtmlMode(), SvxHyperlinkItem::GetInsertMode(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), sw::annotation::SwAnnotationWin::GetOutlinerView(), SwView::GetPostItMgr(), OutlinerView::GetSelected(), SwPostItMgr::HasActiveSidebarWin(), HLINK_FIELD, HLINK_HTMLMODE, HTMLMODE_ON, SfxWhichIter::NextWhich(), SfxItemSet::Put(), rView, SvxHyperlinkItem::SetInsertMode(), SvxHyperlinkItem::SetName(), SvxHyperlinkItem::SetTargetFrame(), SvxHyperlinkItem::SetURL(), and comphelper::string::stripEnd().
void SwAnnotationShell::StateSearch | ( | SfxItemSet & | rSet | ) |
Definition at line 854 of file annotsh.cxx.
References rView, and SwView::StateSearch().
|
static |
Definition at line 996 of file annotsh.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), FN_STAT_SELMODE, FN_STAT_TEMPLATE, SfxWhichIter::NextWhich(), and SfxItemSet::Put().
void SwAnnotationShell::StateUndo | ( | SfxItemSet & | rSet | ) |
Definition at line 1575 of file annotsh.cxx.
References CONFLICT, SwPostItHelper::DELETED, SfxItemSet::DisableItem(), EMPTY, SfxWhichIter::FirstWhich(), SwPostItMgr::GetActiveSidebarWin(), SwWrtShell::GetDoString(), SwWrtShell::GetDoStrings(), SwEditShell::GetFirstRedoInfo(), SfxShell::GetInterface(), SwEditShell::GetLastUndoInfo(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), SwView::GetPostItMgr(), SfxUndoManager::GetRedoActionComment(), SfxUndoManager::GetRedoActionCount(), SfxShell::GetSlotState(), SfxStringListItem::GetString(), SfxUndoManager::GetUndoActionComment(), SfxUndoManager::GetUndoActionCount(), GetUndoManager(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), SwPostItMgr::HasActiveSidebarWin(), n, nCount, SfxWhichIter::NextWhich(), SfxItemSet::Put(), SwWrtShell::REDO, rView, SfxStringListItem::SetString(), SfxUndoManager::TopLevel, and SwWrtShell::UNDO.
|
private |
Definition at line 31 of file annotsh.hxx.
Referenced by ExecRotateTransliteration().
|
private |
Definition at line 30 of file annotsh.hxx.
Referenced by Exec(), ExecClpbrd(), ExecLingu(), ExecRotateTransliteration(), ExecSearch(), ExecTransliteration(), ExecUndo(), GetLinguState(), GetNoteState(), GetState(), GetUndoManager(), InsertSymbol(), NoteExec(), StateClpbrd(), StateInsert(), StateSearch(), StateUndo(), and SwAnnotationShell().