LibreOffice Module sw (master) 1
|
#include <grfsh.hxx>
Classes | |
class | SwExternalToolEdit |
Public Member Functions | |
void | Execute (SfxRequest &rRequest) |
void | ExecAttr (SfxRequest const &rRequest) |
void | GetAttrState (SfxItemSet &rRequest) |
void | ExecuteRotation (SfxRequest const &rRequest) |
void | GetAttrStateForRotation (SfxItemSet &rRequest) |
SwGrfShell (SwView &rView) | |
virtual | ~SwGrfShell () override |
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... | |
Private Attributes | |
std::vector< std::unique_ptr< SwExternalToolEdit > > | m_ExternalEdits |
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 &) |
SwGrfShell::SwGrfShell | ( | SwView & | rView | ) |
Definition at line 1011 of file grfsh.cxx.
References vcl::EnumContext::GetContextName(), vcl::EnumContext::Graphic, SfxShell::SetContextName(), and SfxShell::SetName().
void SwGrfShell::ExecAttr | ( | SfxRequest const & | rRequest | ) |
Definition at line 558 of file grfsh.cxx.
References Both, CNT_GRF, Dont, SvxGraphicFilter::ExecuteGrfFilterSlot(), SfxRequest::GetArgs(), SfxViewFrame::GetBindings(), SwEditShell::GetCurAttr(), GraphicObject::GetGraphic(), SwEditShell::GetGraphicType(), SfxItemSet::GetItemState(), SwBaseShell::GetShell(), SfxRequest::GetSlot(), SfxEnumItem< typename EnumT >::GetValue(), GetValue, SwBaseShell::GetView(), SfxViewShell::GetViewFrame(), Horizontal, SfxBindings::Invalidate(), SwEditShell::ReRead(), RES_GRFATR_BEGIN(), RES_GRFATR_END(), RES_GRFATR_MIRRORGRF(), SwEditShell::SetAttrSet(), SfxEnumItem< typename EnumT >::SetValue(), svx::ToolboxAccess::toggleToolbox(), TOOLBOX_NAME, and Vertical.
void SwGrfShell::Execute | ( | SfxRequest & | rRequest | ) |
Definition at line 107 of file grfsh.cxx.
References tools::Rectangle::Bottom(), convertTwipToMm100(), SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateFrameTabDialog(), INetURLObject::decode(), SfxRequest::Done(), END, SwEditShell::EndAllAction(), SwEditShell::EndUndo(), SwView::ExecuteScan(), GraphicHelper::ExportGraphic(), SwView::FlipDrawRotate(), FlyEmbedded, FN_DRAW_WRAP_DLG, FN_FORMAT_GRAFIC_DLG, FN_GET_PRINT_AREA, FN_GRAPHIC_MIRROR_ON_EVEN_PAGES, FN_KEEP_ASPECT_RATIO, FN_PARAM_GRF_CONNECT, FN_SET_FRM_ALT_NAME, FN_SET_FRM_NAME, FN_UNO_DESCRIPTION, SfxItemSet::Get(), SwFEShell::GetAnyCurRect(), SwViewShell::GetAttrPool(), SwFlyFrameAttrMgr::GetAttrSet(), GetBindings(), SdrModel::GetBitmapList(), SvxGrfCrop::GetBottom(), SdrModel::GetColorList(), CompressGraphicsDialog::GetCompressedGraphic(), SwEditShell::GetCurAttr(), GetDfltMetric(), SwDocShell::GetDoc(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwFEShell::GetDragMode(), IDocumentDrawModelAccess::GetDrawModel(), SwViewShell::GetDrawViewWithValidMarkList(), SwFEShell::GetFlyName(), SfxShell::GetFrame(), SwFrameAreaDefinition::getFrameArea(), SfxViewShell::GetFrameWeld(), GetFrameWeld(), SdrModel::GetGradientList(), SwEditShell::GetGraphic(), SwEditShell::GetGraphicAttr(), SwEditShell::GetGraphicObj(), SwEditShell::GetGrfNms(), SdrModel::GetHatchList(), SwFormatFrameSize::GetHeightPercent(), GetHtmlMode(), SwDoc::getIDocumentDrawModelAccess(), SfxItemSet::GetItemIfSet(), SvxGrfCrop::GetLeft(), URIHelper::GetMaybeFileHdl(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SwFEShell::GetObjDescription(), SwFEShell::GetObjTitle(), SfxItemSet::GetParent(), SdrModel::GetPatternList(), SwDoc::GetPersist(), SfxShell::GetPool(), GraphicObject::GetPrefMapMode(), GraphicObject::GetPrefSize(), SvxGrfCrop::GetRight(), CompressGraphicsDialog::GetScaledCropRectangle(), SwFEShell::GetSelectedFlyFrame(), SwFEShell::GetSelectedFrameFormat(), SwBaseShell::GetShell(), SvxSizeItem::GetSize(), SfxRequest::GetSlot(), SvxGrfCrop::GetTop(), GraphicObject::GetTransformedGraphic(), SwRotationGrf::GetUnrotatedSize(), SfxMedium::GetURLObject(), SwRotationGrf::GetValue(), SwBaseShell::GetView(), SwWrtShell::GetView(), SwViewShell::GetViewOptions(), GetWhich, SwFormatFrameSize::GetWidthPercent(), GPOS_LT, GRF, SfxObjectShell::HasName(), GraphicHelper::HasToSaveTransformedImage(), Size::Height(), SwRect::Height(), HTMLMODE_ON, SwView::InsertGraphicDlg(), SwFormat::IsAutoUpdateOnDirectFormat(), SwFEShell::IsFrameSelected(), SwViewOption::IsGrfKeepZoom(), SwMirrorGrf::IsGrfToggle(), SwViewOption::IsKeepRatio(), SdrEditView::IsRotateAllowed(), SwFEShell::IsRotationOfSwGrfNodePossible(), tools::Rectangle::Left(), m_ExternalEdits, o3tl::mm100, NONE, nState, Page, PagePrt, SfxItemSet::Put(), SwEditShell::ReRead(), RES_ANCHOR(), RES_FRM_SIZE(), RES_FRMATR_BEGIN(), RES_GRFATR_BEGIN(), RES_GRFATR_CROPGRF(), RES_GRFATR_END(), RES_GRFATR_MIRRORGRF(), RES_GRFATR_ROTATION(), RES_SURROUND(), RET_CANCEL, RET_NO, RET_OK, RET_YES, tools::Rectangle::Right(), SwEditShell::SetAttrItem(), SwEditShell::SetAttrSet(), SwFlyFrameAttrMgr::SetAttrSet(), SvxGrfCrop::SetBottom(), SwFEShell::SetDragMode(), SwFormat::SetFormatAttr(), SwViewOption::SetGrfKeepZoom(), SwMirrorGrf::SetGrfToggle(), SvxSizeItem::SetHeight(), Size::setHeight(), SwFormatFrameSize::SetHeightPercent(), SwViewOption::SetKeepRatio(), SvxGrfCrop::SetLeft(), SwFEShell::SetObjDescription(), SwFEShell::SetObjTitle(), SfxRequest::SetReturnValue(), SvxGrfCrop::SetRight(), SwFlyFrameAttrMgr::SetRotation(), SvxSizeItem::SetSize(), SvxGrfCrop::SetTop(), SvxSizeItem::SetWidth(), Size::setWidth(), SwFormatFrameSize::SetWidthPercent(), URIHelper::SmartRel2Abs(), START, SwEditShell::StartAllAction(), SwFEShell::StartCropImage(), SwEditShell::StartUndo(), SW_MOD, SwFormatFrameSize::SYNCED, tools::Rectangle::Top(), o3tl::toTwips(), INetURLObject::Unambiguous, SwFlyFrameAttrMgr::UpdateFlyFrame(), Variable, Size::Width(), SwRect::Width(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
void SwGrfShell::ExecuteRotation | ( | SfxRequest const & | rRequest | ) |
Definition at line 913 of file grfsh.cxx.
References SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwEditShell::GetCurAttr(), SwBaseShell::GetShell(), SfxRequest::GetSlot(), SwRotationGrf::GetUnrotatedSize(), SwRotationGrf::GetValue(), GRF, SwFEShell::IsFrameSelected(), NONE, RES_GRFATR_ROTATION(), and SwFlyFrameAttrMgr::SetRotation().
void SwGrfShell::GetAttrState | ( | SfxItemSet & | rRequest | ) |
Definition at line 711 of file grfsh.cxx.
References SwBaseShell::AddGrfUpdateSlot(), aNoTextNodeSetRange, Both, CNT_GRF, Content, SwCursorShell::CursorInsideInputField(), SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), FN_FORMAT_GRAFIC_DLG, SfxItemSet::Get(), SwEditShell::GetCntType(), SwEditShell::GetCurAttr(), SwViewShell::GetDrawViewWithValidMarkList(), SwEditShell::GetGraphic(), SwEditShell::GetGraphicObj(), SwEditShell::GetGraphicType(), SfxItemSet::GetItem(), SfxShell::GetObjectShell(), SfxShell::GetPool(), SwBaseShell::GetShell(), GraphicObject::GetType(), GetValue, SwBaseShell::GetView(), Horizontal, GraphicObject::IsAnimated(), SwEditShell::IsLinkedGrfSwapOut(), SdrEditView::IsRotateAllowed(), SwFEShell::IsSelObjProtected(), svx::ToolboxAccess::isToolboxVisible(), SfxWhichIter::NextWhich(), NONE, nState, Parent, SfxItemSet::Put(), RES_GRFATR_CHANNELB(), RES_GRFATR_CHANNELG(), RES_GRFATR_CHANNELR(), RES_GRFATR_CONTRAST(), RES_GRFATR_DRAWMODE(), RES_GRFATR_GAMMA(), RES_GRFATR_INVERT(), RES_GRFATR_LUMINANCE(), RES_GRFATR_MIRRORGRF(), RES_GRFATR_TRANSPARENCY(), rSet, SwBaseShell::SetGetStateSet(), TOOLBOX_NAME, and Vertical.
void SwGrfShell::GetAttrStateForRotation | ( | SfxItemSet & | rRequest | ) |
Definition at line 953 of file grfsh.cxx.
References Content, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwEditShell::GetCurAttr(), SwEditShell::GetGraphicType(), SwBaseShell::GetShell(), SwRotationGrf::GetValue(), SwFEShell::IsSelObjProtected(), SfxWhichIter::NextWhich(), NONE, Parent, SfxItemSet::Put(), RES_GRFATR_ROTATION(), rSet, and SwBaseShell::SetGetStateSet().
|
staticprivate |
SfxInterface initializer.
Definition at line 100 of file grfsh.cxx.
References SFX_OBJECTBAR_OBJECT.
|
private |