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

#include <editsh.hxx>

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

Public Member Functions

 ScEditShell (EditView *pView, ScViewData *pData)
 
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)
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
void CallExec (SfxExecFunc pFunc, SfxRequest &rReq)
 
void CallState (SfxStateFunc pFunc, SfxItemSet &rSet)
 
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::unique_ptr< 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
 
ScViewDatapViewData
 
rtl::Reference< TransferableClipboardListenermxClipEvtLstnr
 
bool bPastePossible
 
bool bIsInsertMode
 

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 37 of file editsh.hxx.

Constructor & Destructor Documentation

ScEditShell::ScEditShell ( EditView pView,
ScViewData pData 
)
ScEditShell::~ScEditShell ( )
overridevirtual

Definition at line 103 of file editsh.cxx.

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

Member Function Documentation

ScEditShell::DECL_LINK ( ClipboardChanged  ,
TransferableDataHelper ,
void   
)
private
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_ZWNBSP, CHAR_ZWSP, SvxFontItem::Clone(), EditView::Copy(), vcl::unohelper::TextDataObject::CopyStringTo(), SvxAbstractDialogFactory::Create(), ScAbstractDialogFactory::Create(), TransferableDataHelper::CreateFromSystemClipboard(), ScAbstractDialogFactory::CreateScCharDlg(), ScAbstractDialogFactory::CreateScNamePasteDlg(), 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(), vcl::Window::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(), SvxHyperlinkItem::GetTargetFrame(), SvxURLField::GetTargetFrame(), EditEngine::GetText(), EditEngine::GetTextLen(), ScInputHandler::GetTopView(), TransferableDataHelper::GetTransferable(), SvxHyperlinkItem::GetURL(), SvxURLField::GetURL(), GetURLField(), CntUnencodedStringItem::GetValue(), GetValue, SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), GetWhich, EditView::GetWindow(), vcl::Window::GrabFocus(), 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, pViewData, EditEngine::QuickSetAttribs(), URLFieldHelper::RemoveURLField(), ToggleUnicodeCodepoint::ReplacementString(), ReplaceTextWithSynonym(), RET_OK, rTarget, 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 63 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)

Member Data Documentation

bool ScEditShell::bIsInsertMode
private

Definition at line 44 of file editsh.hxx.

Referenced by Execute(), and SetEditView().

bool ScEditShell::bPastePossible
private

Definition at line 43 of file editsh.hxx.

Referenced by GetClipState().

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

Definition at line 42 of file editsh.hxx.

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

EditView* ScEditShell::pEditView
private
ScViewData* ScEditShell::pViewData
private

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