LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScEditShell Class Referencefinal

#include <editsh.hxx>

Inheritance diagram for ScEditShell:
[legend]
Collaboration diagram for ScEditShell:
[legend]

Public Member Functions

 ScEditShell (EditView *pView, ScViewData &rData)
 
virtual ~ScEditShell () override
 
void SetEditView (EditView *pView)
 
EditViewGetEditView ()
 
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 SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
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)
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (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 SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
virtual SfxObjectShellGetObjectShell ()
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::optional< SfxItemSetCreateItemSet (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 SvxURLFieldGetURLField ()
 
ScInputHandlerGetMyInputHdl ()
 
 DECL_LINK (ClipboardChanged, TransferableDataHelper *, void)
 

Static Private Member Functions

static void InitInterface_Impl ()
 SfxInterface initializer. More...
 

Private Attributes

EditViewpEditView
 
ScViewDatarViewData
 
rtl::Reference< TransferableClipboardListenermxClipEvtLstnr
 
bool bPastePossible
 
bool bIsInsertMode
 
std::optional< bool > moAtContextMenu_DisableEditHyperlink
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
 
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 &)
 

Detailed Description

Definition at line 36 of file editsh.hxx.

Constructor & Destructor Documentation

◆ ScEditShell()

ScEditShell::ScEditShell ( EditView pView,
ScViewData rData 
)

◆ ~ScEditShell()

ScEditShell::~ScEditShell ( )
overridevirtual

Definition at line 104 of file editsh.cxx.

References ScViewData::GetActiveWin(), mxClipEvtLstnr, and rViewData.

Member Function Documentation

◆ DECL_LINK()

ScEditShell::DECL_LINK ( ClipboardChanged  ,
TransferableDataHelper ,
void   
)
private

References SFX_DECL_INTERFACE.

◆ EnableEditHyperlink()

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.

◆ Execute()

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().

◆ ExecuteAttr()

void ScEditShell::ExecuteAttr ( SfxRequest rReq)

◆ ExecuteTrans()

void ScEditShell::ExecuteTrans ( const SfxRequest rReq)

◆ ExecuteUndo()

void ScEditShell::ExecuteUndo ( const SfxRequest rReq)

◆ GetAttrState()

void ScEditShell::GetAttrState ( SfxItemSet rSet)

◆ GetClipState()

void ScEditShell::GetClipState ( SfxItemSet rSet)

◆ GetEditView()

EditView * ScEditShell::GetEditView ( )
inline

Definition at line 68 of file editsh.hxx.

References pEditView.

Referenced by ScTabViewObj::getTransferable(), and ScTabViewObj::insertTransferable().

◆ GetMyInputHdl()

ScInputHandler * ScEditShell::GetMyInputHdl ( )
private

◆ GetSelectionText()

OUString ScEditShell::GetSelectionText ( bool  bWholeWord)

◆ GetState()

void ScEditShell::GetState ( SfxItemSet rSet)

◆ GetUndoState()

void ScEditShell::GetUndoState ( SfxItemSet rSet)

◆ GetURLField()

const SvxURLField * ScEditShell::GetURLField ( )
private

◆ InitInterface_Impl()

void ScEditShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 87 of file editsh.cxx.

◆ SetEditView()

void ScEditShell::SetEditView ( EditView pView)

◆ ShouldDisableEditHyperlink()

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().

Member Data Documentation

◆ bIsInsertMode

bool ScEditShell::bIsInsertMode
private

Definition at line 43 of file editsh.hxx.

Referenced by Execute(), and SetEditView().

◆ bPastePossible

bool ScEditShell::bPastePossible
private

Definition at line 42 of file editsh.hxx.

Referenced by GetClipState().

◆ moAtContextMenu_DisableEditHyperlink

std::optional<bool> ScEditShell::moAtContextMenu_DisableEditHyperlink
private

Definition at line 49 of file editsh.hxx.

Referenced by EnableEditHyperlink(), and GetState().

◆ mxClipEvtLstnr

rtl::Reference<TransferableClipboardListener> ScEditShell::mxClipEvtLstnr
private

Definition at line 41 of file editsh.hxx.

Referenced by GetClipState(), and ~ScEditShell().

◆ pEditView

EditView* ScEditShell::pEditView
private

◆ rViewData

ScViewData& ScEditShell::rViewData
private

The documentation for this class was generated from the following files: