LibreOffice Module sd (master) 1
Classes | Namespaces | Macros | Functions
unoobj.cxx File Reference
#include <sal/config.h>
#include <memory>
#include <string_view>
#include <utility>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/presentation/ClickAction.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyState.hpp>
#include <rtl/ustrbuf.hxx>
#include <svl/itemprop.hxx>
#include <svl/style.hxx>
#include <svx/svdpool.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/app.hxx>
#include <svtools/unoimap.hxx>
#include <svtools/unoevent.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/event.hxx>
#include <sfx2/sfxsids.hrc>
#include <comphelper/extract.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <svx/unoshape.hxx>
#include <svx/svdotext.hxx>
#include <svx/svdopath.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdograf.hxx>
#include <svx/ImageMapInfo.hxx>
#include <filter/msfilter/msdffimp.hxx>
#include <svl/instrm.hxx>
#include <editeng/outlobj.hxx>
#include <Outliner.hxx>
#include <comphelper/sequence.hxx>
#include <svx/svdogrp.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <vcl/svapp.hxx>
#include <tools/debug.hxx>
#include <anminfo.hxx>
#include "unoobj.hxx"
#include <unoprnms.hxx>
#include <unomodel.hxx>
#include <drawdoc.hxx>
#include <sdmod.hxx>
#include <sdpage.hxx>
#include <ViewShell.hxx>
#include <unopage.hxx>
#include <DrawDocShell.hxx>
#include <EffectMigration.hxx>
Include dependency graph for unoobj.cxx:

Go to the source code of this file.

Classes

class  SdUnoEventsAccess
 
struct  o3tl::typed_flags< FoundFlags >
 

Namespaces

namespace  o3tl
 

Macros

#define WID_EFFECT   1
 
#define WID_SPEED   2
 
#define WID_TEXTEFFECT   3
 
#define WID_BOOKMARK   4
 
#define WID_CLICKACTION   5
 
#define WID_PLAYFULL   6
 
#define WID_SOUNDFILE   7
 
#define WID_SOUNDON   8
 
#define WID_BLUESCREEN   9
 
#define WID_VERB   10
 
#define WID_DIMCOLOR   11
 
#define WID_DIMHIDE   12
 
#define WID_DIMPREV   13
 
#define WID_PRESORDER   14
 
#define WID_STYLE   15
 
#define WID_ANIMPATH   16
 
#define WID_IMAGEMAP   17
 
#define WID_ISANIMATION   18
 
#define WID_ISEMPTYPRESOBJ   20
 
#define WID_ISPRESOBJ   21
 
#define WID_MASTERDEPEND   22
 
#define WID_NAVORDER   23
 
#define WID_PLACEHOLDERTEXT   24
 
#define WID_LEGACYFRAGMENT   25
 
#define IMPRESS_MAP_ENTRIES
 
#define DRAW_MAP_ENTRIES
 

Functions

static o3tl::span< const SfxItemPropertyMapEntrylcl_GetImpress_SdXShapePropertyGraphicMap_Impl ()
 
static o3tl::span< const SfxItemPropertyMapEntrylcl_GetImpress_SdXShapePropertySimpleMap_Impl ()
 
static o3tl::span< const SfxItemPropertyMapEntrylcl_GetDraw_SdXShapePropertySimpleMap_Impl ()
 
static o3tl::span< const SfxItemPropertyMapEntrylcl_GetDraw_SdXShapePropertyGraphicMap_Impl ()
 
static o3tl::span< const SfxItemPropertyMapEntrylcl_ImplGetShapePropertyMap (bool bImpress, bool bGraphicObj)
 
static const SvxItemPropertySetlcl_ImplGetShapePropertySet (bool bImpress, bool bGraphicObj)
 
static o3tl::span< const SfxItemPropertyMapEntrylcl_GetEmpty_SdXShapePropertyMap_Impl ()
 
static const SvxItemPropertySetlcl_GetEmpty_SdXShapePropertySet_Impl ()
 
const SvEventDescriptionImplGetSupportedMacroItems ()
 
constexpr OUStringLiteral gaStrOnClick (u"OnClick")
 
constexpr OUStringLiteral gaStrServiceName (u"com.sun.star.documents.Events")
 
constexpr OUStringLiteral gaStrEventType (u"EventType")
 
constexpr OUStringLiteral gaStrPresentation (u"Presentation")
 
constexpr OUStringLiteral gaStrLibrary (u"Library")
 
