summaryrefslogtreecommitdiff
path: root/chart2/source/model/template/GL3DBarChartType.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/model/template/GL3DBarChartType.cxx')
-rw-r--r--chart2/source/model/template/GL3DBarChartType.cxx166
1 files changed, 0 insertions, 166 deletions
diff --git a/chart2/source/model/template/GL3DBarChartType.cxx b/chart2/source/model/template/GL3DBarChartType.cxx
deleted file mode 100644
index 34f7a516307c..000000000000
--- a/chart2/source/model/template/GL3DBarChartType.cxx
+++ /dev/null
@@ -1,166 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#include "GL3DBarChartType.hxx"
-#include <servicenames_charttypes.hxx>
-#include <PropertyHelper.hxx>
-#include <unonames.hxx>
-#include <cppuhelper/supportsservice.hxx>
-
-#include <com/sun/star/beans/Property.hpp>
-#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-
-using namespace com::sun::star;
-
-namespace chart {
-
-namespace {
-
-enum
-{
- PROP_GL3DCHARTTYPE_ROUNDED_EDGE
-};
-
-struct DefaultsInitializer
-{
- tPropertyValueMap* operator()()
- {
- static tPropertyValueMap aStaticDefaults;
-
- if (aStaticDefaults.empty())
- addDefaults(aStaticDefaults);
-
- return &aStaticDefaults;
- }
-private:
-
- static void addDefaults( tPropertyValueMap & rOutMap )
- {
- PropertyHelper::setPropertyValueDefault(rOutMap, PROP_GL3DCHARTTYPE_ROUNDED_EDGE, false);
- }
-};
-
-struct Defaults : public rtl::StaticAggregate<tPropertyValueMap, DefaultsInitializer> {};
-
-struct InfoHelperInitializer
-{
- cppu::OPropertyArrayHelper* operator()()
- {
- static cppu::OPropertyArrayHelper aHelper(getProperties());
- return &aHelper;
- }
-
- static uno::Sequence<beans::Property> getProperties()
- {
- uno::Sequence<beans::Property> aRet(1);
-
- aRet[0] = beans::Property(
- CHART_UNONAME_ROUNDED_EDGE,
- PROP_GL3DCHARTTYPE_ROUNDED_EDGE,
- cppu::UnoType<bool>::get(),
- beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEDEFAULT);
-
- return aRet;
- }
-};
-
-struct InfoHelper : public rtl::StaticAggregate<cppu::OPropertyArrayHelper, InfoHelperInitializer> {};
-
-struct ChartTypeInfoInitializer
-{
- uno::Reference<beans::XPropertySetInfo>* operator()()
- {
- static uno::Reference<beans::XPropertySetInfo> xPropertySetInfo;
-
- if (!xPropertySetInfo.is())
- xPropertySetInfo = cppu::OPropertySetHelper::createPropertySetInfo(*InfoHelper::get());
-
- return &xPropertySetInfo;
- }
-};
-
-struct ChartTypeInfo : public rtl::StaticAggregate<uno::Reference<beans::XPropertySetInfo>, ChartTypeInfoInitializer> {};
-
-}
-
-GL3DBarChartType::GL3DBarChartType()
-{
-}
-
-GL3DBarChartType::GL3DBarChartType( const GL3DBarChartType& rOther ) :
- ChartType(rOther)
-{
-}
-
-GL3DBarChartType::~GL3DBarChartType() {}
-
-OUString SAL_CALL GL3DBarChartType::getImplementationName()
-{
- return OUString("com.sun.star.comp.chart.GL3DBarChartType");
-}
-
-sal_Bool SAL_CALL GL3DBarChartType::supportsService( const OUString& rServiceName )
-{
- return cppu::supportsService(this, rServiceName);
-}
-
-css::uno::Sequence< OUString > SAL_CALL GL3DBarChartType::getSupportedServiceNames()
-{
- return {
- CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR,
- "com.sun.star.chart2.ChartType",
- "com.sun.star.beans.PropertySet" };
-}
-
-OUString SAL_CALL GL3DBarChartType::getChartType()
-{
- return OUString(CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR);
-}
-
-uno::Sequence<OUString> GL3DBarChartType::getSupportedPropertyRoles()
-{
- uno::Sequence< OUString > aPropRoles { "FillColor" };
-
- return aPropRoles;
-}
-
-css::uno::Reference<css::util::XCloneable>
-GL3DBarChartType::createClone()
-{
- return uno::Reference<util::XCloneable>(new GL3DBarChartType(*this));
-}
-
-css::uno::Any GL3DBarChartType::GetDefaultValue( sal_Int32 nHandle ) const
-{
- const tPropertyValueMap& rDefaults = *Defaults::get();
- tPropertyValueMap::const_iterator it = rDefaults.find(nHandle);
- return it == rDefaults.end() ? uno::Any() : it->second;
-}
-
-cppu::IPropertyArrayHelper& GL3DBarChartType::getInfoHelper()
-{
- return *InfoHelper::get();
-}
-
-css::uno::Reference<css::beans::XPropertySetInfo> GL3DBarChartType::getPropertySetInfo()
-{
- return *ChartTypeInfo::get();
-}
-
-}
-
-extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_GL3DBarChartType_get_implementation(css::uno::XComponentContext * /*context*/,
- css::uno::Sequence<css::uno::Any> const &)
-{
- return cppu::acquire(new ::chart::GL3DBarChartType);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */