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 <tools/diagnose_ex.h>
#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 dependency graph for shapeuno.cxx:

Go to the source code of this file.

Classes

class  ShapeUnoEventAccessImpl
 

Functions

static 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

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

Definition at line 1070 of file shapeuno.cxx.

References TOOLS_WARN_EXCEPTION.

Referenced by ScShapeObj::insertTextContent().

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
static bool lcl_GetCaptionPoint ( const uno::Reference< drawing::XShape > &  xShape,
awt::Point rCaptionPoint 
)
static

Definition at line 246 of file shapeuno.cxx.

References sType.

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

static uno::Reference<lang::XComponent> lcl_GetComponent ( const uno::Reference< uno::XAggregation > &  xAgg)
static
static bool lcl_GetPageNum ( const SdrPage pPage,
SdrModel rModel,
SCTAB rNum 
)
static
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
static const SfxItemPropertyMapEntry* lcl_GetShapeMap ( )
static
static uno::Reference<text::XSimpleText> lcl_GetSimpleText ( const uno::Reference< uno::XAggregation > &  xAgg)
static

Definition at line 196 of file shapeuno.cxx.

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

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

Definition at line 188 of file shapeuno.cxx.

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

static uno::Reference<text::XTextRange> lcl_GetTextRange ( const uno::Reference< uno::XAggregation > &  xAgg)
static
ScMacroInfo* ScShapeObj_getShapeHyperMacroInfo ( const ScShapeObj pShape,
bool  bCreate = false 
)

Variable Documentation

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