constexpr OUStringLiteral gaStrMacroName (u"MacroName")
 
constexpr OUStringLiteral gaStrClickAction (u"ClickAction")
 
constexpr OUStringLiteral gaStrBookmark (u"Bookmark")
 
constexpr OUStringLiteral gaStrEffect (u"Effect")
 
constexpr OUStringLiteral gaStrPlayFull (u"PlayFull")
 
constexpr OUStringLiteral gaStrVerb (u"Verb")
 
constexpr OUStringLiteral gaStrSoundURL (u"SoundURL")
 
constexpr OUStringLiteral gaStrSpeed (u"Speed")
 
constexpr OUStringLiteral gaStrStarBasic (u"StarBasic")
 
constexpr OUStringLiteral gaStrScript (u"Script")
 
static void clearEventsInAnimationInfo (SdAnimationInfo *pInfo)
 

Macro Definition Documentation

◆ DRAW_MAP_ENTRIES

#define DRAW_MAP_ENTRIES
Value:
{ u"" UNO_NAME_OBJ_STYLE, WID_STYLE, cppu::UnoType<style::XStyle>::get(), css::beans::PropertyAttribute::MAYBEVOID, 0},\
{ u"NavigationOrder", WID_NAVORDER, cppu::UnoType<sal_Int32>::get(), 0, 0},\
css::uno::Type const & get()
float u
#define WID_CLICKACTION
Definition: unoobj.cxx:84
#define WID_BOOKMARK
Definition: unoobj.cxx:83
#define WID_STYLE
Definition: unoobj.cxx:94
#define WID_NAVORDER
Definition: unoobj.cxx:103
#define UNO_NAME_OBJ_BOOKMARK
Definition: unoprnms.hxx:42
#define UNO_NAME_OBJ_CLICKACTION
Definition: unoprnms.hxx:49
#define UNO_NAME_OBJ_STYLE
Definition: unoprnms.hxx:58

Definition at line 151 of file unoobj.cxx.

◆ IMPRESS_MAP_ENTRIES

#define IMPRESS_MAP_ENTRIES
Value:
{ u"" UNO_NAME_OBJ_ISPRESOBJ, WID_ISPRESOBJ, cppu::UnoType<bool>::get(), css::beans::PropertyAttribute::READONLY, 0},\
{ u"" UNO_NAME_OBJ_STYLE, WID_STYLE, cppu::UnoType<style::XStyle>::get(), css::beans::PropertyAttribute::MAYBEVOID, 0},\
{ u"IsAnimation", WID_ISANIMATION, cppu::UnoType<bool>::get(), 0, 0},\
{ u"NavigationOrder", WID_NAVORDER, cppu::UnoType<sal_Int32>::get(), 0, 0},\
{ u"PlaceholderText", WID_PLACEHOLDERTEXT, cppu::UnoType<OUString>::get(), 0, 0},\
#define WID_TEXTEFFECT
Definition: unoobj.cxx:82
#define WID_ANIMPATH
Definition: unoobj.cxx:95
#define WID_ISPRESOBJ
Definition: unoobj.cxx:100
#define WID_SPEED
Definition: unoobj.cxx:81
#define WID_PLACEHOLDERTEXT
Definition: unoobj.cxx:104
#define WID_PLAYFULL
Definition: unoobj.cxx:85
#define WID_LEGACYFRAGMENT
Definition: unoobj.cxx:105
#define WID_SOUNDON
Definition: unoobj.cxx:87
#define WID_DIMCOLOR
Definition: unoobj.cxx:90
#define WID_PRESORDER
Definition: unoobj.cxx:93
#define WID_SOUNDFILE
Definition: unoobj.cxx:86
#define WID_EFFECT
Definition: unoobj.cxx:80
#define WID_ISANIMATION
Definition: unoobj.cxx:97
#define WID_DIMPREV
Definition: unoobj.cxx:92
#define WID_DIMHIDE
Definition: unoobj.cxx:91
#define WID_MASTERDEPEND
Definition: unoobj.cxx:101
#define WID_ISEMPTYPRESOBJ
Definition: unoobj.cxx:99
#define WID_VERB
Definition: unoobj.cxx:89
#define WID_BLUESCREEN
Definition: unoobj.cxx:88
#define UNO_NAME_OBJ_LEGACYFRAGMENT
Definition: unoprnms.hxx:61
#define UNO_NAME_OBJ_DIMHIDE
Definition: unoprnms.hxx:44
#define UNO_NAME_OBJ_ANIMATIONPATH
Definition: unoprnms.hxx:60
#define UNO_NAME_OBJ_SOUNDON
Definition: unoprnms.hxx:53
#define UNO_NAME_OBJ_EFFECT
Definition: unoprnms.hxx:46
#define UNO_NAME_OBJ_SOUNDFILE
Definition: unoprnms.hxx:52
#define UNO_NAME_OBJ_VERB
Definition: unoprnms.hxx:57
#define UNO_NAME_OBJ_ISEMPTYPRESOBJ
Definition: unoprnms.hxx:47
#define UNO_NAME_OBJ_SPEED
Definition: unoprnms.hxx:54
#define UNO_NAME_OBJ_DIMPREV
Definition: unoprnms.hxx:45
#define UNO_NAME_OBJ_MASTERDEPENDENT
Definition: unoprnms.hxx:59
#define UNO_NAME_OBJ_PRESORDER
Definition: unoprnms.hxx:51
#define UNO_NAME_OBJ_ISPRESOBJ
Definition: unoprnms.hxx:48
#define UNO_NAME_OBJ_TEXTEFFECT
Definition: unoprnms.hxx:55
#define UNO_NAME_OBJ_PLAYFULL
Definition: unoprnms.hxx:50
#define UNO_NAME_OBJ_BLUESCREEN
Definition: unoprnms.hxx:56
#define UNO_NAME_OBJ_DIMCOLOR
Definition: unoprnms.hxx:43

