21#include <com/sun/star/embed/EmbedMisc.hpp>
22#include <com/sun/star/embed/XEmbeddedObject.hpp>
23#include <com/sun/star/presentation/ClickAction.hpp>
25#include <svx/svxids.hrc>
40#include <drawview.hxx>
57 if ( nMarkCount == 1 )
65 SfxItemState::DEFAULT ==
rSet.
GetItemState( SID_OBJECT_TITLE_DESCRIPTION ) ||
68 SfxItemState::DEFAULT ==
rSet.
GetItemState( SID_ATTR_FILL_USE_SLIDE_BACKGROUND ) ||
70 SfxItemState::DEFAULT ==
rSet.
GetItemState( SID_ATTR_FILL_FLOATTRANSPARENCE ) ||
113 (pSdrOle2Obj->
GetObjRef()->getStatus( pSdrOle2Obj->
GetAspect() ) & embed::EmbedMisc::MS_EMBED_RECOMPOSEONRESIZE) )
124 || pAnimationInfo->
meClickAction == presentation::ClickAction::ClickAction_NONE
126 || pAnimationInfo->
meClickAction == presentation::ClickAction::ClickAction_SOUND
129 == presentation::ClickAction::ClickAction_STOPPRESENTATION)
136 const auto* pSdrObjGroup =
dynamic_cast<const SdrObjGroup*
>(pObj);
138 if( !( ( pSdrObjGroup !=
nullptr && nInv == SdrInventor::Default ) ||
145 if(
nullptr != pSdrObjGroup && pSdrObjGroup->isDiagram())
151 if(pSdrObjGroup ==
nullptr || nInv != SdrInventor::Default)
157 if(!pSdrObjGroup || !pSdrObjGroup->isDiagram())
163 if( nInv == SdrInventor::Default &&
164 (
nId == SdrObjKind::Line ||
165 nId == SdrObjKind::PolyLine ||
166 nId == SdrObjKind::PathLine ||
167 nId == SdrObjKind::FreehandLine ))
179 if(nInv == SdrInventor::Default &&
183 if( nInv == SdrInventor::Default &&
190 if(nInv == SdrInventor::Default &&
nId == SdrObjKind::Table )
195 if( nInv != SdrInventor::Default ||
nId != SdrObjKind::Measure )
198 if( nInv != SdrInventor::Default ||
nId != SdrObjKind::Edge )
202 bool bDisable =
true;
214 if( nVal1 != 0 || nVal2 != 0 || nVal3 != 0 )
222 if ( nInv == SdrInventor::E3d ||
260 if ( !
mpDrawView->IsDismantlePossible(
true) &&
286 if( SfxItemState::DEFAULT ==
rSet.
GetItemState( SID_OUTLINE_TEXT_AUTOFIT ) )
290 const bool bSet = pItem && pItem->GetValue() != drawing::TextFitToSizeType_NONE;
313 else if( nMarkCount > 1 )
340 bool bDrawObj =
false;
343 bool bMeasureObj =
false;
344 bool bEdgeObj =
false;
345 bool bE3dCompoundObject =
false;
347 for(
size_t i = 0;
i < nMarkCount && !bText &&
i < 50; ++
i )
353 if (nInv == SdrInventor::Default)
357 case SdrObjKind::Text: bText =
true;
break;
359 case SdrObjKind::Line: bLine =
true;
break;
361 case SdrObjKind::Edge: bEdgeObj =
true;
break;
363 case SdrObjKind::Measure: bMeasureObj =
true;
break;
365 case SdrObjKind::Rectangle:
366 case SdrObjKind::CircleOrEllipse:
367 case SdrObjKind::FreehandLine:
368 case SdrObjKind::FreehandFill:
369 case SdrObjKind::PathFill:
370 case SdrObjKind::PathLine:
371 case SdrObjKind::CircleSection:
372 case SdrObjKind::CircleArc:
373 case SdrObjKind::CircleCut: bDrawObj =
true;
break;
375 case SdrObjKind::Group: bGroup =
true;
break;
377 case SdrObjKind::Graphic:
break;
379 case SdrObjKind::Table: bTable =
true;
break;
383 else if (nInv == SdrInventor::E3d)
388 bE3dCompoundObject =
true;
391 if( bLine && !bText && !bDrawObj &&!b3dObj)
429 if(bE3dCompoundObject)
455 if ( !
mpDrawView->IsDismantlePossible(
true) &&
const SvxFieldItem * GetFieldAtSelection() const
css::presentation::ClickAction meClickAction
Action at mouse click.
static SAL_DLLPRIVATE SdAnimationInfo * GetAnimationInfo(SdrObject *pObject)
deprecated
sal_Int32 getImagePreferredDPI() const override
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
SdrObject * GetMarkedSdrObj() const
virtual SdrInventor GetObjInventor() const
virtual SdrObjKind GetObjIdentifier() const
const SfxItemSet & GetMergedItemSet() const
virtual void TakeObjInfo(SdrObjTransformInfoRec &rInfo) const
sal_Int64 GetAspect() const
css::uno::Reference< css::embed::XEmbeddedObject > const & GetObjRef() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void DisableItem(sal_uInt16 nWhich)
bool isContentExtractionLocked() const
bool isExportLocked() const
SfxItemPool & GetPool() const
virtual SfxObjectShell * GetObjectShell()
const SvxFieldData * GetField() const
std::unique_ptr< DrawView > mpDrawView
void GetMenuStateSel(SfxItemSet &rSet)
Set state (Enabled/Disabled) of Menu-SfxSlots.
SdDrawDocument * GetDoc() const
::sd::View * GetView() const
virtual void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
bool IsVectorizeAllowed() const
constexpr TypedWhichId< SdrTextFitToSizeTypeItem > SDRATTR_TEXT_FITTOSIZE(SDRATTR_MISC_FIRST+3)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_EDGELINE2DELTA(SDRATTR_EDGE_FIRST+9)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_EDGELINE3DELTA(SDRATTR_EDGE_FIRST+10)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_EDGELINE1DELTA(SDRATTR_EDGE_FIRST+8)
SVXCORE_DLLPUBLIC E3dScene * DynCastE3dScene(SdrObject *)