|
LibreOffice Module sc (master) 1
|
#include <editsh.hxx>
Public Member Functions | |
| ScEditShell (EditView *pView, ScViewData &rData) | |
| virtual | ~ScEditShell () override |
| void | SetEditView (EditView *pView) |
| EditView * | GetEditView () |
| void | Execute (SfxRequest &rReq) |
| void | ExecuteTrans (const SfxRequest &rReq) |
| void | GetState (SfxItemSet &rSet) |
| void | GetClipState (SfxItemSet &rSet) |
| void | ExecuteAttr (SfxRequest &rReq) |
| void | GetAttrState (SfxItemSet &rSet) |
| void | ExecuteUndo (const SfxRequest &rReq) |
| void | GetUndoState (SfxItemSet &rSet) |
| OUString | GetSelectionText (bool bWholeWord) |
| bool | ShouldDisableEditHyperlink () const |
| return true if "Edit Hyperlink" in context menu should be disabled More... | |
| void | EnableEditHyperlink () |
| force "Edit Hyperlink" to true, with the expectation that SID_EDIT_HYPERLINK is later Invalidated to reset it back to its natural value More... | |
Public Member Functions inherited from SfxShell | |
| virtual | ~SfxShell () override |
| virtual SfxInterface * | GetInterface () const |
| void | SetName (const OUString &rName) |
| const OUString & | GetName () const |
| SfxViewShell * | GetViewShell () const |
| const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
| const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
| void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
| SfxItemPool & | GetPool () const |
| void | SetPool (SfxItemPool *pNewPool) |
| virtual SfxUndoManager * | GetUndoManager () |
| void | SetUndoManager (SfxUndoManager *pNewUndoMgr) |
| SfxRepeatTarget * | GetRepeatTarget () const |
| void | SetRepeatTarget (SfxRepeatTarget *pTarget) |
| virtual void | Invalidate (sal_uInt16 nId=0) |
| virtual bool | IsDesignMode () const |
| bool | IsActive () const |
| virtual void | Activate (bool bMDI) |
| virtual void | Deactivate (bool bMDI) |
| SfxDispatcher * | GetDispatcher () const |
| SfxViewFrame * | GetFrame () const |
| virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
| void | UIFeatureChanged () |
| const SfxPoolItem * | GetItem (sal_uInt16 nSlotId) const |
| const T * | GetItem (TypedWhichId< T > nWhich) const |
| void | PutItem (const SfxPoolItem &rItem) |
| void | SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs) |
| const css::uno::Sequence< css::embed::VerbDescriptor > & | GetVerbs () const |
| void | VerbExec (SfxRequest &) |
| SAL_DLLPRIVATE const SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
| virtual SfxObjectShell * | GetObjectShell () |
| void | SetDisableFlags (SfxDisableFlags nFlags) |
| SfxDisableFlags | GetDisableFlags () const |
| virtual std::optional< SfxItemSet > | CreateItemSet (sal_uInt16 nId) |
| virtual void | ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet) |
| void | SetContextName (const OUString &rsContextName) |
| void | BroadcastContextForActivation (const bool bIsActivated) |
| bool | SetContextBroadcasterEnabled (const bool bIsEnabled) |
| SAL_DLLPRIVATE bool | CanExecuteSlot_Impl (const SfxSlot &rSlot) |
| virtual bool | IsConditionalFastCall (const SfxRequest &rReq) |
| SAL_DLLPRIVATE void | DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI) |
| SAL_DLLPRIVATE void | DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI) |
Private Member Functions | |
| const SvxURLField * | GetURLField () |
| ScInputHandler * | GetMyInputHdl () |
| DECL_LINK (ClipboardChanged, TransferableDataHelper *, void) | |
Static Private Member Functions | |
| static void | InitInterface_Impl () |
| SfxInterface initializer. More... | |
Private Attributes | |
| EditView * | pEditView |
| ScViewData & | rViewData |
| rtl::Reference< TransferableClipboardListener > | mxClipEvtLstnr |
| bool | bPastePossible |
| bool | bIsInsertMode |
| std::optional< bool > | moAtContextMenu_DisableEditHyperlink |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxShell | |
| static SfxInterface * | GetStaticInterface () |
| static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
| static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
| static void | VerbState (SfxItemSet &) |
Protected Member Functions inherited from SfxShell | |
| SfxShell () | |
| SfxShell (SfxViewShell *pViewSh) | |
| void | SetViewShell_Impl (SfxViewShell *pView) |
| SAL_DLLPRIVATE void | Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId) |
Static Protected Member Functions inherited from SfxShell | |
| static void | HandleOpenXmlFilterSettings (SfxRequest &) |
Definition at line 36 of file editsh.hxx.
| ScEditShell::ScEditShell | ( | EditView * | pView, |
| ScViewData & | rData | ||
| ) |
Definition at line 92 of file editsh.cxx.
References vcl::EnumContext::EditCell, vcl::EnumContext::GetContextName(), EditView::GetEditEngine(), EditEngine::GetEmptyItemSet(), SfxItemSet::GetPool(), EditEngine::GetUndoManager(), pEditView, SfxShell::SetContextName(), SfxShell::SetName(), SfxShell::SetPool(), and SfxShell::SetUndoManager().
|
overridevirtual |
Definition at line 104 of file editsh.cxx.
References ScViewData::GetActiveWin(), mxClipEvtLstnr, and rViewData.
|
private |
References SFX_DECL_INTERFACE.
| void ScEditShell::EnableEditHyperlink | ( | ) |
force "Edit Hyperlink" to true, with the expectation that SID_EDIT_HYPERLINK is later Invalidated to reset it back to its natural value
Definition at line 720 of file editsh.cxx.
References moAtContextMenu_DisableEditHyperlink.
| void ScEditShell::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 158 of file editsh.cxx.
References aBuffer, ESelection::Adjust(), ToggleUnicodeCodepoint::AllowMoreInput(), SfxRequest::AppendItem(), ATTR_FONT(), bIsInsertMode, BTN_PASTE_NAME, CHAR_LRM, CHAR_NBHY, CHAR_NBSP, CHAR_NNBSP, CHAR_RLM, CHAR_SHY, CHAR_WJ, CHAR_ZWSP, SvxFontItem::Clone(), EditView::Copy(), vcl::unohelper::TextDataObject::CopyStringTo(), SvxAbstractDialogFactory::Create(), ScAbstractDialogFactory::Create(), TransferableDataHelper::CreateFromSystemClipboard(), ScAbstractDialogFactory::CreateScCharDlg(), ScAbstractDialogFactory::CreateScNamePasteDlg(), SfxViewShell::Current(), EditView::Cut(), ScInputHandler::DataChanged(), ScInputHandler::DataChanging(), EditView::DeleteSelected(), VclPtr< class reference_type >::disposeAndClear(), SfxRequest::Done(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_FEATURE_FIELD(), eMode, SfxDispatcher::Execute(), ScViewUtil::ExecuteCharMap(), ScInputHandler::GetActiveView(), ScViewData::GetActiveWin(), ScDocument::GetAddressConvention(), SfxRequest::GetArg(), SfxRequest::GetArgs(), EditView::GetAttribs(), ScViewData::GetBindings(), vcl::Font::GetCharSet(), EditView::GetClipboard(), EditView::GetControlWord(), ScViewData::GetCurPos(), ScViewData::GetDialogParent(), SfxViewFrame::GetDispatcher(), ScViewData::GetDocShell(), ScViewData::GetDocument(), EditView::GetEditEngine(), EditView::GetEmptyItemSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), EditView::GetFieldAtCursor(), ScRefFinder::GetFound(), SvxHyperlinkItem::GetInsertMode(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), GetMyInputHdl(), SvxHyperlinkItem::GetName(), EditEngine::GetParagraphCount(), vcl::Font::GetPitch(), SfxShell::GetPool(), EditView::GetSelected(), EditView::GetSelectedScriptType(), EditView::GetSelection(), ScRefFinder::GetSelEnd(), ScRefFinder::GetSelStart(), ScViewData::GetSfxDocShell(), SfxRequest::GetSlot(), ScDocument::GetStringScriptType(), vcl::Font::GetStyleName(), ScInputHandler::GetTableView(), ScViewData::GetTabNo(), SvxURLField::GetTargetFrame(), SvxHyperlinkItem::GetTargetFrame(), ScRefFinder::GetText(), EditEngine::GetText(), EditEngine::GetTextLen(), ScInputHandler::GetTopView(), TransferableDataHelper::GetTransferable(), SvxURLField::GetURL(), SvxHyperlinkItem::GetURL(), GetURLField(), CntUnencodedStringItem::GetValue(), GetValue, SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), EditView::GetWindow(), ESelection::HasRange(), ScDocument::HasStringWeakCharacters(), HLINK_DEFAULT, HLINK_FIELD, EditView::InsertField(), EditView::InsertText(), SfxBindings::Invalidate(), EditView::IsInsertMode(), lcl_RemoveAttribs(), lclInsertCharacter(), ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, ScGlobal::OpenURL(), EditView::Paste(), EditView::PasteSpecial(), pEditView, pOut, SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), EditEngine::QuickSetAttribs(), URLFieldHelper::RemoveURLField(), ToggleUnicodeCodepoint::ReplacementString(), ReplaceTextWithSynonym(), RET_OK, rTarget, rViewData, SC_MOD, EditView::SelectFieldAtCursor(), EditView::SetAttribs(), EditView::SetControlWord(), EditView::SetInsertMode(), EditView::SetSelection(), ScInputHandler::SetSelIsRef(), SvxURLField::SetTargetFrame(), EditEngine::SetText(), ToggleUnicodeCodepoint::StringToReplace(), and ScRefFinder::ToggleRel().
| void ScEditShell::ExecuteAttr | ( | SfxRequest & | rReq | ) |
Definition at line 942 of file editsh.cxx.
References EditView::ChangeFontSize(), SfxObjectShell::Current(), SfxRequest::Done(), EE_CHAR_ESCAPEMENT(), EE_CHAR_ITALIC(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), SfxItemSet::Get(), SfxRequest::GetArgs(), EditView::GetAttribs(), ScViewData::GetBindings(), ScGlobal::GetDefaultScriptType(), EditView::GetEditEngine(), EditView::GetEmptyItemSet(), SvxFontListItem::GetFontList(), SfxShell::GetItem(), SvxScriptSetItem::GetItemOfScript(), SvxTextLineItem::GetLineStyle(), GetMyInputHdl(), SfxShell::GetPool(), SfxItemSet::GetPool(), EditView::GetSelectedScriptType(), SfxRequest::GetSlot(), GetValue, SfxItemPool::GetWhich(), EditView::Invalidate(), SfxBindings::Invalidate(), ITALIC_NONE, ITALIC_NORMAL, lcl_InvalidateUnder(), LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, pEditView, SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), rViewData, EditView::SetAttribs(), ScInputHandler::SetModified(), EditEngine::SetUpdateLayout(), STRIKEOUT_NONE, STRIKEOUT_SINGLE, WEIGHT_BOLD, and WEIGHT_NORMAL.
| void ScEditShell::ExecuteTrans | ( | const SfxRequest & | rReq | ) |
Definition at line 1339 of file editsh.cxx.
References ScInputHandler::DataChanged(), ScInputHandler::DataChanging(), GetMyInputHdl(), SfxRequest::GetSlot(), ScInputHandler::GetTableView(), ScInputHandler::GetTopView(), ScViewUtil::GetTransliterationType(), nType, and EditView::TransliterateText().
| void ScEditShell::ExecuteUndo | ( | const SfxRequest & | rReq | ) |
Definition at line 1259 of file editsh.cxx.
References ScInputHandler::DataChanged(), ScInputHandler::DataChanging(), SfxRequest::GetArgs(), ScViewData::GetBindings(), SfxItemSet::GetItemState(), GetMyInputHdl(), SfxRequest::GetSlot(), ScInputHandler::GetTableView(), ScInputHandler::GetTopView(), CntUInt16Item::GetValue(), i, SfxBindings::InvalidateAll(), nCount, EditView::Redo(), rViewData, and EditView::Undo().
| void ScEditShell::GetAttrState | ( | SfxItemSet & | rSet | ) |
Testing whether brace highlighting is active !!!!
Definition at line 1162 of file editsh.cxx.
References SfxItemSet::ClearItem(), EE_CHAR_ESCAPEMENT(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTINFO(), EE_CHAR_ITALIC(), EE_CHAR_KERNING(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), SfxItemSet::Get(), ScViewData::GetActivePart(), ScViewData::GetActiveWin(), EditView::GetAttribs(), ScViewData::GetBindings(), ScGlobal::GetDefaultScriptType(), vcl::Window::GetInputLanguage(), SfxItemSet::GetItemState(), GetMyInputHdl(), SvtLanguageOptions::GetScriptTypeOfLanguage(), EditView::GetSelectedScriptType(), EditView::GetSelection(), ScViewData::HasEditView(), ESelection::HasRange(), SfxBindings::Invalidate(), SfxItemSet::InvalidateItem(), ScInputHandler::IsFormulaMode(), LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, lcl_DisableAll(), LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, pEditView, SfxItemSet::Put(), ScViewUtil::PutItemScript(), rSet, and rViewData.
| void ScEditShell::GetClipState | ( | SfxItemSet & | rSet | ) |
Definition at line 881 of file editsh.cxx.
References SvxClipboardFormatItem::AddClipbrdFormat(), bPastePossible, TransferableDataHelper::CreateFromSystemClipboard(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), ScViewData::GetActiveWin(), TransferableDataHelper::HasFormat(), LINK, mxClipEvtLstnr, SfxWhichIter::NextWhich(), SfxItemSet::Put(), rSet, and rViewData.
|
inline |
Definition at line 68 of file editsh.hxx.
References pEditView.
Referenced by ScTabViewObj::getTransferable(), and ScTabViewObj::insertTransferable().
|
private |
Definition at line 116 of file editsh.cxx.
References ScViewData::GetViewShell(), rViewData, and SC_MOD.
Referenced by Execute(), ExecuteAttr(), ExecuteTrans(), ExecuteUndo(), GetAttrState(), GetState(), GetUndoState(), and GetURLField().
| OUString ScEditShell::GetSelectionText | ( | bool | bWholeWord | ) |
Definition at line 1234 of file editsh.cxx.
References ScViewData::GetActivePart(), EditView::GetEditEngine(), EditView::GetSelected(), EditView::GetSelection(), EditEngine::GetWord(), EditEngine::GetWordDelimiters(), ScViewData::HasEditView(), ESelection::nEndPara, ESelection::nEndPos, pEditView, rViewData, and EditEngine::SetWordDelimiters().
| void ScEditShell::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 725 of file editsh.cxx.
References SfxItemSet::ClearItem(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), ScViewData::GetActivePart(), ScInputHandler::GetActiveView(), ScViewData::GetBindings(), GetMyInputHdl(), SfxShell::GetObjectShell(), SvxURLField::GetRepresentation(), EditView::GetSelected(), GetStatusValueForThesaurusFromContext(), SvxURLField::GetTargetFrame(), SvxURLField::GetURL(), GetURLField(), ScViewData::HasEditView(), ScModule::HasThesaurusLanguage(), ScViewUtil::HideDisabledSlot(), ScInputHandler::IsFormulaMode(), EditView::IsInsertMode(), LANGUAGE_NONE, lcl_DisableAll(), moAtContextMenu_DisableEditHyperlink, SfxWhichIter::NextWhich(), pEditView, SfxItemSet::Put(), rSet, rViewData, SvxHyperlinkItem::SetName(), SvxHyperlinkItem::SetTargetFrame(), SvxHyperlinkItem::SetURL(), ShouldDisableEditHyperlink(), and comphelper::string::stripEnd().
| void ScEditShell::GetUndoState | ( | SfxItemSet & | rSet | ) |
Definition at line 1308 of file editsh.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), EditView::GetEditEngine(), GetMyInputHdl(), SfxUndoManager::GetRedoActionCount(), SfxShell::GetSlotState(), ScInputHandler::GetTopView(), SfxUndoManager::GetUndoActionCount(), EditEngine::GetUndoManager(), SfxShell::GetUndoManager(), SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), SfxWhichIter::NextWhich(), rSet, and rViewData.
|
private |
Definition at line 854 of file editsh.cxx.
References ScInputHandler::GetActiveView(), EditView::GetFieldAtCursor(), GetMyInputHdl(), and pEditView.
Referenced by Execute(), and GetState().
|
staticprivate |
SfxInterface initializer.
Definition at line 87 of file editsh.cxx.
| void ScEditShell::SetEditView | ( | EditView * | pView | ) |
Definition at line 121 of file editsh.cxx.
References bIsInsertMode, EditView::GetEditEngine(), EditEngine::GetEmptyItemSet(), SfxItemSet::GetPool(), EditEngine::GetUndoManager(), pEditView, EditView::SetInsertMode(), SfxShell::SetPool(), and SfxShell::SetUndoManager().
| bool ScEditShell::ShouldDisableEditHyperlink | ( | ) | const |
return true if "Edit Hyperlink" in context menu should be disabled
Definition at line 715 of file editsh.cxx.
References ScViewData::GetActivePart(), ScViewData::HasEditView(), URLFieldHelper::IsCursorAtURLField(), pEditView, and rViewData.
Referenced by GetState().
|
private |
Definition at line 43 of file editsh.hxx.
Referenced by Execute(), and SetEditView().
|
private |
Definition at line 42 of file editsh.hxx.
Referenced by GetClipState().
|
private |
Definition at line 49 of file editsh.hxx.
Referenced by EnableEditHyperlink(), and GetState().
|
private |
Definition at line 41 of file editsh.hxx.
Referenced by GetClipState(), and ~ScEditShell().
|
private |
Definition at line 39 of file editsh.hxx.
Referenced by Execute(), ExecuteAttr(), GetAttrState(), GetEditView(), GetSelectionText(), GetState(), GetURLField(), ScEditShell(), SetEditView(), and ShouldDisableEditHyperlink().
|
private |
Definition at line 40 of file editsh.hxx.
Referenced by Execute(), ExecuteAttr(), ExecuteUndo(), GetAttrState(), GetClipState(), GetMyInputHdl(), GetSelectionText(), GetState(), GetUndoState(), ShouldDisableEditHyperlink(), and ~ScEditShell().