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 )
50 css::uno::Reference< ov::excel::XInterior > SAL_CALL
Interior( )
override
58 css::uno::Reference< ov::excel::XFont > SAL_CALL
Font( )
override
65 void SAL_CALL
setText(
const OUString& Text )
override
71 catch ( css::uno::Exception& )
73 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
83 catch ( css::uno::Exception& )
85 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
90 void SAL_CALL
setTop(
double Top )
override
98 void SAL_CALL
setLeft(
double Left )
override
110 xShapePropertySet->setPropertyValue(
"TextRotation", css::uno::Any(_nOrientation*100));
112 catch (css::uno::Exception& )
114 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
119 sal_Int32 nSOOrientation = 0;
124 catch (css::uno::Exception& )
126 throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), sal_uInt32(
ERRCODE_BASIC_METHOD_FAILED), OUString() );
128 return static_cast< sal_Int32
>(nSOOrientation / 100) ;
137 static const css::uno::Sequence< OUString >
aServiceNames{
"ooo.vba.excel.XTitle" };
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
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
std::unique_ptr< ov::ShapeHelper > oShapeHelper
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