LibreOffice Module sc (master) 1
|
#include <drtxtob.hxx>
Public Member Functions | |
ScDrawTextObjectBar (ScViewData &rData) | |
virtual | ~ScDrawTextObjectBar () override |
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 | ExecuteToggle (SfxRequest &rReq) |
void | GetStatePropPanelAttr (SfxItemSet &) |
bool | ExecuteCharDlg (const SfxItemSet &rArgs, SfxItemSet &rOutSet, sal_uInt16 nSlot) |
bool | ExecuteParaDlg (const SfxItemSet &rArgs, SfxItemSet &rOutSet) |
void | ExecuteExtra (SfxRequest &rReq) |
void | ExecFormText (const SfxRequest &rReq) |
void | GetFormTextState (SfxItemSet &rSet) |
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) |
Static Public Member Functions | |
static void | StateDisableItems (SfxItemSet &rSet) |
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 &) |
Private Member Functions | |
DECL_LINK (ClipboardChanged, TransferableDataHelper *, void) | |
void | ExecuteGlobal (SfxRequest &rReq) |
void | ExecutePasteContents (SfxRequest &rReq) |
bool | IsNoteEdit () const |
Static Private Member Functions | |
static void | InitInterface_Impl () |
SfxInterface initializer. More... | |
static void | GetGlobalClipState (SfxItemSet &rSet) |
Private Attributes | |
ScViewData & | mrViewData |
rtl::Reference< TransferableClipboardListener > | mxClipEvtLstnr |
bool | bPastePossible |
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 &) |
Definition at line 35 of file drtxtob.hxx.
ScDrawTextObjectBar::ScDrawTextObjectBar | ( | ScViewData & | rData | ) |
Definition at line 111 of file drtxtob.cxx.
References vcl::EnumContext::DrawText, vcl::EnumContext::GetContextName(), SdrPaintView::GetDefaultAttr(), ScViewData::GetDocument(), SfxItemSet::GetPool(), ScViewData::GetScDrawView(), ScViewData::GetSfxDocShell(), SfxShell::GetUndoManager(), ScDocument::IsUndoEnabled(), mrViewData, SfxShell::SetContextName(), SfxUndoManager::SetMaxUndoActionCount(), SfxShell::SetName(), SfxShell::SetPool(), and SfxShell::SetUndoManager().
|
overridevirtual |
Definition at line 130 of file drtxtob.cxx.
References ScViewData::GetActiveWin(), mrViewData, and mxClipEvtLstnr.
|
private |
References SFX_DECL_INTERFACE.
void ScDrawTextObjectBar::ExecFormText | ( | const SfxRequest & | rReq | ) |
Definition at line 174 of file drtxtob2.cxx.
References SfxRequest::GetArgs(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), ScTabView::GetScDrawView(), ScViewData::GetView(), SdrObjEditView::IsTextEdit(), mrViewData, rSet, ScDrawView::ScEndTextEdit(), and SdrView::SetAttributes().
void ScDrawTextObjectBar::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 144 of file drtxtob.cxx.
References ATTR_FONT(), SvxFontItem::Clone(), OutlinerView::Copy(), vcl::unohelper::TextDataObject::CopyStringTo(), OutlinerView::Cut(), EE_CHAR_FONTINFO(), EE_FEATURE_FIELD(), eMode, SfxDispatcher::Execute(), ScViewUtil::ExecuteCharMap(), ExecuteGlobal(), ExecutePasteContents(), SfxRequest::GetArg(), SfxRequest::GetArgs(), OutlinerView::GetAttribs(), vcl::Font::GetCharSet(), vcl::Window::GetClipboard(), SfxViewFrame::GetDispatcher(), ScViewData::GetDispatcher(), OutlinerView::GetEditView(), Outliner::GetEmptyItemSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), OutlinerView::GetFieldAtCursor(), SfxRequest::GetFrameWeld(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), OutlinerView::GetOutliner(), Outliner::GetParagraphCount(), vcl::Font::GetPitch(), ScViewData::GetScDrawView(), OutlinerView::GetSelection(), SfxRequest::GetSlot(), vcl::Font::GetStyleName(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), CntUnencodedStringItem::GetValue(), GetValue, SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), OutlinerView::GetWindow(), HLINK_DEFAULT, HLINK_FIELD, OutlinerView::InsertField(), OutlinerView::InsertText(), SfxShell::Invalidate(), mrViewData, nCount, ScGlobal::OpenURL(), OutlinerView::Paste(), OutlinerView::PasteSpecial(), SfxItemSet::Put(), Outliner::QuickSetAttribs(), URLFieldHelper::RemoveURLField(), ReplaceTextWithSynonym(), rTarget, ScDrawView::ScEndTextEdit(), OutlinerView::SelectFieldAtCursor(), OutlinerView::SetSelection(), SvxURLField::SetTargetFrame(), and OutlinerView::StartThesaurus().
void ScDrawTextObjectBar::ExecuteAttr | ( | SfxRequest & | rReq | ) |
Definition at line 659 of file drtxtob.cxx.
References SdrTextObj::AdjustTextFrameWidthAndHeight(), EditView::ChangeFontSize(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateTextTabDialog(), SfxObjectShell::Current(), VclPtr< class reference_type >::disposeAndClear(), 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(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), ExecuteCharDlg(), ExecuteParaDlg(), SfxItemSet::Get(), SfxRequest::GetArgs(), SdrEditView::GetAttrFromMarked(), SdrView::GetAttributes(), ScViewData::GetBindings(), ScViewData::GetDialogParent(), OutlinerView::GetEditView(), SvxFontListItem::GetFontList(), SdrModel::GetItemPool(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SdrPaintView::GetModel(), SfxShell::GetPool(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), SvxLRSpaceItem::GetRight(), ScViewData::GetScDrawView(), SdrObjEditView::GetScriptType(), SfxRequest::GetSlot(), SdrObjEditView::GetTextEditObject(), SdrObjEditView::GetTextEditOutlinerView(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxULSpaceItem::GetUpper(), GetWhich, SfxItemPool::GetWhich(), SfxBindings::Invalidate(), ScDrawView::InvalidateDrawTextAttrs(), IsNoteEdit(), SdrObjEditView::IsTextEdit(), lcl_RemoveFields(), LINE_SPACE_DEFAULT_HEIGHT, mrViewData, nId, OutlinerView::Paint(), SfxItemSet::Put(), SvxScriptSetItem::PutItemForScriptType(), RET_OK, SDRATTR_TEXT_MAXFRAMEHEIGHT(), SDRATTR_TEXT_MAXFRAMEWIDTH(), SDRATTR_TEXT_MINFRAMEHEIGHT(), SDRTEXTVERTADJUST_BOTTOM, SDRTEXTVERTADJUST_CENTER, SDRTEXTVERTADJUST_TOP, SdrView::SetAttributes(), SvxEscapementItem::SetEscapement(), SvxULSpaceItem::SetLower(), SvxLineSpacingItem::SetPropLineSpace(), SvxULSpaceItem::SetUpper(), and OutlinerView::ShowCursor().
bool ScDrawTextObjectBar::ExecuteCharDlg | ( | const SfxItemSet & | rArgs, |
SfxItemSet & | rOutSet, | ||
sal_uInt16 | nSlot | ||
) |
Definition at line 40 of file drtxtob1.cxx.
References ScAbstractDialogFactory::Create(), ScAbstractDialogFactory::CreateScCharDlg(), ScViewData::GetDialogParent(), ScViewData::GetSfxDocShell(), mrViewData, SfxItemSet::Put(), and RET_OK.
Referenced by ExecuteAttr().
void ScDrawTextObjectBar::ExecuteExtra | ( | SfxRequest & | rReq | ) |
Done(aAttr) ?
Definition at line 127 of file drtxtob2.cxx.
References SfxRequest::Done(), EE_PARA_JUST(), EE_PARA_WRITINGDIR(), SfxItemSet::Get(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), ScTabView::GetScDrawView(), ScViewData::GetScDrawView(), SfxRequest::GetSlot(), GetValue, ScViewData::GetView(), SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), SfxBindings::Invalidate(), ScDrawView::InvalidateDrawTextAttrs(), mrViewData, nId, SdrView::SetAttributes(), SfxViewFrame::SetChildWindow(), and SfxViewFrame::ToggleChildWindow().
|
private |
move paste etc. to view shell?
Definition at line 49 of file drtxtob2.cxx.
References ScDrawView::DoCopy(), ScDrawView::DoCut(), SfxRequest::Done(), EE_PARA_HYPHENATE(), SfxRequest::GetArg(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), SfxShell::GetPool(), ScTabView::GetScDrawView(), ScViewData::GetScDrawView(), SfxRequest::GetSlot(), SfxBoolItem::GetValue(), ScViewData::GetView(), ScViewData::GetViewShell(), ScDrawView::InvalidateDrawTextAttrs(), SdrView::MarkAll(), mrViewData, SfxItemSet::Put(), SDRATTR_TEXTDIRECTION(), SdrView::SetAttributes(), and ScTabViewShell::UpdateDrawShell().
Referenced by Execute().
bool ScDrawTextObjectBar::ExecuteParaDlg | ( | const SfxItemSet & | rArgs, |
SfxItemSet & | rOutSet | ||
) |
Definition at line 63 of file drtxtob1.cxx.
References ScAbstractDialogFactory::Create(), ScAbstractDialogFactory::CreateScParagraphDlg(), EE_ITEMS_END(), EE_ITEMS_START(), ScViewData::GetDialogParent(), SfxItemSet::GetPool(), mrViewData, SfxItemSet::Put(), and RET_OK.
Referenced by ExecuteAttr().
|
private |
test if outliner view is still valid
Definition at line 98 of file drtxtob1.cxx.
References SvxAbstractDialogFactory::Create(), TransferableDataHelper::CreateFromSystemClipboard(), ScViewData::GetActiveWin(), ScViewData::GetDialogParent(), ScViewData::GetScDrawView(), SdrObjEditView::GetTextEditOutlinerView(), TransferableDataHelper::GetTransferable(), mrViewData, OutlinerView::Paste(), and OutlinerView::PasteSpecial().
Referenced by Execute().
void ScDrawTextObjectBar::ExecuteToggle | ( | SfxRequest & | rReq | ) |
Definition at line 543 of file drtxtob.cxx.
References SfxRequest::Done(), EE_CHAR_UNDERLINE(), SfxItemSet::Get(), SdrView::GetAttributes(), SdrPaintView::GetDefaultAttr(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), ScViewData::GetScDrawView(), SfxRequest::GetSlot(), ScDrawView::InvalidateDrawTextAttrs(), LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, mrViewData, SfxItemSet::Put(), and SdrView::SetAttributes().
void ScDrawTextObjectBar::ExecuteTrans | ( | const SfxRequest & | rReq | ) |
apply to whole objects?
Definition at line 1179 of file drtxtob.cxx.
References ScViewData::GetScDrawView(), SfxRequest::GetSlot(), SdrObjEditView::GetTextEditOutlinerView(), ScViewUtil::GetTransliterationType(), mrViewData, nType, and OutlinerView::TransliterateText().
void ScDrawTextObjectBar::GetAttrState | ( | SfxItemSet & | rSet | ) |
Definition at line 971 of file drtxtob.cxx.
References SfxItemSet::DisableItem(), EE_CHAR_ESCAPEMENT(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTINFO(), EE_CHAR_ITALIC(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_PARA_JUST(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), EE_PARA_WRITINGDIR(), SfxItemSet::Get(), ScViewData::GetActiveWin(), SdrView::GetAttributes(), ScViewData::GetDocument(), ScDocument::GetEditTextDirection(), vcl::Window::GetInputLanguage(), SdrModel::GetItemPool(), SfxItemSet::GetItemState(), SvxULSpaceItem::GetLower(), SdrPaintView::GetModel(), ScViewData::GetScDrawView(), SdrObjEditView::GetScriptType(), SvtLanguageOptions::GetScriptTypeOfLanguage(), OutlinerView::GetSelection(), ScViewData::GetTabNo(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), SvxULSpaceItem::GetUpper(), ESelection::HasRange(), SfxShell::Invalidate(), SfxItemSet::InvalidateItem(), SvtCTLOptions::IsCTLFontEnabled(), IsNoteEdit(), SvtCJKOptions::IsVerticalTextEnabled(), LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, mrViewData, SfxItemSet::Put(), ScViewUtil::PutItemScript(), and SDRATTR_TEXTDIRECTION().
void ScDrawTextObjectBar::GetClipState | ( | SfxItemSet & | rSet | ) |
Definition at line 483 of file drtxtob.cxx.
References SvxClipboardFormatItem::AddClipbrdFormat(), bPastePossible, TransferableDataHelper::CreateFromSystemClipboard(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), ScViewData::GetActiveWin(), GetGlobalClipState(), ScViewData::GetScDrawView(), SdrObjEditView::GetTextEditOutlinerView(), TransferableDataHelper::HasFormat(), LINK, mrViewData, mxClipEvtLstnr, SfxWhichIter::NextWhich(), SfxItemSet::Put(), and rSet.
void ScDrawTextObjectBar::GetFormTextState | ( | SfxItemSet & | rSet | ) |
Definition at line 191 of file drtxtob2.cxx.
References SfxItemSet::DisableItem(), DynCastSdrTextObj(), SdrView::GetAttributes(), SdrModel::GetItemPool(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrPaintView::GetModel(), ScTabView::GetScDrawView(), ScViewData::GetView(), SdrTextObj::HasText(), mrViewData, rSet, SfxItemSet::Set(), XATTR_FORMTXTADJUST(), XATTR_FORMTXTDISTANCE(), XATTR_FORMTXTHIDEFORM(), XATTR_FORMTXTMIRROR(), XATTR_FORMTXTOUTLINE(), XATTR_FORMTXTSHADOW(), XATTR_FORMTXTSHDWCOLOR(), XATTR_FORMTXTSHDWXVAL(), XATTR_FORMTXTSHDWYVAL(), XATTR_FORMTXTSTART(), and XATTR_FORMTXTSTYLE().
|
staticprivate |
move paste etc. to view shell?
Definition at line 112 of file drtxtob2.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxWhichIter::NextWhich(), and rSet.
Referenced by GetClipState().
void ScDrawTextObjectBar::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 358 of file drtxtob.cxx.
References SfxItemSet::DisableItem(), EE_PARA_HYPHENATE(), SfxItemSet::Get(), SdrView::GetAttributes(), SfxViewFrame::GetBindings(), OutlinerView::GetEditView(), OutlinerView::GetFieldAtCursor(), SdrModel::GetItemPool(), SfxItemSet::GetItemState(), SdrPaintView::GetModel(), SfxShell::GetObjectShell(), ScViewData::GetScDrawView(), OutlinerView::GetSelected(), GetStatusValueForThesaurusFromContext(), SdrObjEditView::GetTextEditOutlinerView(), SfxViewShell::GetViewFrame(), ScViewData::GetViewShell(), SfxViewFrame::HasChildWindow(), ScModule::HasThesaurusLanguage(), ScViewUtil::HideDisabledSlot(), URLFieldHelper::IsCursorAtURLField(), IsNoteEdit(), LANGUAGE_NONE, mrViewData, SfxItemSet::Put(), rSet, SvxHyperlinkItem::SetName(), SvxHyperlinkItem::SetTargetFrame(), SvxHyperlinkItem::SetURL(), and comphelper::string::stripEnd().
void ScDrawTextObjectBar::GetStatePropPanelAttr | ( | SfxItemSet & | rSet | ) |
Definition at line 1198 of file drtxtob.cxx.
References SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SdrView::GetAttributes(), SdrModel::GetItemPool(), SfxItemSet::GetItemState(), SdrPaintView::GetModel(), SfxShell::GetPool(), ScViewData::GetScDrawView(), SfxItemPool::GetSlotId(), SfxItemPool::IsWhich(), mrViewData, SfxWhichIter::NextWhich(), SfxItemSet::Put(), rSet, SDRATTR_TEXT_CONTOURFRAME(), SDRATTR_TEXT_VERTADJUST(), SDRTEXTVERTADJUST_BOTTOM, SDRTEXTVERTADJUST_CENTER, and SDRTEXTVERTADJUST_TOP.
|
staticprivate |
SfxInterface initializer.
Definition at line 85 of file drtxtob.cxx.
References ScGetFontWorkId(), and SFX_OBJECTBAR_OBJECT.
|
private |
Definition at line 42 of file drtxtob2.cxx.
References ScTabView::GetScDrawView(), SdrObjEditView::GetTextEditObject(), ScViewData::GetView(), ScDrawLayer::IsNoteCaption(), and mrViewData.
Referenced by ExecuteAttr(), GetAttrState(), and GetState().
|
static |
Definition at line 99 of file drtxtob.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxWhichIter::NextWhich(), and rSet.
|
private |
Definition at line 39 of file drtxtob.hxx.
Referenced by GetClipState().
|
private |
Definition at line 37 of file drtxtob.hxx.
Referenced by ExecFormText(), Execute(), ExecuteAttr(), ExecuteCharDlg(), ExecuteExtra(), ExecuteGlobal(), ExecuteParaDlg(), ExecutePasteContents(), ExecuteToggle(), ExecuteTrans(), GetAttrState(), GetClipState(), GetFormTextState(), GetState(), GetStatePropPanelAttr(), IsNoteEdit(), ScDrawTextObjectBar(), and ~ScDrawTextObjectBar().
|
private |
Definition at line 38 of file drtxtob.hxx.
Referenced by GetClipState(), and ~ScDrawTextObjectBar().