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

SfxShell subclass that is used while interacting with the editeng-based text of a shape. More...

#include <drwtxtsh.hxx>

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

Public Member Functions

SwViewGetView ()
 
SwWrtShellGetShell ()
 
 SwDrawTextShell (SwView &rView)
 
virtual ~SwDrawTextShell () override
 
virtual SfxUndoManagerGetUndoManager () override
 
void Execute (SfxRequest &)
 
void ExecDraw (SfxRequest &)
 
void GetStatePropPanelAttr (SfxItemSet &)
 
void GetState (SfxItemSet &)
 
void GetDrawTextCtrlState (SfxItemSet &)
 
void ExecFontWork (SfxRequest const &rReq)
 
void StateFontWork (SfxItemSet &rSet)
 
void ExecFormText (SfxRequest const &rReq)
 
void GetFormTextState (SfxItemSet &rSet)
 
void ExecDrawLingu (SfxRequest const &rReq)
 
void ExecUndo (SfxRequest &rReq)
 
void StateUndo (SfxItemSet &rSet)
 
void ExecClpbrd (SfxRequest const &rReq)
 
void StateClpbrd (SfxItemSet &rSet)
 
void StateInsert (SfxItemSet &rSet)
 
void ExecTransliteration (SfxRequest const &)
 
void ExecRotateTransliteration (SfxRequest const &)
 
void Init ()
 
- 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)
 

Static Public Member Functions

static void StateDisableItems (SfxItemSet &)
 
- 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 &)
 

Private Member Functions

void SetAttrToMarked (const SfxItemSet &rAttr)
 
void InsertSymbol (SfxRequest &rReq)
 
bool IsTextEdit () const
 

Static Private Member Functions

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

Private Attributes

SwViewm_rView
 
RotateTransliteration m_aRotateCase
 
SdrViewm_pSdrView
 

Additional Inherited Members

- 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

SfxShell subclass that is used while interacting with the editeng-based text of a shape.

Definition at line 31 of file drwtxtsh.hxx.

Constructor & Destructor Documentation

◆ SwDrawTextShell()

SwDrawTextShell::SwDrawTextShell ( SwView rView)

◆ ~SwDrawTextShell()

SwDrawTextShell::~SwDrawTextShell ( )
overridevirtual

Definition at line 132 of file drwtxtsh.cxx.

References GetView(), m_rView, and SwView::ResetSubShell().

Member Function Documentation

◆ ExecClpbrd()

void SwDrawTextShell::ExecClpbrd ( SfxRequest const &  rReq)

◆ ExecDraw()

void SwDrawTextShell::ExecDraw ( SfxRequest rReq)

◆ ExecDrawLingu()

void SwDrawTextShell::ExecDrawLingu ( SfxRequest const &  rReq)

◆ ExecFontWork()

void SwDrawTextShell::ExecFontWork ( SfxRequest const &  rReq)

◆ ExecFormText()

void SwDrawTextShell::ExecFormText ( SfxRequest const &  rReq)

◆ ExecRotateTransliteration()

void SwDrawTextShell::ExecRotateTransliteration ( SfxRequest const &  rReq)

◆ ExecTransliteration()

void SwDrawTextShell::ExecTransliteration ( SfxRequest const &  rReq)

◆ ExecUndo()

void SwDrawTextShell::ExecUndo ( SfxRequest rReq)

◆ Execute()

void SwDrawTextShell::Execute ( SfxRequest rReq)

! JP 16.03.2001: why?? pSdrView = rSh.GetDrawView(); ! JP 16.03.2001: why?? pOutliner = pSdrView->GetTextEditOutliner();

Definition at line 85 of file drwtxtex.cxx.

References SwView::BeginTextEdit(), EditView::ChangeFontSize(), SfxItemSet::Clone(), vcl::unohelper::TextDataObject::CopyStringTo(), SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateSwCharDlg(), SwAbstractDialogFactory::CreateSwParaDlg(), SfxObjectShell::Current(), SfxRequest::Done(), Draw, 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(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), SfxShell::ExecuteSlot(), FN_FORMAT_FOOTNOTE_DLG, FN_GROW_FONT_SIZE, FN_NUMBERING_OUTLINE_DLG, FN_SET_SUB_SCRIPT, FN_SET_SUPER_SCRIPT, FN_SHRINK_FONT_SIZE, FN_WORDCOUNT_DIALOG, Get(), SfxItemSet::Get(), SfxRequest::GetArg(), SfxRequest::GetArgs(), OutlinerView::GetAttribs(), SfxViewFrame::GetBindings(), vcl::Window::GetClipboard(), GetDfltMetric(), SfxViewFrame::GetDispatcher(), OutlinerView::GetEditView(), SwView::GetEditWin(), SvxFieldItem::GetField(), OutlinerView::GetFieldAtCursor(), OutlinerView::GetFieldAtSelection(), SvxFontListItem::GetFontList(), SfxViewShell::GetFrameWeld(), GetFrameWeld(), SfxShell::GetItem(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SvxTextLineItem::GetLineStyle(), SvxULSpaceItem::GetLower(), SdrMarkList::GetMark(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SvxHyperlinkItem::GetName(), OutlinerView::GetOutliner(), SfxShell::GetPool(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), SvxLRSpaceItem::GetRight(), SdrPaintView::GetSdrPageView(), SfxItemPool::GetSecondaryPool(), OutlinerView::GetSelectedScriptType(), EditView::GetSelection(), OutlinerView::GetSelection(), GetShell(), SfxRequest::GetSlot(), SvxHyperlinkItem::GetTargetFrame(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextLeft(), SvxULSpaceItem::GetUpper(), SvxHyperlinkItem::GetURL(), CntUnencodedStringItem::GetValue(), GetValue, GetView(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), GetWhich, SfxItemPool::GetWhich(), SfxShell::HandleOpenXmlFilterSettings(), EditView::HasSelection(), OutlinerView::InsertField(), SfxBindings::InvalidateAll(), Outliner::IsModified(), IsTextEdit(), LINE_SPACE_DEFAULT_HEIGHT, LINESTYLE_NONE, LINESTYLE_SINGLE, m_pSdrView, m_rView, nAdjust, ESelection::nEndPos, nFirstLineOffset, SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), URLFieldHelper::RemoveURLField(), ReplaceTextWithSynonym(), RES_BREAK(), RES_CHRATR_KERNING(), RES_PARATR_HYPHENZONE(), RES_PARATR_ORPHANS(), RES_PARATR_SPLIT(), RES_PARATR_WIDOWS(), RET_OK, SDRATTR_TEXTDIRECTION(), SdrObjEditView::SdrEndTextEdit(), EditView::SelectCurrentWord(), OutlinerView::SelectFieldAtCursor(), SwLangHelper::SelectPara(), SdrView::SetAttributes(), SetAttrToMarked(), SvxEscapementItem::SetEscapement(), SwLangHelper::SetLanguageStatus(), SvxULSpaceItem::SetLower(), SwEditShell::SetModified(), SvxLineSpacingItem::SetPropLineSpace(), SvxLRSpaceItem::SetRight(), OutlinerView::SetSelection(), EditView::SetSelection(), SvxURLField::SetTargetFrame(), SvxLRSpaceItem::SetTextFirstLineOffset(), SvxLRSpaceItem::SetTextLeft(), SvxULSpaceItem::SetUpper(), SW_MOD, and SwView::UpdateWordCount().

◆ GetDrawTextCtrlState()

void SwDrawTextShell::GetDrawTextCtrlState ( SfxItemSet rSet)

◆ GetFormTextState()

void SwDrawTextShell::GetFormTextState ( SfxItemSet rSet)

◆ GetShell()

SwWrtShell & SwDrawTextShell::GetShell ( )

◆ GetState()

void SwDrawTextShell::GetState ( SfxItemSet rSet)

avoid putting the same item as SfxBoolItem at the end of this function

Definition at line 631 of file drwtxtex.cxx.

References LanguageTag::convertToLocale(), SfxItemSet::DisableItem(), EE_CHAR_ESCAPEMENT(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), EE_PARA_WRITINGDIR(), eMode, SfxWhichIter::FirstWhich(), FN_SET_SUB_SCRIPT, FN_SET_SUPER_SCRIPT, SfxItemSet::Get(), SvxAdjustItem::GetAdjust(), GetAppLanguage(), OutlinerView::GetAttribs(), SfxViewFrame::GetBindings(), SwDoc::GetDefault(), SwViewShell::GetDoc(), OutlinerView::GetEditView(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwLangHelper::GetLanguage(), SwLangHelper::GetLanguageStatus(), SvxULSpaceItem::GetLower(), SfxShell::GetPool(), SvxLineSpacingItem::GetPropLineSpace(), GetShell(), SfxItemPool::GetSlotId(), GetStatusValueForThesaurusFromContext(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), GetThesaurus(), SvxULSpaceItem::GetUpper(), GetView(), SfxViewShell::GetViewFrame(), GetWhichOfScript(), SfxItemSet::InvalidateItem(), SvtCJKOptions::IsAnyEnabled(), SvtCJKOptions::IsChangeCaseMapEnabled(), SvtCTLOptions::IsCTLFontEnabled(), URLFieldHelper::IsCursorAtURLField(), IsInvalidItem(), IsTextEdit(), SvtCJKOptions::IsVerticalTextEnabled(), LANGUAGE_NONE, m_pSdrView, SfxWhichIter::NextWhich(), nLang, SfxItemSet::Put(), RES_CHRATR_LANGUAGE(), rSet, SDRATTR_TEXTDIRECTION(), and SfxBindings::SetVisibleState().

◆ GetStatePropPanelAttr()

void SwDrawTextShell::GetStatePropPanelAttr ( SfxItemSet rSet)

◆ GetUndoManager()

SfxUndoManager * SwDrawTextShell::GetUndoManager ( )
overridevirtual

Reimplemented from SfxShell.

Definition at line 789 of file drwtxtsh.cxx.

References SwViewShell::GetDrawView(), GetShell(), SdrObjEditView::GetTextEditOutliner(), and m_pSdrView.

Referenced by ExecUndo(), and StateUndo().

◆ GetView()

SwView & SwDrawTextShell::GetView ( )
inline

◆ Init()

void SwDrawTextShell::Init ( void  )

◆ InitInterface_Impl()

void SwDrawTextShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 80 of file drwtxtsh.cxx.

References SFX_OBJECTBAR_OBJECT.

◆ InsertSymbol()

void SwDrawTextShell::InsertSymbol ( SfxRequest rReq)
private

◆ IsTextEdit()

bool SwDrawTextShell::IsTextEdit ( ) const
private

◆ SetAttrToMarked()

void SwDrawTextShell::SetAttrToMarked ( const SfxItemSet rAttr)
private

◆ StateClpbrd()

void SwDrawTextShell::StateClpbrd ( SfxItemSet rSet)

◆ StateDisableItems()

void SwDrawTextShell::StateDisableItems ( SfxItemSet rSet)
static

◆ StateFontWork()

void SwDrawTextShell::StateFontWork ( SfxItemSet rSet)

Definition at line 191 of file drwtxtsh.cxx.

References GetView(), nId, SfxItemSet::Put(), and rSet.

◆ StateInsert()

void SwDrawTextShell::StateInsert ( SfxItemSet rSet)

◆ StateUndo()

void SwDrawTextShell::StateUndo ( SfxItemSet rSet)

Member Data Documentation

◆ m_aRotateCase

RotateTransliteration SwDrawTextShell::m_aRotateCase
private

Definition at line 34 of file drwtxtsh.hxx.

Referenced by ExecRotateTransliteration().

◆ m_pSdrView

SdrView* SwDrawTextShell::m_pSdrView
private

◆ m_rView

SwView& SwDrawTextShell::m_rView
private

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