LibreOffice Module sw (master) 1
|
#include <frmsh.hxx>
Public Member Functions | |
SwFrameShell (SwView &rView) | |
virtual | ~SwFrameShell () override |
void | Execute (SfxRequest &) |
void | ExecMove (SfxRequest &rReq) |
void | ExecField (const SfxRequest &rReq) |
void | GetState (SfxItemSet &) |
void | ExecFrameStyle (SfxRequest const &rReq) |
void | GetLineStyleState (SfxItemSet &rSet) |
void | StateInsert (SfxItemSet &rSet) |
void | GetDrawAttrStateTextFrame (SfxItemSet &rSet) |
void | ExecDrawAttrArgsTextFrame (SfxRequest const &rReq) |
void | ExecDrawDlgTextFrame (SfxRequest const &rReq) |
void | DisableStateTextFrame (SfxItemSet &rSet) |
Public Member Functions inherited from SwBaseShell | |
SwBaseShell (SwView &rShell) | |
virtual | ~SwBaseShell () override |
void | ExecDelete (SfxRequest &) |
void | ExecClpbrd (SfxRequest &) |
void | StateClpbrd (SfxItemSet &) |
void | ExecUndo (SfxRequest &) |
void | StateUndo (SfxItemSet &) |
void | Execute (SfxRequest &) |
void | GetState (SfxItemSet &) |
void | StateStyle (SfxItemSet &) |
void | ExecuteGallery (SfxRequest &) |
void | GetGalleryState (SfxItemSet &) |
void | ExecDlg (SfxRequest &) |
void | ExecTextCtrl (SfxRequest &rReq) |
void | GetTextFontCtrlState (SfxItemSet &rSet) |
void | GetTextCtrlState (SfxItemSet &rSet) |
void | GetBorderState (SfxItemSet &rSet) |
void | GetBckColState (SfxItemSet &rSet) |
void | ExecBckCol (SfxRequest &rReq) |
void | SetWrapMode (sal_uInt16 nSlot) |
void | EditRegionDialog (SfxRequest const &rReq) |
void | InsertRegionDialog (SfxRequest &rReq) |
void | ExecField (SfxRequest const &rReq) |
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 Private Member Functions | |
static void | InitInterface_Impl () |
SfxInterface initializer. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SwBaseShell | |
static void | StateDisableItems (SfxItemSet &) |
static void | SetFrameMode (FlyMode eMode, SwWrtShell *pShell) |
static void | SetFrameMode_ (FlyMode eMode) |
static FlyMode | GetFrameMode () |
static std::shared_ptr< std::vector< std::unique_ptr< SwPaM > > > | CopyPaMRing (SwPaM &rOrig) |
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 &) |
Protected Member Functions inherited from SwBaseShell | |
SwWrtShell & | GetShell () |
SwWrtShell * | GetShellPtr () |
SwView & | GetView () |
void | SetGetStateSet (SfxItemSet *p) |
bool | AddGrfUpdateSlot (sal_uInt16 nSlot) |
DECL_DLLPRIVATE_LINK (InsertDBTextHdl, void *, void) | |
void | InsertURLButton (const OUString &rURL, const OUString &rTarget, const OUString &rText) |
void | InsertTable (SfxRequest &_rRequest) |
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 &) |
SwFrameShell::SwFrameShell | ( | SwView & | rView | ) |
Definition at line 1062 of file frmsh.cxx.
References SwTransferable::CreateSelection(), vcl::EnumContext::Frame, vcl::EnumContext::GetContextName(), SwView::GetWrtShell(), SfxShell::SetContextName(), and SfxShell::SetName().
|
overridevirtual |
Definition at line 1073 of file frmsh.cxx.
References SwTransferable::ClearSelection(), and SwBaseShell::GetShell().
void SwFrameShell::DisableStateTextFrame | ( | SfxItemSet & | rSet | ) |
Definition at line 1426 of file frmsh.cxx.
References SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SwBaseShell::GetShell(), SwFEShell::IsFrameSelected(), SfxWhichIter::NextWhich(), and rSet.
void SwFrameShell::ExecDrawAttrArgsTextFrame | ( | SfxRequest const & | rReq | ) |
Definition at line 1328 of file frmsh.cxx.
References SfxDispatcher::Execute(), SfxRequest::GetArgs(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDrawViewWithValidMarkList(), SwBaseShell::GetShell(), SfxRequest::GetSlot(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwFEShell::IsFrameSelected(), SdrPaintView::SetDefaultAttr(), and SwFEShell::SetFlyFrameAttr().
void SwFrameShell::ExecDrawDlgTextFrame | ( | SfxRequest const & | rReq | ) |
Definition at line 1370 of file frmsh.cxx.
References SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxAreaTabDialog(), SfxViewFrame::GetBindings(), SwViewShell::GetDrawView(), SwFEShell::GetFlyFrameAttr(), GetFrameWeld(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), SwBaseShell::GetShell(), SfxRequest::GetSlot(), SwBaseShell::GetView(), SfxViewShell::GetViewFrame(), SfxBindings::Invalidate(), SwFEShell::IsFrameSelected(), RET_OK, SwFEShell::SetFlyFrameAttr(), and SfxBindings::Update().
void SwFrameShell::ExecField | ( | const SfxRequest & | rReq | ) |
Definition at line 118 of file frmsh.cxx.
References FN_POSTIT, SwBaseShell::GetShell(), SfxRequest::GetSlot(), and SwWrtShell::InsertPostIt().
void SwFrameShell::ExecFrameStyle | ( | SfxRequest const & | rReq | ) |
Definition at line 1079 of file frmsh.cxx.
References SwWrtShell::AutoUpdateFrame(), SvxBoxItem::Clone(), SfxItemSet::Get(), SfxRequest::GetArgs(), SwViewShell::GetAttrPool(), GetDfltAttr(), SwFEShell::GetFlyFrameAttr(), SfxItemSet::GetItemIfSet(), SwFEShell::GetSelectedFrameFormat(), SwBaseShell::GetShell(), SfxRequest::GetSlot(), SvxBoxItem::GetSmallestDistance(), SvxBorderLineWidth::Hairline, SwFormat::IsAutoUpdateOnDirectFormat(), SwFEShell::IsFrameSelected(), StarBASIC::IsRunning(), lcl_FrameGetMaxLineWidth(), MIN_BORDER_DIST, SfxItemSet::Put(), rBoxItem, RES_BOX(), and SwFEShell::SetFlyFrameAttr().
void SwFrameShell::ExecMove | ( | SfxRequest & | rReq | ) |
Definition at line 105 of file frmsh.cxx.
References SfxRequest::Done(), SwBaseShell::GetShell(), SfxRequest::GetSlot(), and SwWrtShell::SelAll().
void SwFrameShell::Execute | ( | SfxRequest & | rReq | ) |
Definition at line 131 of file frmsh.cxx.
References aName, aURL, SwWrtShell::AutoUpdateFrame(), SwCursorShell::CallChgLnk(), SwFEShell::Chain(), SvxAbstractDialogFactory::Create(), SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateFrameTabDialog(), SvxAbstractDialogFactory::CreateSvxObjectNameDialog(), SvxAbstractDialogFactory::CreateSvxObjectTitleDescDialog(), SfxRequest::Done(), SwEditShell::EndAllAction(), SwWrtShell::EnterStdMode(), SwView::ExecFormatFootnote(), SwView::ExecNumberingOutline(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), SwEditShell::FindFlyByName(), FlyEmbedded, FN_DRAW_WRAP_DLG, FN_FORMAT_FOOTNOTE_DLG, FN_FORMAT_FRAME_DLG, FN_FORMAT_GRAFIC_DLG, FN_FRAME_ALIGN_HORZ_CENTER, FN_FRAME_ALIGN_HORZ_LEFT, FN_FRAME_ALIGN_HORZ_RIGHT, FN_FRAME_ALIGN_VERT_BOTTOM, FN_FRAME_ALIGN_VERT_CENTER, FN_FRAME_ALIGN_VERT_CHAR_BOTTOM, FN_FRAME_ALIGN_VERT_CHAR_CENTER, FN_FRAME_ALIGN_VERT_CHAR_TOP, FN_FRAME_ALIGN_VERT_ROW_BOTTOM, FN_FRAME_ALIGN_VERT_ROW_CENTER, FN_FRAME_ALIGN_VERT_ROW_TOP, FN_FRAME_ALIGN_VERT_TOP, FN_FRAME_CHAIN, FN_FRAME_DOWN, FN_FRAME_MIRROR_ON_EVEN_PAGES, FN_FRAME_TO_ANCHOR, FN_FRAME_UNCHAIN, FN_FRAME_UP, FN_GET_PRINT_AREA, FN_INSERT_FRAME, FN_KEEP_ASPECT_RATIO, FN_MATH_BASELINE_ALIGNMENT, FN_NAME_SHAPE, FN_NUMBERING_OUTLINE_DLG, FN_OLE_IS_MATH, FN_PARAM_CHAIN_NEXT, FN_PARAM_CHAIN_PREVIOUS, FN_SET_FRM_ALT_NAME, FN_SET_FRM_NAME, FN_SET_FRM_POSITION, FN_SURROUND, FN_TITLE_DESCRIPTION_SHAPE, FN_UNO_DESCRIPTION, FN_WORDCOUNT_DIALOG, IDocumentSettingAccess::get(), SfxItemSet::Get(), SwFEShell::GetAnyCurRect(), SfxRequest::GetArgs(), SwViewShell::GetAttrPool(), SwFlyFrameAttrMgr::GetAttrSet(), SfxViewFrame::GetBindings(), SwFormat::GetChain(), SwEditShell::GetCurAttr(), GetDfltMetric(), SfxViewFrame::GetDispatcher(), SwDocShell::GetDoc(), SwViewShell::GetDoc(), SwView::GetDocShell(), IDocumentDrawModelAccess::GetDrawModel(), SwViewShell::GetDrawViewWithValidMarkList(), SwView::GetEditWin(), SwFEShell::GetFlyFrameAttr(), SwFEShell::GetFlyFrameFormat(), SwFEShell::GetFlyName(), SfxShell::GetFrame(), GetFrameWeld(), SwFormatCol::GetGutterWidth(), SwFormatFrameSize::GetHeightPercent(), SwFlyFrameAttrMgr::GetHoriOrient(), GetHtmlMode(), SwDoc::getIDocumentDrawModelAccess(), SwDoc::getIDocumentSettingAccess(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SdrMarkView::GetMarkedObjectCount(), SvxHyperlinkItem::GetName(), SwFormat::GetName(), SwFormatChain::GetNext(), SwFEShell::GetObjDescription(), SwFEShell::GetObjTitle(), SwFEShell::GetOleRef(), SfxItemSet::GetParent(), SfxShell::GetPool(), SwFlyFrameAttrMgr::GetPos(), SwFormatChain::GetPrev(), SwFEShell::GetSelectedFrameFormat(), SwWrtShell::GetSelectionType(), SwBaseShell::GetShell(), SwFlyFrameAttrMgr::GetSize(), SfxRequest::GetSlot(), SvxHyperlinkItem::GetTargetFrame(), SwRotationGrf::GetUnrotatedSize(), SvxHyperlinkItem::GetURL(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), SfxPointItem::GetValue(), SwRotationGrf::GetValue(), SwBaseShell::GetView(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwViewShell::GetViewOptions(), GetWhich, SwFormatFrameSize::GetWidthPercent(), SwFormatCol::GetWishWidth(), SwCursorShell::GotoFlyAnchor(), Graphic, SfxShell::HandleOpenXmlFilterSettings(), SfxItemSet::HasItem(), SwRect::Height(), SwFEShell::HideChainMarker(), i, SwFormatCol::Init(), SfxBindings::Invalidate(), SwFormat::IsAutoUpdateOnDirectFormat(), SwEditWin::IsChainMode(), SwFEShell::IsFrameSelected(), SwViewOption::IsKeepRatio(), SotExchange::IsMath(), SwFEShell::IsObjDecorative(), SwFormatHoriOrient::IsPosToggle(), lcl_GetFrameFormatByName(), MATH_BASELINE_ALIGNMENT, NONE, Ole, Page, PagePrt, SfxItemSet::Put(), SwDrawModel::PutAreaListItems(), RES_ANCHOR(), RES_COL(), RES_FRM_SIZE(), RES_FRMATR_BEGIN(), RES_FRMATR_END(), RES_GRFATR_ROTATION(), RES_SURROUND(), RES_URL(), RET_OK, rTarget, SAL_WARN_IF, SwFEShell::SelectionToBottom(), SwFEShell::SelectionToTop(), SwFlyFrameAttrMgr::SetAbsPos(), SwFlyFrameAttrMgr::SetAttrSet(), SwFEShell::SetChainMarker(), SwEditWin::SetChainMode(), SwFEShell::SetFlyFrameAttr(), SwFEShell::SetFlyName(), SvxSizeItem::SetHeight(), Size::setHeight(), SwFlyFrameAttrMgr::SetHorzOrientation(), SwViewOption::SetKeepRatio(), SwEditShell::SetModified(), SwFEShell::SetObjDecorative(), SwFEShell::SetObjDescription(), SwFEShell::SetObjTitle(), SwFormatHoriOrient::SetPosToggle(), SfxRequest::SetReturnValue(), SwFlyFrameAttrMgr::SetRotation(), SwFlyFrameAttrMgr::SetSize(), SwFlyFrameAttrMgr::SetVertOrientation(), SvxSizeItem::SetWidth(), Size::setWidth(), Point::setX(), Point::setY(), sName, SwEditShell::StartAllAction(), SW_MOD, SwFormatFrameSize::SYNCED, SwFEShell::Unchain(), SwFlyFrameAttrMgr::UpdateFlyFrame(), SwView::UpdateWordCount(), Variable, SwRect::Width(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
void SwFrameShell::GetDrawAttrStateTextFrame | ( | SfxItemSet & | rSet | ) |
Definition at line 1309 of file frmsh.cxx.
References SdrPaintView::GetDefaultAttr(), SwViewShell::GetDrawViewWithValidMarkList(), SwFEShell::GetFlyFrameAttr(), SwBaseShell::GetShell(), SwFEShell::IsFrameSelected(), SfxItemSet::Put(), and rSet.
void SwFrameShell::GetLineStyleState | ( | SfxItemSet & | rSet | ) |
Definition at line 1268 of file frmsh.cxx.
References Content, SfxItemSet::DisableItem(), SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwFEShell::GetFlyFrameAttr(), SwBaseShell::GetShell(), SwFEShell::IsFrameSelected(), SwFEShell::IsSelObjProtected(), NONE, Parent, SfxItemSet::Put(), RES_BOX(), and rSet.
void SwFrameShell::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 732 of file frmsh.cxx.
References aProperties, Content, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), Fixed, FLY_ATCNT, FLY_INCNT, FN_FORMAT_FRAME_DLG, FN_FRAME_ALIGN_HORZ_CENTER, FN_FRAME_ALIGN_HORZ_LEFT, FN_FRAME_ALIGN_HORZ_RIGHT, FN_FRAME_ALIGN_VERT_BOTTOM, FN_FRAME_ALIGN_VERT_CENTER, FN_FRAME_ALIGN_VERT_CHAR_BOTTOM, FN_FRAME_ALIGN_VERT_CHAR_CENTER, FN_FRAME_ALIGN_VERT_CHAR_TOP, FN_FRAME_ALIGN_VERT_ROW_BOTTOM, FN_FRAME_ALIGN_VERT_ROW_CENTER, FN_FRAME_ALIGN_VERT_ROW_TOP, FN_FRAME_ALIGN_VERT_TOP, FN_FRAME_CHAIN, FN_FRAME_DOWN, FN_FRAME_UNCHAIN, FN_FRAME_UP, FN_NAME_SHAPE, FN_POSTIT, FN_TITLE_DESCRIPTION_SHAPE, SwFlyFrameAttrMgr::GetAnchor(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwEditWin::GetApplyTemplate(), SwViewShell::GetAttrPool(), SwFormat::GetChain(), vcl::CommandInfoProvider::GetCommandProperties(), SwView::GetDocShell(), SwViewShell::GetDrawViewWithValidMarkList(), SwView::GetEditWin(), SwFEShell::GetFlyFrameAttr(), SwFEShell::GetFlyFrameFormat(), SwFEShell::GetFlyName(), SwFlyFrame::GetFormat(), SfxShell::GetFrame(), SwFlyFrameAttrMgr::GetFrameSize(), SwFormat::GetFrameSize(), SwFEShell::GetFrameType(), Size::getHeight(), SwFormatFrameSize::GetHeightSizeType(), SwFormatHoriOrient::GetHoriOrient(), SwFlyFrameAttrMgr::GetHoriOrient(), GetHtmlMode(), SvxHyperlinkItem::GetInsertMode(), SfxItemSet::GetItemIfSet(), vcl::CommandInfoProvider::GetLabelForCommand(), SdrMarkView::GetMarkedObjectCount(), vcl::CommandInfoProvider::GetModuleIdentifier(), SwFormatChain::GetNext(), SfxShell::GetPool(), SwFEShell::GetSelectedFlyFrame(), SwWrtShell::GetSelectionType(), SwBaseShell::GetShell(), SwFlyFrameAttrMgr::GetSize(), SwWrtShell::GetView(), GetWhich, Size::getWidth(), Graphic, HLINK_HTMLMODE, SwEditWin::IsChainMode(), SwFEShell::IsFlyInFly(), SwFEShell::IsFrameSelected(), SwFEShell::IsSelObjProtected(), SfxWhichIter::NextWhich(), NONE, Ole, Parent, Pos, SfxItemSet::Put(), RES_FRM_SIZE(), RES_HORI_ORIENT(), RES_LR_SPACE(), RES_OPAQUE(), RES_PRINT(), RES_PROTECT(), RES_SURROUND(), RES_UL_SPACE(), RES_URL(), RES_VERT_ORIENT(), rSet, SvxHyperlinkItem::SetInsertMode(), SvxHyperlinkItem::SetName(), SvxHyperlinkItem::SetTargetFrame(), SvxHyperlinkItem::SetURL(), Size, and SwResId().
|
staticprivate |
void SwFrameShell::StateInsert | ( | SfxItemSet & | rSet | ) |
Definition at line 1295 of file frmsh.cxx.
References SfxItemSet::DisableItem(), FN_INSERT_FRAME, SwWrtShell::GetSelectionType(), SwBaseShell::GetShell(), Graphic, Ole, and rSet.