summaryrefslogtreecommitdiff
path: root/chart2/source/controller/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-07-21 19:55:03 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-07-21 20:31:24 -0400
commit9e970303ddcccd9e33641f8f00bbc4c739a58cd7 (patch)
tree8d04e4966c5b38c08e78a010c358a9aab06f9676 /chart2/source/controller/inc
parentb2ffa40c12024886c3c6fd36d198aed2f8434fde (diff)
Remove auto_ptr from CharacterPropertyItemConverter.
And adjust all that's necessary. Change-Id: I121e5aa4d117da2e5e6b11e4fd85960a8b3aa727
Diffstat (limited to 'chart2/source/controller/inc')
-rw-r--r--chart2/source/controller/inc/AxisItemConverter.hxx43
-rw-r--r--chart2/source/controller/inc/CharacterPropertyItemConverter.hxx49
-rw-r--r--chart2/source/controller/inc/DataPointItemConverter.hxx45
-rw-r--r--chart2/source/controller/inc/MultipleChartConverters.hxx56
-rw-r--r--chart2/source/controller/inc/RegressionEquationItemConverter.hxx19
-rw-r--r--chart2/source/controller/inc/TitleItemConverter.hxx31
6 files changed, 79 insertions, 164 deletions
diff --git a/chart2/source/controller/inc/AxisItemConverter.hxx b/chart2/source/controller/inc/AxisItemConverter.hxx
index 4559c68866c8..cb34dd03b2a7 100644
--- a/chart2/source/controller/inc/AxisItemConverter.hxx
+++ b/chart2/source/controller/inc/AxisItemConverter.hxx
@@ -27,31 +27,22 @@
#include "ItemConverter.hxx"
#include <vector>
-#include <memory>
class SdrModel;
-namespace chart
-{
-namespace wrapper
-{
+namespace chart { namespace wrapper {
-class AxisItemConverter : public ::comphelper::ItemConverter
+class AxisItemConverter : public comphelper::ItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
AxisItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropertySet,
- SfxItemPool& rItemPool,
- SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XChartDocument > & xChartDoc,
- ExplicitScaleData * pScale = NULL,
- ExplicitIncrementData * pIncrement = NULL,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::uno::Reference<css::beans::XPropertySet>& rPropertySet,
+ SfxItemPool& rItemPool, SdrModel& rDrawModel,
+ const css::uno::Reference<css::chart2::XChartDocument> & xChartDoc,
+ ExplicitScaleData* pScale = NULL,
+ ExplicitIncrementData* pIncrement = NULL,
+ const css::awt::Size* pRefSize = NULL );
+
virtual ~AxisItemConverter();
virtual void FillItemSet( SfxItemSet & rOutItemSet ) const SAL_OVERRIDE;
@@ -62,26 +53,24 @@ protected:
virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const SAL_OVERRIDE;
virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw( css::uno::Exception ) SAL_OVERRIDE;
virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw( css::uno::Exception ) SAL_OVERRIDE;
private:
::std::vector< ItemConverter * > m_aConverters;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XAxis > m_xAxis;
+ css::uno::Reference<
+ css::chart2::XAxis > m_xAxis;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XChartDocument > m_xChartDoc;
+ css::uno::Reference<
+ css::chart2::XChartDocument > m_xChartDoc;
ExplicitScaleData* m_pExplicitScale;
ExplicitIncrementData* m_pExplicitIncrement;
};
-} // namespace wrapper
-} // namespace chart
+}}
-// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_AXISITEMCONVERTER_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/inc/CharacterPropertyItemConverter.hxx b/chart2/source/controller/inc/CharacterPropertyItemConverter.hxx
index b4e2d57e825e..5ab9910ab39d 100644
--- a/chart2/source/controller/inc/CharacterPropertyItemConverter.hxx
+++ b/chart2/source/controller/inc/CharacterPropertyItemConverter.hxx
@@ -24,59 +24,44 @@
#include <com/sun/star/beans/PropertyState.hpp>
#include <com/sun/star/awt/Size.hpp>
-#include <memory>
+#include <boost/optional.hpp>
-namespace chart
-{
-namespace wrapper
-{
+namespace chart { namespace wrapper {
-class CharacterPropertyItemConverter :
- public ::comphelper::ItemConverter
+class CharacterPropertyItemConverter : public comphelper::ItemConverter
{
public:
CharacterPropertyItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropertySet,
+ const css::uno::Reference<css::beans::XPropertySet>& rPropertySet,
SfxItemPool& rItemPool );
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
+
CharacterPropertyItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropertySet,
+ const css::uno::Reference<css::beans::XPropertySet>& rPropertySet,
SfxItemPool& rItemPool,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize,
+ const css::awt::Size* pRefSize,
const OUString & rRefSizePropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rRefSizePropSet =
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::uno::Reference<css::beans::XPropertySet>& rRefSizePropSet = css::uno::Reference<css::beans::XPropertySet>() );
+
virtual ~CharacterPropertyItemConverter();
protected:
- virtual const sal_uInt16 * GetWhichPairs() const SAL_OVERRIDE;
+ virtual const sal_uInt16* GetWhichPairs() const SAL_OVERRIDE;
virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const SAL_OVERRIDE;
-
virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw (css::uno::Exception) SAL_OVERRIDE;
virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw (css::uno::Exception) SAL_OVERRIDE;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > GetRefSizePropertySet() const { return m_xRefSizePropSet;}
+ css::uno::Reference<css::beans::XPropertySet> GetRefSizePropertySet() const;
private:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
- ::std::auto_ptr< ::com::sun::star::awt::Size > m_pRefSize;
- SAL_WNODEPRECATED_DECLARATIONS_POP
- OUString m_aRefSizePropertyName;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > m_xRefSizePropSet;
+ OUString m_aRefSizePropertyName;
+ css::uno::Reference<css::beans::XPropertySet> m_xRefSizePropSet;
+ boost::optional<css::awt::Size> m_pRefSize;
};
-} // namespace wrapper
-} // namespace chart
+}}
-// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_CHARACTERPROPERTYITEMCONVERTER_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/inc/DataPointItemConverter.hxx b/chart2/source/controller/inc/DataPointItemConverter.hxx
index e59888539be6..4c37ca21bbf1 100644
--- a/chart2/source/controller/inc/DataPointItemConverter.hxx
+++ b/chart2/source/controller/inc/DataPointItemConverter.hxx
@@ -27,45 +27,32 @@
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
-#include <memory>
#include <vector>
class SdrModel;
-namespace chart
-{
-namespace wrapper
-{
+namespace chart { namespace wrapper {
-class DataPointItemConverter :
- public ::comphelper::ItemConverter
+class DataPointItemConverter : public comphelper::ItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
DataPointItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & xChartModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > & xContext,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropertySet,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries > & xSeries,
+ const css::uno::Reference<css::frame::XModel>& xChartModel,
+ const css::uno::Reference<css::uno::XComponentContext>& xContext,
+ const css::uno::Reference<css::beans::XPropertySet>& rPropertySet,
+ const css::uno::Reference<css::chart2::XDataSeries>& xSeries,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
GraphicPropertyItemConverter::eGraphicObjectType eMapTo =
GraphicPropertyItemConverter::FILLED_DATA_POINT,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >(),
+ const css::awt::Size* pRefSize = NULL,
bool bDataSeries = false,
bool bUseSpecialFillColor = false,
sal_Int32 nSpecialFillColor = 0,
- bool bOverwriteLabelsForAttributedDataPointsAlso=false,
- sal_Int32 nNumberFormat=0,
- sal_Int32 nPercentNumberFormat=0);
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ bool bOverwriteLabelsForAttributedDataPointsAlso = false,
+ sal_Int32 nNumberFormat = 0,
+ sal_Int32 nPercentNumberFormat = 0 );
virtual ~DataPointItemConverter();
@@ -77,9 +64,9 @@ protected:
virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const SAL_OVERRIDE;
virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw (css::uno::Exception) SAL_OVERRIDE;
virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw (css::uno::Exception) SAL_OVERRIDE;
private:
::std::vector< ItemConverter * > m_aConverters;
@@ -89,14 +76,12 @@ private:
sal_Int32 m_nSpecialFillColor;
sal_Int32 m_nNumberFormat;
sal_Int32 m_nPercentNumberFormat;
- ::com::sun::star::uno::Sequence< sal_Int32 > m_aAvailableLabelPlacements;
+ css::uno::Sequence<sal_Int32> m_aAvailableLabelPlacements;
bool m_bForbidPercentValue;
};
-} // namespace wrapper
-} // namespace chart
+}}
-// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DATAPOINTITEMCONVERTER_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/inc/MultipleChartConverters.hxx b/chart2/source/controller/inc/MultipleChartConverters.hxx
index 55add5927acd..f3819b9988cb 100644
--- a/chart2/source/controller/inc/MultipleChartConverters.hxx
+++ b/chart2/source/controller/inc/MultipleChartConverters.hxx
@@ -23,29 +23,20 @@
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <memory>
-
class SdrModel;
-namespace chart
-{
-namespace wrapper
-{
+namespace chart { namespace wrapper {
class AllAxisItemConverter : public ::comphelper::MultipleItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
AllAxisItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & xChartModel,
+ const css::uno::Reference<css::frame::XModel> & xChartModel,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
+ const css::awt::Size* pRefSize = NULL );
+
virtual ~AllAxisItemConverter();
protected:
@@ -56,12 +47,10 @@ class AllGridItemConverter : public ::comphelper::MultipleItemConverter
{
public:
AllGridItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & xChartModel,
+ const css::uno::Reference<css::frame::XModel>& xChartModel,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
+ const css::uno::Reference<css::lang::XMultiServiceFactory> & xNamedPropertyContainerFactory );
virtual ~AllGridItemConverter();
protected:
@@ -71,17 +60,13 @@ protected:
class AllDataLabelItemConverter : public ::comphelper::MultipleItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
AllDataLabelItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & xChartModel,
+ const css::uno::Reference<css::frame::XModel>& xChartModel,
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
+ const css::awt::Size* pRefSize = NULL );
+
virtual ~AllDataLabelItemConverter();
protected:
@@ -91,17 +76,12 @@ protected:
class AllTitleItemConverter : public ::comphelper::MultipleItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
AllTitleItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & xChartModel,
- SfxItemPool& rItemPool,
- SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::uno::Reference<css::frame::XModel>& xChartModel,
+ SfxItemPool& rItemPool, SdrModel& rDrawModel,
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
+ const css::awt::Size* pRefSize = NULL );
+
virtual ~AllTitleItemConverter();
protected:
@@ -112,9 +92,7 @@ class AllSeriesStatisticsConverter : public ::comphelper::MultipleItemConverter
{
public:
AllSeriesStatisticsConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & xChartModel,
- SfxItemPool& rItemPool );
+ const css::uno::Reference<css::frame::XModel>& xChartModel, SfxItemPool& rItemPool );
virtual ~AllSeriesStatisticsConverter();
protected:
diff --git a/chart2/source/controller/inc/RegressionEquationItemConverter.hxx b/chart2/source/controller/inc/RegressionEquationItemConverter.hxx
index a247ad99cded..3201d6c48709 100644
--- a/chart2/source/controller/inc/RegressionEquationItemConverter.hxx
+++ b/chart2/source/controller/inc/RegressionEquationItemConverter.hxx
@@ -26,21 +26,15 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/awt/Size.hpp>
-#include <memory>
#include <vector>
class SdrModel;
-namespace chart
-{
-namespace wrapper
-{
+namespace chart { namespace wrapper {
-class RegressionEquationItemConverter :
- public ::comphelper::ItemConverter
+class RegressionEquationItemConverter : public comphelper::ItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
RegressionEquationItemConverter(
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet > & rPropertySet,
@@ -48,9 +42,8 @@ public:
SdrModel& rDrawModel,
const ::com::sun::star::uno::Reference<
::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::awt::Size* pRefSize = NULL );
+
virtual ~RegressionEquationItemConverter();
virtual void FillItemSet( SfxItemSet & rOutItemSet ) const SAL_OVERRIDE;
@@ -69,10 +62,8 @@ private:
::std::vector< ItemConverter * > m_aConverters;
};
-} // namespace wrapper
-} // namespace chart
+}}
-// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONEQUATIONITEMCONVERTER_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/inc/TitleItemConverter.hxx b/chart2/source/controller/inc/TitleItemConverter.hxx
index 71319bc3ad52..c1d78f0486eb 100644
--- a/chart2/source/controller/inc/TitleItemConverter.hxx
+++ b/chart2/source/controller/inc/TitleItemConverter.hxx
@@ -24,30 +24,19 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <vector>
-#include <memory>
class SdrModel;
-namespace chart
-{
-namespace wrapper
-{
+namespace chart { namespace wrapper {
-class TitleItemConverter :
- public ::comphelper::ItemConverter
+class TitleItemConverter : public comphelper::ItemConverter
{
public:
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
TitleItemConverter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropertySet,
- SfxItemPool& rItemPool,
- SdrModel& rDrawModel,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
- ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
- ::std::auto_ptr< ::com::sun::star::awt::Size >() );
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ const css::uno::Reference<css::beans::XPropertySet>& rPropertySet,
+ SfxItemPool& rItemPool, SdrModel& rDrawModel,
+ const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory,
+ const css::awt::Size* pRefSize = NULL );
virtual ~TitleItemConverter();
@@ -59,18 +48,16 @@ protected:
virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const SAL_OVERRIDE;
virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw (css::uno::Exception) SAL_OVERRIDE;
virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
- throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
+ throw (css::uno::Exception) SAL_OVERRIDE;
private:
::std::vector< ItemConverter * > m_aConverters;
};
-} // namespace wrapper
-} // namespace chart
+}}
-// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_TITLEITEMCONVERTER_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */