26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/drawing/XShape.hpp>
28#include <com/sun/star/script/BasicErrorException.hpp>
32template<
typename... Ifc >
42 TitleImpl(
const css::uno::Reference< ov::XHelperInterface >& xParent,
43 const css::uno::Reference< css::uno::XComponentContext >& xContext,
44 css::uno::Reference< css::drawing::XShape > _xTitleShape )
52 css::uno::Reference< ov::excel::XInterior > SAL_CALL
Interior( )
override
60 css::uno::Reference< ov::excel::XFont > SAL_CALL
Font( )
override
67 void SAL_CALL
setText(
const OUString& Text )
override
73 catch ( css::uno::Exception& )
75 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
85 catch ( css::uno::Exception& )
87 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
92 void SAL_CALL
setTop(
double Top )
override
112 xShapePropertySet->setPropertyValue(
"TextRotation", css::uno::Any(_nOrientation*100));
114 catch (css::uno::Exception& )
116 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
121 sal_Int32 nSOOrientation = 0;
126 catch (css::uno::Exception& )
128 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
130 return static_cast< sal_Int32
>(nSOOrientation / 100) ;
139 static const css::uno::Sequence< OUString >
aServiceNames{
"ooo.vba.excel.XTitle" };
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
ov::ShapeHelper maShapeHelper
void SAL_CALL setLeft(double Left) override
double SAL_CALL getLeft() override
::sal_Int32 SAL_CALL getOrientation() override
double SAL_CALL getTop() override
InheritedHelperInterfaceImpl< Ifc... > BaseClass
TitleImpl(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::drawing::XShape > _xTitleShape)
void SAL_CALL setText(const OUString &Text) override
css::uno::Reference< css::beans::XPropertySet > xShapePropertySet
void SAL_CALL setTop(double Top) override
css::uno::Reference< ov::excel::XInterior > SAL_CALL Interior() override
OUString getServiceImplName() override
OUString SAL_CALL getText() override
css::uno::Reference< css::drawing::XShape > xTitleShape
void SAL_CALL setOrientation(::sal_Int32 _nOrientation) override
css::uno::Sequence< OUString > getServiceNames() override
css::uno::Reference< ov::excel::XFont > SAL_CALL Font() override
Sequence< OUString > aServiceNames
#define ERRCODE_BASIC_METHOD_FAILED