Definition at line 107 of file unoobj.cxx.

◆ WID_ANIMPATH

#define WID_ANIMPATH   16

Definition at line 95 of file unoobj.cxx.

◆ WID_BLUESCREEN

#define WID_BLUESCREEN   9

Definition at line 88 of file unoobj.cxx.

◆ WID_BOOKMARK

#define WID_BOOKMARK   4

Definition at line 83 of file unoobj.cxx.

◆ WID_CLICKACTION

#define WID_CLICKACTION   5

Definition at line 84 of file unoobj.cxx.

◆ WID_DIMCOLOR

#define WID_DIMCOLOR   11

Definition at line 90 of file unoobj.cxx.

◆ WID_DIMHIDE

#define WID_DIMHIDE   12

Definition at line 91 of file unoobj.cxx.

◆ WID_DIMPREV

#define WID_DIMPREV   13

Definition at line 92 of file unoobj.cxx.

◆ WID_EFFECT

#define WID_EFFECT   1

Definition at line 80 of file unoobj.cxx.

◆ WID_IMAGEMAP

#define WID_IMAGEMAP   17

Definition at line 96 of file unoobj.cxx.

◆ WID_ISANIMATION

#define WID_ISANIMATION   18

Definition at line 97 of file unoobj.cxx.

◆ WID_ISEMPTYPRESOBJ

#define WID_ISEMPTYPRESOBJ   20

Definition at line 99 of file unoobj.cxx.

◆ WID_ISPRESOBJ

#define WID_ISPRESOBJ   21

Definition at line 100 of file unoobj.cxx.

◆ WID_LEGACYFRAGMENT

#define WID_LEGACYFRAGMENT   25

Definition at line 105 of file unoobj.cxx.

◆ WID_MASTERDEPEND

#define WID_MASTERDEPEND   22

Definition at line 101 of file unoobj.cxx.

◆ WID_NAVORDER

#define WID_NAVORDER   23

Definition at line 103 of file unoobj.cxx.

◆ WID_PLACEHOLDERTEXT

#define WID_PLACEHOLDERTEXT   24

Definition at line 104 of file unoobj.cxx.

◆ WID_PLAYFULL

#define WID_PLAYFULL   6

Definition at line 85 of file unoobj.cxx.

◆ WID_PRESORDER

#define WID_PRESORDER   14

Definition at line 93 of file unoobj.cxx.

◆ WID_SOUNDFILE

#define WID_SOUNDFILE   7

Definition at line 86 of file unoobj.cxx.

◆ WID_SOUNDON

#define WID_SOUNDON   8

Definition at line 87 of file unoobj.cxx.

◆ WID_SPEED

#define WID_SPEED   2

Definition at line 81 of file unoobj.cxx.

◆ WID_STYLE

#define WID_STYLE   15

Definition at line 94 of file unoobj.cxx.

◆ WID_TEXTEFFECT

