summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
index 9123543d9036..3155a969102f 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
@@ -37,6 +37,8 @@ namespace chart
namespace wrapper
{
+namespace {
+
class WrappedStockProperty : public WrappedProperty
{
public:
@@ -56,6 +58,8 @@ protected:
css::uno::Any m_aDefaultValue;
};
+}
+
WrappedStockProperty::WrappedStockProperty( const OUString& rOuterName
, const css::uno::Any& rDefaulValue
, const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact )
@@ -107,6 +111,8 @@ css::uno::Any WrappedStockProperty::getPropertyDefault( const css::uno::Referenc
return m_aDefaultValue;
}
+namespace {
+
class WrappedVolumeProperty : public WrappedStockProperty
{
public:
@@ -117,6 +123,8 @@ public:
uno::Reference< chart2::XChartTypeTemplate > getNewTemplate( bool bNewValue, const OUString& rCurrentTemplate, const Reference< lang::XMultiServiceFactory >& xFactory ) const override;
};
+}
+
WrappedVolumeProperty::WrappedVolumeProperty(const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact)
: WrappedStockProperty( "Volume", uno::Any(false) , spChart2ModelContact )
{
@@ -172,6 +180,8 @@ uno::Reference< chart2::XChartTypeTemplate > WrappedVolumeProperty::getNewTempla
return xTemplate;
}
+namespace {
+
class WrappedUpDownProperty : public WrappedStockProperty
{
public:
@@ -182,6 +192,8 @@ public:
uno::Reference< chart2::XChartTypeTemplate > getNewTemplate( bool bNewValue, const OUString& rCurrentTemplate, const Reference< lang::XMultiServiceFactory >& xFactory ) const override;
};
+}
+
WrappedUpDownProperty::WrappedUpDownProperty(const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact)
: WrappedStockProperty( "UpDown", uno::Any(false) , spChart2ModelContact )
{