LibreOffice Module vbahelper (master) 1
|
#include <vbashapes.hxx>
Public Member Functions | |
ScVbaShapes (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xShapes, css::uno::Reference< css::frame::XModel > xModel) | |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
virtual void SAL_CALL | SelectAll () override |
virtual css::uno::Any SAL_CALL | AddLine (sal_Int32 StartX, sal_Int32 StartY, sal_Int32 endX, sal_Int32 endY) override |
virtual css::uno::Any SAL_CALL | AddShape (sal_Int32 _nType, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight) override |
virtual css::uno::Any SAL_CALL | AddTextbox (sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight) override |
virtual css::uno::Reference< ov::msforms::XShapeRange > SAL_CALL | Range (const css::uno::Any &shapes) override |
virtual css::uno::Any | createCollectionObject (const css::uno::Any &aSource) override |
Public Member Functions inherited from CollTestImplHelper< Ifc > | |
CollTestImplHelper (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess, bool bIgnoreCase=false) | |
Public Member Functions inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > > | |
ScVbaCollectionBase (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::container::XIndexAccess > xIndexAccess, bool bIgnoreCase=false) | |
virtual ::sal_Int32 SAL_CALL | getCount () override |
virtual css::uno::Any SAL_CALL | Item (const css::uno::Any &Index1, const css::uno::Any &) override |
OUString SAL_CALL | getDefaultMethodName () override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override=0 |
virtual css::uno::Type SAL_CALL | getElementType () override=0 |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Any | createCollectionObject (const css::uno::Any &aSource)=0 |
Public Member Functions inherited from InheritedHelperInterfaceImpl< Ifc... > | |
InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual OUString | getServiceImplName ()=0 |
virtual css::uno::Sequence< OUString > | getServiceNames ()=0 |
virtual ::sal_Int32 SAL_CALL | getCreator () override |
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL | getParent () override |
virtual css::uno::Any SAL_CALL | Application () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Static Public Member Functions | |
static void | setDefaultShapeProperties (const css::uno::Reference< css::drawing::XShape > &xShape) |
static void | setShape_NameProperty (const css::uno::Reference< css::drawing::XShape > &xShape, const OUString &sName) |
Private Member Functions | |
void | initBaseCollection () |
virtual OUString | getServiceImplName () override |
virtual css::uno::Sequence< OUString > | getServiceNames () override |
css::uno::Reference< css::container::XIndexAccess > | getShapesByArrayIndices (const css::uno::Any &Index) |
css::uno::Reference< css::drawing::XShape > | createShape (const OUString &service) |
css::uno::Any | AddRectangle (sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight) |
css::uno::Any | AddEllipse (sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight) |
css::uno::Any | AddTextboxInWriter (sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight) |
OUString | createName (std::u16string_view sName) |
Private Attributes | |
css::uno::Reference< css::drawing::XShapes > | m_xShapes |
css::uno::Reference< css::drawing::XDrawPage > | m_xDrawPage |
sal_Int32 | m_nNewShapeCount |
css::uno::Reference< css::frame::XModel > | m_xModel |
Additional Inherited Members | |
Protected Member Functions inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > > | |
virtual css::uno::Any | getItemByStringIndex (const OUString &sIndex) |
virtual css::uno::Any | getItemByIntIndex (const sal_Int32 nIndex) |
void | UpdateCollectionIndex (const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess) |
Protected Attributes inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > > | |
css::uno::Reference< css::container::XIndexAccess > | m_xIndexAccess |
css::uno::Reference< css::container::XNameAccess > | m_xNameAccess |
bool | mbIgnoreCase |
Protected Attributes inherited from InheritedHelperInterfaceImpl< Ifc... > | |
css::uno::WeakReference< ov::XHelperInterface > | mxParent |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Definition at line 55 of file vbashapes.hxx.
ScVbaShapes::ScVbaShapes | ( | const css::uno::Reference< ov::XHelperInterface > & | xParent, |
const css::uno::Reference< css::uno::XComponentContext > & | xContext, | ||
const css::uno::Reference< css::container::XIndexAccess > & | xShapes, | ||
css::uno::Reference< css::frame::XModel > | xModel | ||
) |
Definition at line 91 of file vbashapes.cxx.
References initBaseCollection(), m_xDrawPage, m_xModel, m_xShapes, and xModel.
|
private |
css::uno::RuntimeException |
Definition at line 247 of file vbashapes.cxx.
References createName(), createShape(), InheritedHelperInterfaceImpl< Ifc... >::getParent(), ScVbaShape::getType(), m_xModel, m_xShapes, InheritedHelperInterfaceImpl< Ifc... >::mxContext, name, nLineWidth, position(), setDefaultShapeProperties(), setShape_NameProperty(), size, and u.
Referenced by AddShape().
|
overridevirtual |
Definition at line 290 of file vbashapes.cxx.
References createName(), createShape(), InheritedHelperInterfaceImpl< Ifc... >::getParent(), ScVbaShape::getType(), m_xModel, m_xShapes, InheritedHelperInterfaceImpl< Ifc... >::mxContext, name, nLineWidth, position(), setDefaultShapeProperties(), setShape_NameProperty(), size, and u.
|
private |
css::uno::RuntimeException |
Definition at line 217 of file vbashapes.cxx.
References createName(), createShape(), InheritedHelperInterfaceImpl< Ifc... >::getParent(), ScVbaShape::getType(), m_xModel, m_xShapes, InheritedHelperInterfaceImpl< Ifc... >::mxContext, nLineWidth, position(), setDefaultShapeProperties(), setShape_NameProperty(), size, sName, and u.
Referenced by AddShape().
|
overridevirtual |
Definition at line 324 of file vbashapes.cxx.
References AddEllipse(), and AddRectangle().
|
overridevirtual |
Definition at line 338 of file vbashapes.cxx.
References AddTextboxInWriter(), and m_xModel.
|
private |
css::uno::RuntimeException |
Definition at line 349 of file vbashapes.cxx.
References createName(), createShape(), InheritedHelperInterfaceImpl< Ifc... >::getParent(), ScVbaShape::getType(), m_xModel, m_xShapes, InheritedHelperInterfaceImpl< Ifc... >::mxContext, setDefaultShapeProperties(), setShape_NameProperty(), size, sName, and u.
Referenced by AddTextbox().
|
overridevirtual |
Implements ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 105 of file vbashapes.cxx.
References InheritedHelperInterfaceImpl< Ifc... >::getParent(), ScVbaShape::getType(), m_xModel, m_xShapes, and InheritedHelperInterfaceImpl< Ifc... >::mxContext.
|
overridevirtual |
Implements ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 99 of file vbashapes.cxx.
References ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xIndexAccess.
|
private |
Definition at line 415 of file vbashapes.cxx.
References m_nNewShapeCount, and sName.
Referenced by AddEllipse(), AddLine(), AddRectangle(), and AddTextboxInWriter().
|
private |
css::uno::RuntimeException |
Definition at line 209 of file vbashapes.cxx.
References m_xModel.
Referenced by AddEllipse(), AddLine(), AddRectangle(), and AddTextboxInWriter().
|
overridevirtual |
Implements ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 116 of file vbashapes.cxx.
References cppu::UnoType< typename T >::get().
|
overrideprivatevirtual |
Implements InheritedHelperInterfaceImpl< Ifc... >.
Definition at line 122 of file vbashapes.cxx.
|
overrideprivatevirtual |
Implements InheritedHelperInterfaceImpl< Ifc... >.
Definition at line 128 of file vbashapes.cxx.
References aServiceNames.
|
private |
css::uno::RuntimeException |
Definition at line 138 of file vbashapes.cxx.
References ooo::vba::getTypeConverter(), ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xIndexAccess, ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xNameAccess, InheritedHelperInterfaceImpl< Ifc... >::mxContext, nIndex, sName, and xConverter.
Referenced by Range().
|
private |
Definition at line 76 of file vbashapes.cxx.
References index, ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xIndexAccess, and ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xNameAccess.
Referenced by ScVbaShapes().
|
overridevirtual |
Definition at line 175 of file vbashapes.cxx.
References aIndex, InheritedHelperInterfaceImpl< Ifc... >::getParent(), getShapesByArrayIndices(), m_xDrawPage, m_xModel, and InheritedHelperInterfaceImpl< Ifc... >::mxContext.
|
overridevirtual |
Definition at line 193 of file vbashapes.cxx.
|
static |
css::uno::RuntimeException |
Definition at line 391 of file vbashapes.cxx.
Referenced by AddEllipse(), AddLine(), AddRectangle(), and AddTextboxInWriter().
|
static |
Definition at line 402 of file vbashapes.cxx.
References sName.
Referenced by AddEllipse(), AddLine(), AddRectangle(), and AddTextboxInWriter().
|
private |
Definition at line 60 of file vbashapes.hxx.
Referenced by createName().
|
private |
Definition at line 59 of file vbashapes.hxx.
Referenced by Range(), and ScVbaShapes().
|
private |
Definition at line 62 of file vbashapes.hxx.
Referenced by AddEllipse(), AddLine(), AddRectangle(), AddTextbox(), AddTextboxInWriter(), createCollectionObject(), createShape(), Range(), and SelectAll().
|
private |
Definition at line 58 of file vbashapes.hxx.
Referenced by AddEllipse(), AddLine(), AddRectangle(), AddTextboxInWriter(), createCollectionObject(), ScVbaShapes(), and SelectAll().