LibreOffice Module sc (master) 1
Classes | Functions | Variables
shapeuno.cxx File Reference
#include <sal/config.h>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/sequence.hxx>
#include <svtools/unoevent.hxx>
#include <svtools/unoimap.hxx>
#include <svx/svdobj.hxx>
#include <svx/ImageMapInfo.hxx>
#include <vcl/svapp.hxx>
#include <sfx2/event.hxx>
#include <editeng/unofield.hxx>
#include <toolkit/helper/convert.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <shapeuno.hxx>
#include <cellsuno.hxx>
#include <textuno.hxx>
#include <fielduno.hxx>
#include <docsh.hxx>
#include <drwlayer.hxx>
#include <userdat.hxx>
#include <unonames.hxx>
#include <styleuno.hxx>
Include dependency graph for shapeuno.cxx:

Go to the source code of this file.

Classes

class  ShapeUnoEventAccessImpl
 

Functions

static o3tl::span< const SfxItemPropertyMapEntrylcl_GetShapeMap ()
 
ScMacroInfoScShapeObj_getShapeHyperMacroInfo (const ScShapeObj *pShape, bool bCreate=false)
 
static uno::Reference< lang::XComponent > lcl_GetComponent (const uno::Reference< uno::XAggregation > &xAgg)
 
static uno::Reference< text::XText > lcl_GetText (const uno::Reference< uno::XAggregation > &xAgg)
 
static uno::Reference< text::XSimpleText > lcl_GetSimpleText (const uno::Reference< uno::XAggregation > &xAgg)
 
static uno::Reference< text::XTextRange > lcl_GetTextRange (const uno::Reference< uno::XAggregation > &xAgg)
 
static bool lcl_GetPageNum (const SdrPage *pPage, SdrModel &rModel, SCTAB &rNum)
 
static bool lcl_GetCaptionPoint (const uno::Reference< drawing::XShape > &xShape, awt::Point &rCaptionPoint)
 
static ScRange lcl_GetAnchorCell (const uno::Reference< drawing::XShape > &xShape, const ScDocument *pDoc, SCTAB nTab, awt::Point &rUnoPoint, awt::Size &rUnoSize, awt::Point &rCaptionPoint)
 
static awt::Point lcl_GetRelativePos (const uno::Reference< drawing::XShape > &xShape, const ScDocument *pDoc, SCTAB nTab, ScRange &rRange, awt::Size &rUnoSize, awt::Point &rCaptionPoint)
 
static void lcl_CopyOneProperty (beans::XPropertySet &rDest, beans::XPropertySet &rSource, const OUString &aNameStr)
 

Variables

constexpr OUStringLiteral SC_EVENTACC_ONCLICK = u"OnClick"
 
constexpr OUStringLiteral SC_EVENTACC_SCRIPT = u"Script"
 
constexpr OUStringLiteral SC_EVENTACC_EVENTTYPE = u"EventType"
 

Function Documentation

◆ lcl_CopyOneProperty()

static void lcl_CopyOneProperty ( beans::XPropertySet rDest,
beans::XPropertySet rSource,
const OUString &  aNameStr 
)
static

Definition at line 1102 of file shapeuno.cxx.

References TOOLS_WARN_EXCEPTION.

Referenced by ScShapeObj::insertTextContent().

◆ lcl_GetAnchorCell()

static ScRange lcl_GetAnchorCell ( const uno::Reference< drawing::XShape > &  xShape,
const ScDocument pDoc,
SCTAB  nTab,
awt::Point rUnoPoint,
awt::Size rUnoSize,
awt::Point rCaptionPoint 
)
static

◆ lcl_GetCaptionPoint()

static bool lcl_GetCaptionPoint ( const uno::Reference< drawing::XShape > &  xShape,
awt::Point rCaptionPoint 
)
static

Definition at line 248 of file shapeuno.cxx.

References sType.

Referenced by ScShapeObj::getPropertyValue(), lcl_GetAnchorCell(), and ScShapeObj::setPropertyValue().

◆ lcl_GetComponent()

static uno::Reference< lang::XComponent > lcl_GetComponent ( const uno::Reference< uno::XAggregation > &  xAgg)
static

◆ lcl_GetPageNum()

static bool lcl_GetPageNum ( const SdrPage pPage,
SdrModel rModel,
SCTAB rNum 
)
static

◆ lcl_GetRelativePos()

static awt::Point lcl_GetRelativePos ( const uno::Reference< drawing::XShape > &  xShape,
const ScDocument pDoc,
SCTAB  nTab,
ScRange rRange,
awt::Size rUnoSize,
awt::Point rCaptionPoint 
)
static

◆ lcl_GetShapeMap()

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

◆ lcl_GetSimpleText()

static uno::Reference< text::XSimpleText > lcl_GetSimpleText ( const uno::Reference< uno::XAggregation > &  xAgg)
static

Definition at line 198 of file shapeuno.cxx.

Referenced by ScShapeObj::insertControlCharacter(), and ScShapeObj::insertString().

◆ lcl_GetText()

static uno::Reference< text::XText > lcl_GetText ( const uno::Reference< uno::XAggregation > &  xAgg)
static

Definition at line 190 of file shapeuno.cxx.

Referenced by ScShapeObj::insertTextContent(), and ScShapeObj::removeTextContent().

◆ lcl_GetTextRange()

static uno::Reference< text::XTextRange > lcl_GetTextRange ( const uno::Reference< uno::XAggregation > &  xAgg)
static

◆ ScShapeObj_getShapeHyperMacroInfo()

ScMacroInfo * ScShapeObj_getShapeHyperMacroInfo ( const ScShapeObj pShape,
bool  bCreate = false 
)

Definition at line 77 of file shapeuno.cxx.

Referenced by ShapeUnoEventAccessImpl::getInfo().

Variable Documentation

◆ SC_EVENTACC_EVENTTYPE

constexpr OUStringLiteral SC_EVENTACC_EVENTTYPE = u"EventType"
constexpr

◆ SC_EVENTACC_ONCLICK

constexpr OUStringLiteral SC_EVENTACC_ONCLICK = u"OnClick"
constexpr

◆ SC_EVENTACC_SCRIPT

constexpr OUStringLiteral SC_EVENTACC_SCRIPT = u"Script"
constexpr