LibreOffice Module sc (master)  1
Classes | Macros | Functions
shapeuno.cxx File Reference
#include <sal/config.h>
#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 <svx/unoshape.hxx>
#include <editeng/unofield.hxx>
#include <toolkit/helper/convert.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#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
 

Macros

#define SC_EVENTACC_ONCLICK   "OnClick"
 
#define SC_EVENTACC_SCRIPT   "Script"
 
#define SC_EVENTACC_EVENTTYPE   "EventType"
 

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 char *pName)
 

Macro Definition Documentation

#define SC_EVENTACC_EVENTTYPE   "EventType"
#define SC_EVENTACC_ONCLICK   "OnClick"
#define SC_EVENTACC_SCRIPT   "Script"

Function Documentation

static void lcl_CopyOneProperty ( beans::XPropertySet rDest,
beans::XPropertySet rSource,
const char *  pName 
)
static

Definition at line 1071 of file shapeuno.cxx.

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 245 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 195 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 187 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 
)