diff options
Diffstat (limited to 'chart2/source/view/main/VTitle.hxx')
-rw-r--r-- | chart2/source/view/main/VTitle.hxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/chart2/source/view/main/VTitle.hxx b/chart2/source/view/main/VTitle.hxx index 6d330076dedf..792d7f6a0a5c 100644 --- a/chart2/source/view/main/VTitle.hxx +++ b/chart2/source/view/main/VTitle.hxx @@ -21,25 +21,28 @@ #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/uno/Reference.h> #include <rtl/ustring.hxx> +#include <rtl/ref.hxx> #include <sal/types.h> +#include <svx/unoshape.hxx> namespace com::sun::star::awt { struct Point; } namespace com::sun::star::chart2 { class XTitle; } namespace com::sun::star::drawing { class XShape; } namespace com::sun::star::drawing { class XShapes; } namespace com::sun::star::lang { class XMultiServiceFactory; } +class SvxShapeText; namespace chart { +class Title; class VTitle final { public: - explicit VTitle( const css::uno::Reference< css::chart2::XTitle > & xTitle ); + explicit VTitle( css::uno::Reference< css::chart2::XTitle > xTitle ); ~VTitle(); - void init( const css::uno::Reference< css::drawing::XShapes >& xTargetPage - , const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory + void init( const rtl::Reference<SvxShapeGroupAnyD>& xTargetPage , const OUString& rCID ); void createShapes( const css::awt::Point& rPos @@ -51,12 +54,13 @@ public: css::awt::Size getUnrotatedSize() const; css::awt::Size getFinalSize() const; void changePosition( const css::awt::Point& rPos ); + static bool isVisible( + const rtl::Reference< ::chart::Title > & xTitle); private: - css::uno::Reference< css::drawing::XShapes > m_xTarget; - css::uno::Reference< css::lang::XMultiServiceFactory> m_xShapeFactory; + rtl::Reference<SvxShapeGroupAnyD> m_xTarget; css::uno::Reference< css::chart2::XTitle > m_xTitle; - css::uno::Reference< css::drawing::XShape > m_xShape; + rtl::Reference<SvxShapeText> m_xShape; OUString m_aCID; double m_fRotationAngleDegree; |