24#include <com/sun/star/chart2/XTitle.hpp>
25#include <com/sun/star/beans/XPropertySet.hpp>
35 : m_xTitle(
std::move(xTitle))
36 , m_fRotationAngleDegree(0.0)
48 ,
const OUString& rCID )
89 catch(
const uno::Exception& )
101 xTitle->getPropertyValue(
"Visible") >>= bShow;
102 }
catch (
const uno::Exception &) {
110 const awt::Point& rPos
111 ,
const awt::Size& rReferenceSize
112 ,
const awt::Size& rTextMaxWidth
129 double fAngleDegree = 0;
130 xTitleProperties->getPropertyValue(
"TextRotation" ) >>= fAngleDegree;
133 catch(
const uno::Exception& )
138 sal_Int32 nTextMaxWidth;
141 if (m_fRotationAngleDegree < 75.0 || m_fRotationAngleDegree > 285.0
143 nTextMaxWidth = rTextMaxWidth.Width;
145 nTextMaxWidth = rTextMaxWidth.Height;
147 else if (m_fRotationAngleDegree <= 15.0 || m_fRotationAngleDegree >= 345.0
149 nTextMaxWidth = rTextMaxWidth.Width;
151 nTextMaxWidth = rTextMaxWidth.Height;
void rotate(double fRadiant)
void translate(double fX, double fY)
static css::awt::Size getSizeAfterRotation(SvxShape &rShape, double fRotationAngleDegree)
static rtl::Reference< SvxShapeText > createText(const rtl::Reference< SvxShapeGroupAnyD > &xTarget2D, const OUString &rText, const tNameSequence &rPropNames, const tAnySequence &rPropValues, const css::uno::Any &rATransformation)
double getRotationAnglePi() const
css::awt::Size getFinalSize() const
rtl::Reference< SvxShapeText > m_xShape
void createShapes(const css::awt::Point &rPos, const css::awt::Size &rReferenceSize, const css::awt::Size &nTextMaxWidth, bool bYAxisTitle)
void init(const rtl::Reference< SvxShapeGroupAnyD > &xTargetPage, const OUString &rCID)
void changePosition(const css::awt::Point &rPos)
double m_fRotationAngleDegree
css::awt::Size getUnrotatedSize() const
css::uno::Reference< css::chart2::XTitle > m_xTitle
static bool isVisible(const rtl::Reference< ::chart::Title > &xTitle)
VTitle(css::uno::Reference< css::chart2::XTitle > xTitle)
rtl::Reference< SvxShapeGroupAnyD > m_xTarget
#define TOOLS_WARN_EXCEPTION(area, stream)
#define DBG_UNHANDLED_EXCEPTION(...)
constexpr double deg2rad(double v)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::HomogenMatrix3 B2DHomMatrixToHomogenMatrix3(const ::basegfx::B2DHomMatrix &rM)
B2DHomMatrix <-> HomogenMatrix3.
const std::u16string_view aStringList[]