namespace chart { class ExplicitCategoriesProvider; } namespace com::sun::star::beans { class XPropertySet; } namespace com::sun::star::chart2 { class XAxis; } namespace com::sun::star::chart2::data { class XTextualDataSequence; }
namespace chart
{
//These properties describe how a couple of labels are arranged one to another. //The couple can contain all labels for all tickmark depth or just the labels for one single depth or //the labels from a coherent range of tick depths (e.g. the major and first minor tickmarks should be handled together). //... only allow side by side for different tick depth enumclass AxisLabelStaggering
{
SideBySide
, StaggerEven
, StaggerOdd
, StaggerAuto
};
struct AxisLabelProperties final
{
AxisLabelProperties();
css::awt::Size m_aFontReferenceSize;//reference size to calculate the font height
css::awt::Rectangle m_aMaximumSpaceForLabels;//Labels need to be clipped in order to fit into this rectangle
struct AxisLabelAlignment
{ double mfLabelDirection; /// which direction the labels are to be drawn. double mfInnerTickDirection; /// which direction the inner tickmarks are to be drawn.
LabelAlignment meAlignment;
AxisLabelAlignment();
};
struct AxisProperties final
{
rtl::Reference<::chart::Axis> m_xAxisModel;
// Data table bool m_bDisplayDataTable; bool m_bDataTableAlignAxisValuesWithColumns;
bool m_bDisplayLabels;
// Compatibility option: starting from LibreOffice 5.1 the rotated // layout is preferred to staggering for axis labels. // So the default value of this flag for new documents is `false`. bool m_bTryStaggeringFirst;
TickmarkProperties makeTickmarkProperties( sal_Int32 nDepth ) const; //@todo get this from somewhere; maybe for each subincrement //so far the model does not offer different settings for each tick depth const VLineProperties& makeLinePropertiesForDepth() const { return m_aLineProperties; }
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.