#define WID_TEXTEFFECT   3

Definition at line 82 of file unoobj.cxx.

◆ WID_VERB

#define WID_VERB   10

Definition at line 89 of file unoobj.cxx.

Function Documentation

◆ clearEventsInAnimationInfo()

static void clearEventsInAnimationInfo ( SdAnimationInfo pInfo)
static

◆ gaStrBookmark()

constexpr OUStringLiteral gaStrBookmark ( u"Bookmark"  )
constexpr

◆ gaStrClickAction()

constexpr OUStringLiteral gaStrClickAction ( u"ClickAction"  )
constexpr

◆ gaStrEffect()

constexpr OUStringLiteral gaStrEffect ( u"Effect"  )
constexpr

◆ gaStrEventType()

constexpr OUStringLiteral gaStrEventType ( u"EventType"  )
constexpr

◆ gaStrLibrary()

constexpr OUStringLiteral gaStrLibrary ( u"Library"  )
constexpr

◆ gaStrMacroName()

constexpr OUStringLiteral gaStrMacroName ( u"MacroName"  )
constexpr

◆ gaStrOnClick()

constexpr OUStringLiteral gaStrOnClick ( u"OnClick"  )
constexpr

◆ gaStrPlayFull()

constexpr OUStringLiteral gaStrPlayFull ( u"PlayFull"  )
constexpr

◆ gaStrPresentation()

constexpr OUStringLiteral gaStrPresentation ( u"Presentation"  )
constexpr

◆ gaStrScript()

constexpr OUStringLiteral gaStrScript ( u"Script"  )
constexpr

◆ gaStrServiceName()

constexpr OUStringLiteral gaStrServiceName ( u"com.sun.star.documents.Events"  )
constexpr

◆ gaStrSoundURL()

constexpr OUStringLiteral gaStrSoundURL ( u"SoundURL"  )
constexpr

◆ gaStrSpeed()

constexpr OUStringLiteral gaStrSpeed ( u"Speed"  )
constexpr

◆ gaStrStarBasic()

constexpr OUStringLiteral gaStrStarBasic ( u"StarBasic"  )
constexpr

◆ gaStrVerb()

constexpr OUStringLiteral gaStrVerb ( u"Verb"  )
constexpr

◆ ImplGetSupportedMacroItems()

const SvEventDescription * ImplGetSupportedMacroItems ( )

Definition at line 235 of file unoobj.cxx.

Referenced by SdXImpressDocument::create(), and SdXShape::getPropertyValue().

◆ lcl_GetDraw_SdXShapePropertyGraphicMap_Impl()

static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetDraw_SdXShapePropertyGraphicMap_Impl ( )
static

◆ lcl_GetDraw_SdXShapePropertySimpleMap_Impl()

static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetDraw_SdXShapePropertySimpleMap_Impl ( )
static

Definition at line 157 of file unoobj.cxx.

References DRAW_MAP_ENTRIES.

Referenced by lcl_ImplGetShapePropertyMap(), and lcl_ImplGetShapePropertySet().

◆ lcl_GetEmpty_SdXShapePropertyMap_Impl()

static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetEmpty_SdXShapePropertyMap_Impl ( )
static

Definition at line 225 of file unoobj.cxx.

Referenced by lcl_GetEmpty_SdXShapePropertySet_Impl().

◆ lcl_GetEmpty_SdXShapePropertySet_Impl()

static const SvxItemPropertySet * lcl_GetEmpty_SdXShapePropertySet_Impl ( )
static

◆ lcl_GetImpress_SdXShapePropertyGraphicMap_Impl()

static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetImpress_SdXShapePropertyGraphicMap_Impl ( )
static

◆ lcl_GetImpress_SdXShapePropertySimpleMap_Impl()

static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetImpress_SdXShapePropertySimpleMap_Impl ( )
static

Definition at line 142 of file unoobj.cxx.

References IMPRESS_MAP_ENTRIES.

Referenced by lcl_ImplGetShapePropertyMap(), and lcl_ImplGetShapePropertySet().

◆ lcl_ImplGetShapePropertyMap()

static o3tl::span< const SfxItemPropertyMapEntry > lcl_ImplGetShapePropertyMap ( bool  bImpress,
bool  bGraphicObj 
)
static

◆ lcl_ImplGetShapePropertySet()

static const SvxItemPropertySet * lcl_ImplGetShapePropertySet ( bool  bImpress,
bool  bGraphicObj 
)
static