diff options
Diffstat (limited to 'chart2/source/inc/ReferenceSizeProvider.hxx')
-rw-r--r-- | chart2/source/inc/ReferenceSizeProvider.hxx | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/chart2/source/inc/ReferenceSizeProvider.hxx b/chart2/source/inc/ReferenceSizeProvider.hxx index 253ab79fb7b4..006618dd5dba 100644 --- a/chart2/source/inc/ReferenceSizeProvider.hxx +++ b/chart2/source/inc/ReferenceSizeProvider.hxx @@ -16,18 +16,17 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CHART2_SOURCE_INC_REFERENCESIZEPROVIDER_HXX -#define INCLUDED_CHART2_SOURCE_INC_REFERENCESIZEPROVIDER_HXX +#pragma once #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/awt/Size.hpp> -#include "charttoolsdllapi.hxx" +#include <rtl/ref.hxx> +#include <ChartModel.hxx> namespace com::sun::star { namespace chart2 { class XTitle; class XTitled; - class XChartDocument; } namespace beans { class XPropertySet; @@ -37,7 +36,7 @@ namespace com::sun::star { namespace chart { -class OOO_DLLPUBLIC_CHARTTOOLS ReferenceSizeProvider +class ReferenceSizeProvider { public: @@ -51,7 +50,7 @@ public: ReferenceSizeProvider( css::awt::Size aPageSize, - const css::uno::Reference< css::chart2::XChartDocument > & xChartDoc ); + const rtl::Reference<::chart::ChartModel> & xChartDoc ); const css::awt::Size& getPageSize() const { return m_aPageSize;} @@ -64,7 +63,7 @@ public: with state NO, AUTO_RESIZE_AMBIGUOUS is returned. */ static AutoResizeState getAutoResizeState( - const css::uno::Reference< css::chart2::XChartDocument > & xChartDoc ); + const rtl::Reference<::chart::ChartModel> & xChartDoc ); /** sets or resets the auto-resize at all objects that support this feature for text to the opposite of the current setting. If the current state @@ -77,7 +76,7 @@ public: class at the XPropertySet, and the adapted font sizes if bAdaptFontSizes is </sal_True>. */ - SAL_DLLPRIVATE void setValuesAtPropertySet( + void setValuesAtPropertySet( const css::uno::Reference< css::beans::XPropertySet > & xProp, bool bAdaptFontSizes = true ); @@ -85,7 +84,7 @@ public: class at the XTitle, and the adapted font sizes at the contained XFormattedStrings */ - SAL_DLLPRIVATE void setValuesAtTitle( + void setValuesAtTitle( const css::uno::Reference< css::chart2::XTitle > & xTitle ); /** Sets the internal value at all data series in the currently set model. @@ -95,12 +94,12 @@ public: void setValuesAtAllDataSeries(); private: - SAL_DLLPRIVATE bool useAutoScale() const { return m_bUseAutoScale;} + bool useAutoScale() const { return m_bUseAutoScale;} /** sets the auto-resize at all objects that support this feature for text. eNewState must be either AUTO_RESIZE_YES or AUTO_RESIZE_NO */ - SAL_DLLPRIVATE void setAutoResizeState( AutoResizeState eNewState ); + void setAutoResizeState( AutoResizeState eNewState ); /** Retrieves the auto-resize state from the given propertyset. The result will be put into eInOutState. If you initialize eInOutState with @@ -109,24 +108,21 @@ private: esp. AUTO_RESIZE_AMBIGUOUS, if the value was NO before, and is YES for the current property set, or the other way round. */ - SAL_DLLPRIVATE static void getAutoResizeFromPropSet( + static void getAutoResizeFromPropSet( const css::uno::Reference< css::beans::XPropertySet > & xProp, AutoResizeState & rInOutState ); - SAL_DLLPRIVATE void impl_setValuesAtTitled( + void impl_setValuesAtTitled( const css::uno::Reference< css::chart2::XTitled > & xTitled ); - SAL_DLLPRIVATE static void impl_getAutoResizeFromTitled( + static void impl_getAutoResizeFromTitled( const css::uno::Reference< css::chart2::XTitled > & xTitled, AutoResizeState & rInOutState ); css::awt::Size m_aPageSize; - css::uno::Reference< css::chart2::XChartDocument > m_xChartDoc; + rtl::Reference<::chart::ChartModel> m_xChartDoc; bool m_bUseAutoScale; }; } // namespace chart -// INCLUDED_CHART2_SOURCE_INC_REFERENCESIZEPROVIDER_HXX -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |