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)
 
SfxRepeatTargetGetRepeatTarget () 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 ( EditView pView,
ScViewData rData 
)
ScEditShell::~ScEditShell ( )
overridevirtual

Definition at line 103 of file editsh.cxx.

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

Member Function Documentation

ScEditShell::DECL_LINK ( ClipboardChanged  ,
TransferableDataHelper ,
void   
)
private
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 718 of file editsh.cxx.

References moAtContextMenu_DisableEditHyperlink.

void ScEditShell::Execute ( SfxRequest rReq)

Definition at line 157 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< reference_type >::disposeAndClear(), SfxRequest::Done(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_FEATURE_FIELD(), eMode, EMPTY_OUSTRING, VclAbstractDialog::Execute(), SfxDispatcher::Execute(), ScViewUtil::ExecuteCharMap(), SfxItemSet::Get(), ScInputHandler::GetActiveView(), ScViewData::GetActiveWin(), ScDocument::GetAddressConvention(), SfxRequest::GetArg(), SfxRequest::GetArgs(), EditView::GetAttribs(), ScViewData::GetBindings(), EditView::GetClipboard(), EditView::GetControlWord(), ScViewData::GetCurPos(), ScViewData::GetDialogParent(), SfxViewFrame::GetDispatcher(), ScViewData::GetDocShell(), ScViewData::GetDocument(), EditView::GetEditEngine(), EditView::GetEmptyItemSet(), EditView::GetFieldAtCursor(), SfxAbstractPasteDialog::GetFormat(), SvxHyperlinkItem::GetInsertMode(), SfxItemSet::GetItemState(), GetMyInputHdl(), SvxHyperlinkItem::GetName(), SfxAbstractDialog::GetOutputItemSet(), EditEngine::GetParagraphCount(), SfxShell::GetPool(), EditView::GetSelected(), AbstractScNamePasteDlg::GetSelectedNames(), EditView::GetSelectedScriptType(), EditView::GetSelection(), ScViewData::GetSfxDocShell(), SfxRequest::GetSlot(), ScDocument::GetStringScriptType(), ScInputHandler::GetTableView(), ScViewData::GetTabNo(), SvxURLField::GetTargetFrame(), SvxHyperlinkItem::GetTargetFrame(), EditEngine::GetText(), EditEngine::GetTextLen(), ScInputHandler::GetTopView(), TransferableDataHelper::GetTransferable(), SvxHyperlinkItem::GetURL(), SvxURLField::GetURL(), GetURLField(), CntUnencodedStringItem::GetValue(), GetValue, SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), GetWhich, EditView::GetWindow(), ScDocument::HasStringWeakCharacters(), HLINK_DEFAULT, HLINK_FIELD, SfxAbstractPasteDialog::Insert(), 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, EditEngine::QuickSetAttribs(), URLFieldHelper::RemoveURLField(), ToggleUnicodeCodepoint::ReplacementString(), ReplaceTextWithSynonym(), RET_OK, rTarget, rViewData, SC_MOD, EditView::SelectFieldAtCursor(), EditView::SetAttribs(), EditView::SetControlWord(), SfxAbstractTabDialog::SetCurPageId(), EditView::SetInsertMode(), EditView::SetSelection(), ScInputHandler::SetSelIsRef(), SvxURLField::SetTargetFrame(), EditEngine::SetText(), ToggleUnicodeCodepoint::StringToReplace(), and ScRefFinder::ToggleRel().

void ScEditShell::ExecuteAttr ( SfxRequest rReq)
void ScEditShell::ExecuteTrans ( const SfxRequest rReq)
void ScEditShell::ExecuteUndo ( const SfxRequest rReq)
void ScEditShell::GetAttrState ( SfxItemSet rSet)
void ScEditShell::GetClipState ( SfxItemSet rSet)
EditView* ScEditShell::GetEditView ( )
inline

Definition at line 68 of file editsh.hxx.

References pEditView.

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

ScInputHandler * ScEditShell::GetMyInputHdl ( )
private
OUString ScEditShell::GetSelectionText ( bool  bWholeWord)
void ScEditShell::GetState ( SfxItemSet rSet)
void ScEditShell::GetUndoState ( SfxItemSet rSet)
const SvxURLField * ScEditShell::GetURLField ( )
private
void ScEditShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 86 of file editsh.cxx.

void ScEditShell::SetEditView ( EditView pView)
bool ScEditShell::ShouldDisableEditHyperlink ( ) const

return true if "Edit Hyperlink" in context menu should be disabled

Definition at line 713 of file editsh.cxx.

References ScViewData::GetActivePart(), ScViewData::HasEditView(), URLFieldHelper::IsCursorAtURLField(), pEditView, and rViewData.

Referenced by GetState().

Member Data Documentation

bool ScEditShell::bIsInsertMode
private

Definition at line 43 of file editsh.hxx.

Referenced by Execute(), and SetEditView().

bool ScEditShell::bPastePossible
private

Definition at line 42 of file editsh.hxx.

Referenced by GetClipState().

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

Definition at line 49 of file editsh.hxx.

Referenced by EnableEditHyperlink(), and GetState().

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

Definition at line 41 of file editsh.hxx.

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

EditView* ScEditShell::pEditView
private
ScViewData& ScEditShell::rViewData
private

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