From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- chart2/inc/ChartModel.hxx | 486 ++++++++++++++++++++++++ chart2/inc/ChartTypeManager.hxx | 74 ++++ chart2/inc/ChartView.hxx | 264 +++++++++++++ chart2/inc/SpecialCharacters.hxx | 18 + chart2/inc/bitmaps.hlst | 132 +++++++ chart2/inc/chart.hrc | 24 ++ chart2/inc/pch/precompiled_chartcontroller.cxx | 12 + chart2/inc/pch/precompiled_chartcontroller.hxx | 497 +++++++++++++++++++++++++ chart2/inc/pch/precompiled_chartcore.cxx | 12 + chart2/inc/pch/precompiled_chartcore.hxx | 334 +++++++++++++++++ chart2/inc/strings.hrc | 197 ++++++++++ chart2/inc/unonames.hxx | 38 ++ 12 files changed, 2088 insertions(+) create mode 100644 chart2/inc/ChartModel.hxx create mode 100644 chart2/inc/ChartTypeManager.hxx create mode 100644 chart2/inc/ChartView.hxx create mode 100644 chart2/inc/SpecialCharacters.hxx create mode 100644 chart2/inc/bitmaps.hlst create mode 100644 chart2/inc/chart.hrc create mode 100644 chart2/inc/pch/precompiled_chartcontroller.cxx create mode 100644 chart2/inc/pch/precompiled_chartcontroller.hxx create mode 100644 chart2/inc/pch/precompiled_chartcore.cxx create mode 100644 chart2/inc/pch/precompiled_chartcore.hxx create mode 100644 chart2/inc/strings.hrc create mode 100644 chart2/inc/unonames.hxx (limited to 'chart2/inc') diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx new file mode 100644 index 000000000..b575a856d --- /dev/null +++ b/chart2/inc/ChartModel.hxx @@ -0,0 +1,486 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#pragma once + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// public API +#include + +#include +#include + +#include +#include + +#include +#include +#include +#include +#include +#include + +#include + +namespace com::sun::star::awt { class XRequestCallback; } +namespace com::sun::star::chart2::data { class XDataProvider; } +namespace com::sun::star::document { class XFilter; } +namespace com::sun::star::embed { class XStorage; } +namespace com::sun::star::frame { class XModel; } +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::uno { class XAggregation; } + +class SvNumberFormatter; +class SvNumberFormatsSupplierObj; + +namespace chart +{ +class Diagram; +class ChartTypeManager; +class ChartTypeTemplate; +class InternalDataProvider; +class NameContainer; +class PageBackground; + +namespace impl +{ + +// Note: needed for queryInterface (if it calls the base-class implementation) +typedef cppu::WeakImplHelper< +// css::frame::XModel //comprehends XComponent (required interface), base of XChartDocument + css::util::XCloseable //comprehends XCloseBroadcaster + ,css::frame::XStorable2 //(extension of XStorable) + ,css::util::XModifiable //comprehends XModifyBroadcaster (required interface) + ,css::lang::XServiceInfo + ,css::lang::XInitialization + ,css::chart2::XChartDocument // derived from XModel + ,css::chart2::data::XDataReceiver // public API + ,css::chart2::XTitled + ,css::frame::XLoadable + ,css::util::XCloneable + ,css::embed::XVisualObject + ,css::lang::XMultiServiceFactory + ,css::document::XStorageBasedDocument + ,css::lang::XUnoTunnel + ,css::util::XNumberFormatsSupplier + ,css::container::XChild + ,css::util::XModifyListener + ,css::datatransfer::XTransferable + ,css::document::XDocumentPropertiesSupplier + ,css::chart2::data::XDataSource + ,css::document::XUndoManagerSupplier + ,css::util::XUpdatable + ,css::qa::XDumper + > + ChartModel_Base; +} + +class UndoManager; +class ChartView; + +class OOO_DLLPUBLIC_CHARTTOOLS ChartModel final : public impl::ChartModel_Base, public sfx2::XmlDump +{ + +private: + mutable ::apphelper::CloseableLifeTimeManager m_aLifeTimeManager; + + mutable ::osl::Mutex m_aModelMutex; + bool volatile m_bReadOnly; + bool volatile m_bModified; + sal_Int32 m_nInLoad; + bool volatile m_bUpdateNotificationsPending; + + bool mbTimeBased; + + mutable rtl::Reference mxChartView; + + OUString m_aResource; + css::uno::Sequence< css::beans::PropertyValue > m_aMediaDescriptor; + css::uno::Reference< css::document::XDocumentProperties > m_xDocumentProperties; + ::rtl::Reference< UndoManager > m_pUndoManager; + + ::comphelper::OInterfaceContainerHelper2 m_aControllers; + css::uno::Reference< css::frame::XController > m_xCurrentController; + sal_uInt16 m_nControllerLockCount; + + css::uno::Reference< css::uno::XComponentContext > m_xContext; + css::uno::Reference< css::uno::XAggregation > m_xOldModelAgg; + + css::uno::Reference< css::embed::XStorage > m_xStorage; + //the content of this should be always synchronized with the current m_xViewWindow size. The variable is necessary to hold the information as long as no view window exists. + css::awt::Size m_aVisualAreaSize; + css::uno::Reference< css::frame::XModel > m_xParent; + css::uno::Reference< css::chart2::data::XRangeHighlighter > m_xRangeHighlighter; + css::uno::Reference m_xPopupRequest; + std::vector< GraphicObject > m_aGraphicObjectVector; + + css::uno::Reference< css::chart2::data::XDataProvider > m_xDataProvider; + /** is only valid if m_xDataProvider is set. If m_xDataProvider is set to an + external data provider this reference must be set to 0 + */ + rtl::Reference< InternalDataProvider > m_xInternalDataProvider; + + rtl::Reference< SvNumberFormatsSupplierObj > m_xOwnNumberFormatsSupplier; + css::uno::Reference< css::util::XNumberFormatsSupplier > + m_xNumberFormatsSupplier; + std::unique_ptr< SvNumberFormatter > m_apSvNumberFormatter; // #i113784# avoid memory leak + + rtl::Reference< ::chart::ChartTypeManager > + m_xChartTypeManager; + + // Diagram Access + rtl::Reference< ::chart::Diagram > m_xDiagram; + + css::uno::Reference< css::chart2::XTitle > + m_xTitle; + + rtl::Reference< ::chart::PageBackground > m_xPageBackground; + + rtl::Reference< ::chart::NameContainer > m_xXMLNamespaceMap; + +private: + //private methods + + OUString impl_g_getLocation(); + + bool + impl_isControllerConnected( const css::uno::Reference< com::sun::star::frame::XController >& xController ); + + /// @throws css::uno::RuntimeException + css::uno::Reference< css::frame::XController > + impl_getCurrentController(); + + /// @throws css::uno::RuntimeException + void + impl_notifyModifiedListeners(); + /// @throws css::uno::RuntimeException + void + impl_notifyCloseListeners(); + /// @throws css::uno::RuntimeException + void + impl_notifyStorageChangeListeners(); + + void impl_store( + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor, + const css::uno::Reference< css::embed::XStorage > & xStorage ); + void impl_load( + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor, + const css::uno::Reference< css::embed::XStorage >& xStorage ); + void impl_loadGraphics( + const css::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ); + css::uno::Reference< css::document::XFilter > + impl_createFilter( const css::uno::Sequence< css::beans::PropertyValue > & rMediaDescriptor ); + + rtl::Reference< ::chart::ChartTypeTemplate > impl_createDefaultChartTypeTemplate(); + css::uno::Reference< css::chart2::data::XDataSource > impl_createDefaultData(); + + void impl_adjustAdditionalShapesPositionAndSize( + const css::awt::Size& aVisualAreaSize ); + + void insertDefaultChart(); + +public: + ChartModel() = delete; + ChartModel(css::uno::Reference< css::uno::XComponentContext > const & xContext); + explicit ChartModel( const ChartModel & rOther ); + virtual ~ChartModel() override; + + // css::lang::XServiceInfo + + virtual OUString SAL_CALL getImplementationName() override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + + // css::lang::XInitialization + virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; + + // css::frame::XModel (required interface) + + virtual sal_Bool SAL_CALL + attachResource( const OUString& rURL, + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + + virtual OUString SAL_CALL + getURL() override; + + virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL + getArgs() override; + + virtual void SAL_CALL + connectController( const css::uno::Reference< css::frame::XController >& xController ) override; + + virtual void SAL_CALL + disconnectController( const css::uno::Reference< css::frame::XController >& xController ) override; + + virtual void SAL_CALL + lockControllers() override; + + virtual void SAL_CALL + unlockControllers() override; + + virtual sal_Bool SAL_CALL + hasControllersLocked() override; + + virtual css::uno::Reference< css::frame::XController > SAL_CALL + getCurrentController() override; + + virtual void SAL_CALL + setCurrentController( const css::uno::Reference< css::frame::XController >& xController ) override; + + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL + getCurrentSelection() override; + + // css::lang::XComponent (base of XModel) + virtual void SAL_CALL + dispose() override; + + virtual void SAL_CALL + addEventListener( const css::uno::Reference< css::lang::XEventListener > & xListener ) override; + + virtual void SAL_CALL + removeEventListener( const css::uno::Reference< css::lang::XEventListener > & xListener ) override; + + // css::util::XCloseable + virtual void SAL_CALL + close( sal_Bool bDeliverOwnership ) override; + + // css::util::XCloseBroadcaster (base of XCloseable) + virtual void SAL_CALL + addCloseListener( const css::uno::Reference< css::util::XCloseListener > & xListener ) override; + + virtual void SAL_CALL + removeCloseListener( const css::uno::Reference< css::util::XCloseListener > & xListener ) override; + + // css::frame::XStorable2 (extension of XStorable) + virtual void SAL_CALL storeSelf( + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + + // css::frame::XStorable (required interface) + virtual sal_Bool SAL_CALL + hasLocation() override; + + virtual OUString SAL_CALL + getLocation() override; + + virtual sal_Bool SAL_CALL + isReadonly() override; + + virtual void SAL_CALL + store() override; + + virtual void SAL_CALL + storeAsURL( const OUString& rURL, + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + + virtual void SAL_CALL + storeToURL( const OUString& rURL, + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + + // css::util::XModifiable (required interface) + virtual sal_Bool SAL_CALL + isModified() override; + + virtual void SAL_CALL + setModified( sal_Bool bModified ) override; + + // css::util::XModifyBroadcaster (base of XModifiable) + virtual void SAL_CALL + addModifyListener( const css::uno::Reference< css::util::XModifyListener >& xListener ) override; + + virtual void SAL_CALL + removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& xListener ) override; + + // ____ XModifyListener ____ + virtual void SAL_CALL modified( + const css::lang::EventObject& aEvent ) override; + + // ____ XEventListener (base of XModifyListener) ____ + virtual void SAL_CALL disposing( + const css::lang::EventObject& Source ) override; + + // ____ datatransferable::XTransferable ____ + virtual css::uno::Any SAL_CALL getTransferData( + const css::datatransfer::DataFlavor& aFlavor ) override; + virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() override; + virtual sal_Bool SAL_CALL isDataFlavorSupported( + const css::datatransfer::DataFlavor& aFlavor ) override; + + // lang::XTypeProvider (override method of WeakImplHelper) + virtual css::uno::Sequence< css::uno::Type > SAL_CALL + getTypes() override; + + // ____ document::XDocumentPropertiesSupplier ____ + virtual css::uno::Reference< css::document::XDocumentProperties > SAL_CALL + getDocumentProperties( ) override; + + // ____ document::XUndoManagerSupplier ____ + virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL + getUndoManager( ) override; + + // css::chart2::XChartDocument + virtual css::uno::Reference< css::chart2::XDiagram > SAL_CALL + getFirstDiagram() override; + virtual void SAL_CALL setFirstDiagram( + const css::uno::Reference< css::chart2::XDiagram >& xDiagram ) override; + virtual void SAL_CALL + createInternalDataProvider( sal_Bool bCloneExistingData ) override; + virtual sal_Bool SAL_CALL hasInternalDataProvider() override; + virtual css::uno::Reference< css::chart2::data::XDataProvider > SAL_CALL + getDataProvider() override; + virtual void SAL_CALL + setChartTypeManager( const css::uno::Reference< css::chart2::XChartTypeManager >& xNewManager ) override; + virtual css::uno::Reference< css::chart2::XChartTypeManager > SAL_CALL + getChartTypeManager() override; + virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL + getPageBackground() override; + + virtual void SAL_CALL createDefaultChart() override; + + // ____ XDataReceiver (public API) ____ + virtual void SAL_CALL + attachDataProvider( const css::uno::Reference< css::chart2::data::XDataProvider >& xProvider ) override; + virtual void SAL_CALL setArguments( + const css::uno::Sequence< css::beans::PropertyValue >& aArguments ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getUsedRangeRepresentations() override; + virtual css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL getUsedData() override; + virtual void SAL_CALL attachNumberFormatsSupplier( const css::uno::Reference< + css::util::XNumberFormatsSupplier >& xSupplier ) override; + virtual css::uno::Reference< css::chart2::data::XRangeHighlighter > SAL_CALL getRangeHighlighter() override; + virtual css::uno::Reference SAL_CALL getPopupRequest() override; + + // ____ XTitled ____ + virtual css::uno::Reference< css::chart2::XTitle > SAL_CALL getTitleObject() override; + virtual void SAL_CALL setTitleObject( const css::uno::Reference< css::chart2::XTitle >& Title ) override; + + // ____ XInterface (for old API wrapper) ____ + virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override; + + // ____ XLoadable ____ + virtual void SAL_CALL initNew() override; + virtual void SAL_CALL load( const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + + // ____ XCloneable ____ + virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override; + + // ____ XVisualObject ____ + virtual void SAL_CALL setVisualAreaSize( + ::sal_Int64 nAspect, + const css::awt::Size& aSize ) override; + virtual css::awt::Size SAL_CALL getVisualAreaSize( + ::sal_Int64 nAspect ) override; + virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( + ::sal_Int64 nAspect ) override; + virtual ::sal_Int32 SAL_CALL getMapUnit( + ::sal_Int64 nAspect ) override; + + // ____ XMultiServiceFactory ____ + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL + createInstance( const OUString& aServiceSpecifier ) override; + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL + createInstanceWithArguments( const OUString& ServiceSpecifier + , const css::uno::Sequence< css::uno::Any >& Arguments ) override; + virtual css::uno::Sequence< OUString > SAL_CALL + getAvailableServiceNames() override; + + // ____ XStorageBasedDocument ____ + virtual void SAL_CALL loadFromStorage( + const css::uno::Reference< css::embed::XStorage >& xStorage, + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + virtual void SAL_CALL storeToStorage( + const css::uno::Reference< css::embed::XStorage >& xStorage, + const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor ) override; + virtual void SAL_CALL switchToStorage( + const css::uno::Reference< css::embed::XStorage >& xStorage ) override; + virtual css::uno::Reference< css::embed::XStorage > SAL_CALL getDocumentStorage() override; + virtual void SAL_CALL addStorageChangeListener( + const css::uno::Reference< css::document::XStorageChangeListener >& xListener ) override; + virtual void SAL_CALL removeStorageChangeListener( + const css::uno::Reference< css::document::XStorageChangeListener >& xListener ) override; + + // for SvNumberFormatsSupplierObj + // ____ XUnoTunnel ___ + virtual ::sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< ::sal_Int8 >& aIdentifier ) override; + + // ____ XNumberFormatsSupplier ____ + virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getNumberFormatSettings() override; + virtual css::uno::Reference< css::util::XNumberFormats > SAL_CALL getNumberFormats() override; + + // ____ XChild ____ + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override; + virtual void SAL_CALL setParent( + const css::uno::Reference< css::uno::XInterface >& Parent ) override; + + // ____ XDataSource ____ allows access to the currently used data and data ranges + virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() override; + + // XUpdatable + virtual void SAL_CALL update() override; + + // XDumper + virtual OUString SAL_CALL dump() override; + + // normal methods + css::uno::Reference< css::util::XNumberFormatsSupplier > const & + getNumberFormatsSupplier(); + + ChartView* getChartView() const; + + const rtl::Reference< ::chart::Diagram > & getFirstChartDiagram() { return m_xDiagram; } + + bool isTimeBased() const { return mbTimeBased;} + + void setTimeBasedRange(sal_Int32 nStart, sal_Int32 nEnd); + + bool isDataFromSpreadsheet(); + + bool isDataFromPivotTable() const; + + void removeDataProviders(); + + const rtl::Reference< ::chart::ChartTypeManager > & getTypeManager() const { return m_xChartTypeManager; } + + /// See sfx2::XmlDump::dumpAsXml(). + void dumpAsXml(xmlTextWriterPtr pWriter) const override; + +private: + sal_Int32 mnStart; + sal_Int32 mnEnd; +}; + +} // namespace chart + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/ChartTypeManager.hxx b/chart2/inc/ChartTypeManager.hxx new file mode 100644 index 000000000..0ed5b3ef4 --- /dev/null +++ b/chart2/inc/ChartTypeManager.hxx @@ -0,0 +1,74 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#pragma once + +#include +#include +#include +#include +#include +#include + +namespace com::sun::star::uno { class XComponentContext; } + +namespace chart +{ +class ChartTypeTemplate; + +class OOO_DLLPUBLIC_CHARTTOOLS ChartTypeManager final : + public ::cppu::WeakImplHelper< + css::lang::XServiceInfo, + css::lang::XMultiServiceFactory, + css::chart2::XChartTypeManager > +{ +public: + explicit ChartTypeManager( + css::uno::Reference< css::uno::XComponentContext > const & xContext ); + virtual ~ChartTypeManager() override; + + virtual OUString SAL_CALL + getImplementationName() + override; + virtual sal_Bool SAL_CALL + supportsService( const OUString& ServiceName ) + override; + virtual css::uno::Sequence< OUString > SAL_CALL + getSupportedServiceNames() + override; + + // ____ XMultiServiceFactory ____ + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override; + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( + const OUString& ServiceSpecifier, + const css::uno::Sequence< css::uno::Any >& Arguments ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override; + + // ____ XChartTypeManager ____ + // currently empty + + rtl::Reference< ::chart::ChartTypeTemplate > createTemplate( const OUString& aServiceSpecifier ); + +private: + css::uno::Reference< css::uno::XComponentContext > + m_xContext; +}; + +} // namespace chart + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/ChartView.hxx b/chart2/inc/ChartView.hxx new file mode 100644 index 000000000..62a8d6744 --- /dev/null +++ b/chart2/inc/ChartView.hxx @@ -0,0 +1,264 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#pragma once + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include + +namespace com::sun::star::drawing { class XDrawPage; } +namespace com::sun::star::drawing { class XShapes; } +namespace com::sun::star::io { class XOutputStream; } +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::util { class XUpdatable2; } + +class SdrPage; + +namespace chart { + +class VCoordinateSystem; +class DrawModelWrapper; +class VDataSeries; +struct CreateShapeParam2D; + +struct TimeBasedInfo +{ + TimeBasedInfo(): + bTimeBased(false), + nFrame(0) {} + + bool bTimeBased; + size_t nFrame; + Timer maTimer { "chart2 TimeBasedInfo" }; + + // only valid when we are in the time based mode + std::vector< std::vector< VDataSeries* > > m_aDataSeriesList; +}; + +/** + * The ChartView is responsible to manage the generation of Drawing Objects + * for visualization on a given OutputDevice. The ChartModel is responsible + * to notify changes to the view. The view than changes to state dirty. The + * view can be updated with call 'update'. + * + * The View is not responsible to handle single user events (that is instead + * done by the ChartWindow). + */ +class OOO_DLLPUBLIC_CHARTVIEW ChartView final : public ::cppu::WeakImplHelper< + css::lang::XInitialization + ,css::lang::XServiceInfo + ,css::datatransfer::XTransferable + ,css::lang::XUnoTunnel + ,css::util::XModifyListener + ,css::util::XModeChangeBroadcaster + ,css::util::XUpdatable2 + ,css::beans::XPropertySet + ,css::lang::XMultiServiceFactory + ,css::qa::XDumper + > + , public ExplicitValueProvider + , private SfxListener + , public sfx2::XmlDump +{ +private: + void init(); + +public: + ChartView() = delete; + ChartView(css::uno::Reference< css::uno::XComponentContext > const & xContext, + ChartModel& rModel); + + virtual ~ChartView() override; + + // ___lang::XServiceInfo___ + virtual OUString SAL_CALL getImplementationName() override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + + // ___lang::XInitialization___ + virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; + + // ___ExplicitValueProvider___ + virtual bool getExplicitValuesForAxis( + css::uno::Reference< css::chart2::XAxis > xAxis + , ExplicitScaleData& rExplicitScale + , ExplicitIncrementData& rExplicitIncrement ) override; + virtual rtl::Reference< SvxShape > + getShapeForCID( const OUString& rObjectCID ) override; + + virtual css::awt::Rectangle getRectangleOfObject( const OUString& rObjectCID, bool bSnapRect=false ) override; + + virtual css::awt::Rectangle getDiagramRectangleExcludingAxes() override; + + std::shared_ptr< DrawModelWrapper > getDrawModelWrapper() override; + + // ___XTransferable___ + virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) override; + virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( ) override; + virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) override; + + // css::util::XEventListener (base of XCloseListener and XModifyListener) + virtual void SAL_CALL + disposing( const css::lang::EventObject& Source ) override; + + // css::util::XModifyListener + virtual void SAL_CALL modified( + const css::lang::EventObject& aEvent ) override; + + //SfxListener + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; + + // css::util::XModeChangeBroadcaster + + virtual void SAL_CALL addModeChangeListener( const css::uno::Reference< css::util::XModeChangeListener >& _rxListener ) override; + virtual void SAL_CALL removeModeChangeListener( const css::uno::Reference< css::util::XModeChangeListener >& _rxListener ) override; + virtual void SAL_CALL addModeChangeApproveListener( const css::uno::Reference< css::util::XModeChangeApproveListener >& _rxListener ) override; + virtual void SAL_CALL removeModeChangeApproveListener( const css::uno::Reference< css::util::XModeChangeApproveListener >& _rxListener ) override; + + // css::util::XUpdatable + virtual void SAL_CALL update() override; + + // util::XUpdatable2 + virtual void SAL_CALL updateSoft() override; + virtual void SAL_CALL updateHard() override; + + // css::beans::XPropertySet + virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override; + virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; + virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; + virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override; + virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override; + virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; + virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; + + // css::lang::XMultiServiceFactory + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override; + virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( + const OUString& ServiceSpecifier, const css::uno::Sequence< css::uno::Any >& Arguments ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override; + + // for ExplicitValueProvider + // ____ XUnoTunnel ___ + virtual ::sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< ::sal_Int8 >& aIdentifier ) override; + + // XDumper + virtual OUString SAL_CALL dump() override; + + void setViewDirty(); + + /// See sfx2::XmlDump::dumpAsXml(). + void dumpAsXml(xmlTextWriterPtr pWriter) const override; + +private: //methods + void createShapes(); + void createShapes2D( const css::awt::Size& rPageSize ); + bool createAxisTitleShapes2D( CreateShapeParam2D& rParam, const css::awt::Size& rPageSize, bool bHasRelativeSize ); + void getMetaFile( const css::uno::Reference< css::io::XOutputStream >& xOutStream + , bool bUseHighContrast ); + SdrPage* getSdrPage(); + + void impl_deleteCoordinateSystems(); + void impl_notifyModeChangeListener( const OUString& rNewMode ); + + void impl_refreshAddIn(); + + void impl_updateView( bool bCheckLockedCtrler = true ); + + css::awt::Rectangle impl_createDiagramAndContent( const CreateShapeParam2D& rParam, const css::awt::Size& rPageSize ); + + DECL_LINK( UpdateTimeBased, Timer*, void ); + +private: //member + ::osl::Mutex m_aMutex; + + css::uno::Reference< css::uno::XComponentContext> + m_xCC; + + chart::ChartModel& mrChartModel; + + css::uno::Reference< css::lang::XMultiServiceFactory> + m_xShapeFactory; + rtl::Reference + m_xDrawPage; + rtl::Reference + mxRootShape; + + css::uno::Reference< css::uno::XInterface > m_xDashTable; + css::uno::Reference< css::uno::XInterface > m_xGradientTable; + css::uno::Reference< css::uno::XInterface > m_xHatchTable; + css::uno::Reference< css::uno::XInterface > m_xBitmapTable; + css::uno::Reference< css::uno::XInterface > m_xTransGradientTable; + css::uno::Reference< css::uno::XInterface > m_xMarkerTable; + + std::shared_ptr< DrawModelWrapper > m_pDrawModelWrapper; + + std::vector< std::unique_ptr > m_aVCooSysList; + + comphelper::OMultiTypeInterfaceContainerHelper2 + m_aListenerContainer; + + bool m_bViewDirty; //states whether the view needs to be rebuild + bool m_bInViewUpdate; + bool m_bViewUpdatePending; + bool m_bRefreshAddIn; + + //better performance for big data + css::awt::Size m_aPageResolution; + bool m_bPointsWereSkipped; + + //#i75867# poor quality of ole's alternative view with 3D scenes and zoomfactors besides 100% + sal_Int32 m_nScaleXNumerator; + sal_Int32 m_nScaleXDenominator; + sal_Int32 m_nScaleYNumerator; + sal_Int32 m_nScaleYDenominator; + + bool m_bSdrViewIsInEditMode; + + css::awt::Rectangle m_aResultingDiagramRectangleExcludingAxes; + + TimeBasedInfo maTimeBased; + osl::Mutex maTimeMutex; +}; + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/SpecialCharacters.hxx b/chart2/inc/SpecialCharacters.hxx new file mode 100644 index 000000000..26d2b1187 --- /dev/null +++ b/chart2/inc/SpecialCharacters.hxx @@ -0,0 +1,18 @@ +/* -*- 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/. + */ + +#pragma once + +#include + +const sal_Unicode aMinusSign = 0x2212; +const sal_Unicode aSuperscriptFigures[10] + = { 0x2070, 0x00B9, 0x00B2, 0x00B3, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079 }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/bitmaps.hlst b/chart2/inc/bitmaps.hlst new file mode 100644 index 000000000..0f4512e8b --- /dev/null +++ b/chart2/inc/bitmaps.hlst @@ -0,0 +1,132 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * 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/. + */ + +#pragma once + +inline constexpr OUStringLiteral BMP_TYPE_COLUMN = u"chart2/res/typecolumn_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_BAR = u"chart2/res/typebar_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_PIE = u"chart2/res/typepie_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_LINE = u"chart2/res/typepointline_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_XY = u"chart2/res/typexy_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_AREA = u"chart2/res/typearea_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_NET = u"chart2/res/typenet_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_STOCK = u"chart2/res/typestock_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_COLUMN_LINE = u"chart2/res/typecolumnline_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_BUBBLE = u"chart2/res/typebubble_16.png"; +inline constexpr OUStringLiteral BMP_BUBBLE_1 = u"chart2/res/bubble_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_2D = u"chart2/res/areas_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_2D_1 = u"chart2/res/areaspiled_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_2D_3 = u"chart2/res/areasfull_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_3D = u"chart2/res/areaspiled3d_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_3D_1 = u"chart2/res/areas3d_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_3D_2 = u"chart2/res/areasfull3d_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_2D_1 = u"chart2/res/bar_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_2D_2 = u"chart2/res/barstack_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_2D_3 = u"chart2/res/barpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D = u"chart2/res/bar3ddeep_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D_1 = u"chart2/res/bar3d_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D_2 = u"chart2/res/barstack3d_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D_3 = u"chart2/res/barpercent3d_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_2D = u"chart2/res/pie_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_2D_EXPLODED = u"chart2/res/pieexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_3D = u"chart2/res/pie3d_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_3D_EXPLODED = u"chart2/res/pie3dexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_2D = u"chart2/res/donut_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_2D_EXPLODED = u"chart2/res/donutexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_3D = u"chart2/res/donut3d_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_3D_EXPLODED = u"chart2/res/donut3dexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_2D_1 = u"chart2/res/columns_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_2D_2 = u"chart2/res/columnstack_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_2D_3 = u"chart2/res/columnpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMN_LINE = u"chart2/res/columnline_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMN_LINE_STACKED = u"chart2/res/columnstackline_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D = u"chart2/res/columns3ddeep_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D_1 = u"chart2/res/columns3d_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D_2 = u"chart2/res/columnstack3d_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D_3 = u"chart2/res/columnpercent3d_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_1 = u"chart2/res/conehori_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_2 = u"chart2/res/conehoristack_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_3 = u"chart2/res/conehoripercent_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_4 = u"chart2/res/conehorideep_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_1 = u"chart2/res/cone_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_2 = u"chart2/res/conestack_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_3 = u"chart2/res/conepercent_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_4 = u"chart2/res/conedeep_52x60.png"; +inline constexpr OUStringLiteral BMP_POINTS_XVALUES = u"chart2/res/valueaxisdirectpoints_52x60.png"; +inline constexpr OUStringLiteral BMP_POINTS_XCATEGORY = u"chart2/res/nostackdirectpoints_52x60.png"; +inline constexpr OUStringLiteral BMP_POINTS_STACKED = u"chart2/res/stackdirectpoints_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XVALUES = u"chart2/res/valueaxisdirectboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XVALUES = u"chart2/res/valueaxisdirectlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XVALUES = u"chart2/res/valueaxisdirect3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XCATEGORY = u"chart2/res/nostackdirectboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XCATEGORY = u"chart2/res/nostackdirectlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XCATEGORY = u"chart2/res/nostackdirect3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_STACKED = u"chart2/res/stackdirectboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_STACKED = u"chart2/res/stackdirectlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_STACKED = u"chart2/res/stackdirect3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XVALUES_SMOOTH = u"chart2/res/valueaxissmoothboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XVALUES_SMOOTH = u"chart2/res/valueaxissmoothlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XVALUES_SMOOTH = u"chart2/res/valueaxissmooth3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XCATEGORY_SMOOTH = u"chart2/res/nostacksmoothboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XCATEGORY_SMOOTH = u"chart2/res/nostacksmoothlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XCATEGORY_SMOOTH = u"chart2/res/nostacksmooth3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_STACKED_SMOOTH = u"chart2/res/stacksmoothboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_STACKED_SMOOTH = u"chart2/res/stacksmoothlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_STACKED_SMOOTH = u"chart2/res/stacksmooth3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XVALUES_STEPPED = u"chart2/res/valueaxissteppedboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XVALUES_STEPPED = u"chart2/res/valueaxissteppedlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XVALUES_STEPPED = u"chart2/res/valueaxisstepped3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XCATEGORY_STEPPED = u"chart2/res/nostacksteppedboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XCATEGORY_STEPPED = u"chart2/res/nostacksteppedlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XCATEGORY_STEPPED = u"chart2/res/nostackstepped3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_STACKED_STEPPED = u"chart2/res/stacksteppedboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_STACKED_STEPPED = u"chart2/res/stacksteppedlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_STACKED_STEPPED = u"chart2/res/stackstepped3d_52x60.png"; +inline constexpr OUStringLiteral BMP_NET = u"chart2/res/net_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_STACK = u"chart2/res/netstack_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_SYMB = u"chart2/res/netpoint_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_SYMB_STACK = u"chart2/res/netpointstack_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_LINESYMB = u"chart2/res/netlinepoint_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_LINESYMB_STACK = u"chart2/res/netlinepointstack_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_FILL = u"chart2/res/netfill_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_FILL_STACK = u"chart2/res/netstackfill_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_1 = u"chart2/res/pyramindhori_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_2 = u"chart2/res/pyramindhoristack_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_3 = u"chart2/res/pyramindhoripercent_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_4 = u"chart2/res/pyramindhorideep_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_1 = u"chart2/res/pyramind_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_2 = u"chart2/res/pyramindstack_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_3 = u"chart2/res/pyramindpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_4 = u"chart2/res/pyraminddeep_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_1 = u"chart2/res/cylinderhori_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_2 = u"chart2/res/cylinderhoristack_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_3 = u"chart2/res/cylinderhoriprocent_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_4 = u"chart2/res/cylinderhorideep_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_1 = u"chart2/res/cylinder_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_2 = u"chart2/res/cylinderstack_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_3 = u"chart2/res/cylinderpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_4 = u"chart2/res/cylinderdeep_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_1 = u"chart2/res/stock_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_2 = u"chart2/res/stockblock_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_3 = u"chart2/res/stockcolumns_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_4 = u"chart2/res/stockcolumnsattach_52x60.png"; +inline constexpr OUStringLiteral BMP_INDICATE_BOTH_VERTI = u"chart2/res/errorbothverti_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_DOWN = u"chart2/res/errordown_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_UP = u"chart2/res/errorup_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_BOTH_HORI = u"chart2/res/errorbothhori_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_RIGHT = u"chart2/res/errorright_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_LEFT = u"chart2/res/errorleft_30.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_LINEAR = u"chart2/res/reglin.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_LOG = u"chart2/res/reglog.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_EXP = u"chart2/res/regexp.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_POWER = u"chart2/res/regpow.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_POLYNOMIAL = u"chart2/res/regpoly.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_MOVING_AVERAGE = u"chart2/res/regavg.png"; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/chart2/inc/chart.hrc b/chart2/inc/chart.hrc new file mode 100644 index 000000000..b1e0024fb --- /dev/null +++ b/chart2/inc/chart.hrc @@ -0,0 +1,24 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * 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/. + */ + +#pragma once + +#include + +#define NC_(Context, String) TranslateId(Context, reinterpret_cast(u8##String)) + +const TranslateId CHART_TYPE[] = +{ + NC_("tp_ChartType|liststore1", "Bar"), + NC_("tp_ChartType|liststore1", "Cylinder"), + NC_("tp_ChartType|liststore1", "Cone"), + NC_("tp_ChartType|liststore1", "Pyramid") +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/chart2/inc/pch/precompiled_chartcontroller.cxx b/chart2/inc/pch/precompiled_chartcontroller.cxx new file mode 100644 index 000000000..44d47c4a4 --- /dev/null +++ b/chart2/inc/pch/precompiled_chartcontroller.cxx @@ -0,0 +1,12 @@ +/* -*- 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 "precompiled_chartcontroller.hxx" + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/pch/precompiled_chartcontroller.hxx b/chart2/inc/pch/precompiled_chartcontroller.hxx new file mode 100644 index 000000000..2debda6b0 --- /dev/null +++ b/chart2/inc/pch/precompiled_chartcontroller.hxx @@ -0,0 +1,497 @@ +/* -*- 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/. + */ + +/* + This file has been autogenerated by update_pch.sh. It is possible to edit it + manually (such as when an include file has been moved/renamed/removed). All such + manual changes will be rewritten by the next run of update_pch.sh (which presumably + also fixes all possible problems, so it's usually better to use it). + + Generated on 2022-01-26 09:11:52 using: + ./bin/update_pch chart2 chartcontroller --cutoff=6 --exclude:system --include:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./chart2/inc/pch/precompiled_chartcontroller.hxx "make chart2.build" --find-conflicts +*/ + +#include +#if PCH_LEVEL >= 1 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 1 +#if PCH_LEVEL >= 2 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 2 +#if PCH_LEVEL >= 3 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 3 +#if PCH_LEVEL >= 4 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 4 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/pch/precompiled_chartcore.cxx b/chart2/inc/pch/precompiled_chartcore.cxx new file mode 100644 index 000000000..10d8b365b --- /dev/null +++ b/chart2/inc/pch/precompiled_chartcore.cxx @@ -0,0 +1,12 @@ +/* -*- 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 "precompiled_chartcore.hxx" + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/pch/precompiled_chartcore.hxx b/chart2/inc/pch/precompiled_chartcore.hxx new file mode 100644 index 000000000..da4bedf01 --- /dev/null +++ b/chart2/inc/pch/precompiled_chartcore.hxx @@ -0,0 +1,334 @@ +/* -*- 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/. + */ + +/* + This file has been autogenerated by update_pch.sh. It is possible to edit it + manually (such as when an include file has been moved/renamed/removed). All such + manual changes will be rewritten by the next run of update_pch.sh (which presumably + also fixes all possible problems, so it's usually better to use it). + + Generated on 2021-09-12 11:51:16 using: + ./bin/update_pch chart2 chartcore --cutoff=3 --exclude:system --exclude:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./chart2/inc/pch/precompiled_chartcore.hxx "make chart2.build" --find-conflicts +*/ + +#include +#if PCH_LEVEL >= 1 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 1 +#if PCH_LEVEL >= 2 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 2 +#if PCH_LEVEL >= 3 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 3 +#if PCH_LEVEL >= 4 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 4 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/strings.hrc b/chart2/inc/strings.hrc new file mode 100644 index 000000000..ab6ca48c8 --- /dev/null +++ b/chart2/inc/strings.hrc @@ -0,0 +1,197 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#ifndef CHART_STRINGS_HRC +#define CHART_STRINGS_HRC + +#define NC_(Context, String) TranslateId(Context, reinterpret_cast(u8##String)) + +#define STR_DLG_CHART_WIZARD NC_("STR_DLG_CHART_WIZARD", "Chart Wizard") +#define STR_DLG_SMOOTH_LINE_PROPERTIES NC_("STR_DLG_SMOOTH_LINE_PROPERTIES", "Smooth Lines") +#define STR_DLG_STEPPED_LINE_PROPERTIES NC_("STR_DLG_STEPPED_LINE_PROPERTIES", "Stepped Lines") +#define STR_DLG_REMOVE_DATA_TABLE NC_("STR_DLG_REMOVE_DATA_TABLE", "This chart currently contains an internal data table. Do you want to proceed, deleting the internal data table, and set a new data range?") +#define STR_PAGE_CHARTTYPE NC_("STR_PAGE_CHARTTYPE", "Chart Type") +#define STR_PAGE_DATA_RANGE NC_("STR_PAGE_DATA_RANGE", "Data Range") +#define STR_PAGE_CHART_ELEMENTS NC_("STR_PAGE_CHART_ELEMENTS", "Chart Elements") +#define STR_PAGE_LINE NC_("STR_PAGE_LINE", "Line") +#define STR_PAGE_BORDER NC_("STR_PAGE_BORDER", "Borders") +#define STR_PAGE_AREA NC_("STR_PAGE_AREA", "Area") +#define STR_PAGE_TRANSPARENCY NC_("STR_PAGE_TRANSPARENCY", "Transparency") +#define STR_PAGE_FONT NC_("STR_PAGE_FONT", "Font") +#define STR_PAGE_FONT_EFFECTS NC_("STR_PAGE_FONT_EFFECTS", "Font Effects") +#define STR_PAGE_NUMBERS NC_("STR_PAGE_NUMBERS", "Numbers") +#define STR_PAGE_POSITION NC_("STR_PAGE_POSITION", "Position") +#define STR_PAGE_LAYOUT NC_("STR_PAGE_LAYOUT", "Layout") +#define STR_PAGE_OPTIONS NC_("STR_PAGE_OPTIONS", "Options") +#define STR_PAGE_SCALE NC_("STR_PAGE_SCALE", "Scale") +#define STR_PAGE_POSITIONING NC_("STR_PAGE_POSITIONING", "Positioning") +#define STR_PAGE_TRENDLINE_TYPE NC_("STR_PAGE_TRENDLINE_TYPE", "Type") +#define STR_PAGE_XERROR_BARS NC_("STR_PAGE_XERROR_BARS", "X Error Bars") +#define STR_PAGE_YERROR_BARS NC_("STR_PAGE_YERROR_BARS", "Y Error Bars") +#define STR_PAGE_ALIGNMENT NC_("STR_PAGE_ALIGNMENT", "Alignment") +#define STR_PAGE_PERSPECTIVE NC_("STR_PAGE_PERSPECTIVE", "Perspective") +#define STR_PAGE_APPEARANCE NC_("STR_PAGE_APPEARANCE", "Appearance") +#define STR_PAGE_ILLUMINATION NC_("STR_PAGE_ILLUMINATION", "Illumination") +#define STR_PAGE_ASIAN NC_("STR_PAGE_ASIAN", "Asian Typography") +#define STR_OBJECT_AVERAGE_LINE_WITH_PARAMETERS NC_("STR_OBJECT_AVERAGE_LINE_WITH_PARAMETERS", "Mean value line with value %AVERAGE_VALUE and standard deviation %STD_DEVIATION") +#define STR_OBJECT_AXIS NC_("STR_OBJECT_AXIS", "Axis") +#define STR_OBJECT_AXIS_X NC_("STR_OBJECT_AXIS_X", "X Axis") +#define STR_OBJECT_AXIS_Y NC_("STR_OBJECT_AXIS_Y", "Y Axis") +#define STR_OBJECT_AXIS_Z NC_("STR_OBJECT_AXIS_Z", "Z Axis") +#define STR_OBJECT_SECONDARY_X_AXIS NC_("STR_OBJECT_SECONDARY_X_AXIS", "Secondary X Axis") +#define STR_OBJECT_SECONDARY_Y_AXIS NC_("STR_OBJECT_SECONDARY_Y_AXIS", "Secondary Y Axis") +#define STR_OBJECT_AXES NC_("STR_OBJECT_AXES", "Axes") +#define STR_OBJECT_GRIDS NC_("STR_OBJECT_GRIDS", "Grids") +#define STR_OBJECT_GRID NC_("STR_OBJECT_GRID", "Grid") +#define STR_OBJECT_GRID_MAJOR_X NC_("STR_OBJECT_GRID_MAJOR_X", "X Axis Major Grid") +#define STR_OBJECT_GRID_MAJOR_Y NC_("STR_OBJECT_GRID_MAJOR_Y", "Y Axis Major Grid") +#define STR_OBJECT_GRID_MAJOR_Z NC_("STR_OBJECT_GRID_MAJOR_Z", "Z Axis Major Grid") +#define STR_OBJECT_GRID_MINOR_X NC_("STR_OBJECT_GRID_MINOR_X", "X Axis Minor Grid") +#define STR_OBJECT_GRID_MINOR_Y NC_("STR_OBJECT_GRID_MINOR_Y", "Y Axis Minor Grid") +#define STR_OBJECT_GRID_MINOR_Z NC_("STR_OBJECT_GRID_MINOR_Z", "Z Axis Minor Grid") +#define STR_OBJECT_LEGEND NC_("STR_OBJECT_LEGEND", "Legend") +#define STR_OBJECT_TITLE NC_("STR_OBJECT_TITLE", "Title") +#define STR_OBJECT_TITLES NC_("STR_OBJECT_TITLES", "Titles") +#define STR_OBJECT_TITLE_MAIN NC_("STR_OBJECT_TITLE_MAIN", "Main Title") +#define STR_OBJECT_TITLE_SUB NC_("STR_OBJECT_TITLE_SUB", "Subtitle") +#define STR_OBJECT_TITLE_X_AXIS NC_("STR_OBJECT_TITLE_X_AXIS", "X Axis Title") +#define STR_OBJECT_TITLE_Y_AXIS NC_("STR_OBJECT_TITLE_Y_AXIS", "Y Axis Title") +#define STR_OBJECT_TITLE_Z_AXIS NC_("STR_OBJECT_TITLE_Z_AXIS", "Z Axis Title") +#define STR_OBJECT_TITLE_SECONDARY_X_AXIS NC_("STR_OBJECT_TITLE_SECONDARY_X_AXIS", "Secondary X Axis Title") +#define STR_OBJECT_TITLE_SECONDARY_Y_AXIS NC_("STR_OBJECT_TITLE_SECONDARY_Y_AXIS", "Secondary Y Axis Title") +#define STR_OBJECT_LABEL NC_("STR_OBJECT_LABEL", "Label") +#define STR_OBJECT_DATALABELS NC_("STR_OBJECT_DATALABELS", "Data Labels") +#define STR_OBJECT_DATAPOINT NC_("STR_OBJECT_DATAPOINT", "Data Point") +#define STR_OBJECT_DATAPOINTS NC_("STR_OBJECT_DATAPOINTS", "Data Points") +#define STR_OBJECT_LEGEND_SYMBOL NC_("STR_OBJECT_LEGEND_SYMBOL", "Legend Key") +#define STR_OBJECT_DATASERIES NC_("STR_OBJECT_DATASERIES", "Data Series") +#define STR_OBJECT_DATASERIES_PLURAL NC_("STR_OBJECT_DATASERIES_PLURAL", "Data Series") +#define STR_OBJECT_CURVE NC_("STR_OBJECT_CURVE", "Trend Line") +#define STR_OBJECT_CURVES NC_("STR_OBJECT_CURVES", "Trend Lines") +#define STR_OBJECT_CURVE_WITH_PARAMETERS NC_("STR_OBJECT_CURVE_WITH_PARAMETERS", "Trend line %FORMULA with accuracy R² = %RSQUARED") +#define STR_OBJECT_MOVING_AVERAGE_WITH_PARAMETERS NC_("STR_OBJECT_MOVING_AVERAGE_WITH_PARAMETERS", "Moving average trend line with period = %PERIOD") +#define STR_OBJECT_AVERAGE_LINE NC_("STR_OBJECT_AVERAGE_LINE", "Mean Value Line") +#define STR_OBJECT_CURVE_EQUATION NC_("STR_OBJECT_CURVE_EQUATION", "Equation") +#define STR_OBJECT_ERROR_BARS_X NC_("STR_OBJECT_ERROR_BARS_X", "X Error Bars") +#define STR_OBJECT_ERROR_BARS_Y NC_("STR_OBJECT_ERROR_BARS_Y", "Y Error Bars") +#define STR_OBJECT_ERROR_BARS_Z NC_("STR_OBJECT_ERROR_BARS_Z", "Z Error Bars") +#define STR_OBJECT_STOCK_LOSS NC_("STR_OBJECT_STOCK_LOSS", "Stock Loss") +#define STR_OBJECT_STOCK_GAIN NC_("STR_OBJECT_STOCK_GAIN", "Stock Gain") +#define STR_OBJECT_PAGE NC_("STR_OBJECT_PAGE", "Chart Area") +#define STR_OBJECT_DIAGRAM NC_("STR_OBJECT_DIAGRAM", "Chart") +#define STR_OBJECT_DIAGRAM_WALL NC_("STR_OBJECT_DIAGRAM_WALL", "Chart Wall") +#define STR_OBJECT_DIAGRAM_FLOOR NC_("STR_OBJECT_DIAGRAM_FLOOR", "Chart Floor") +#define STR_OBJECT_SHAPE NC_("STR_OBJECT_SHAPE", "Drawing Object") +#define STR_TIP_DATASERIES NC_("STR_TIP_DATASERIES", "Data Series '%SERIESNAME'") +#define STR_TIP_DATAPOINT_INDEX NC_("STR_TIP_DATAPOINT_INDEX", "Data Point %POINTNUMBER") +#define STR_TIP_DATAPOINT_VALUES NC_("STR_TIP_DATAPOINT_VALUES", "Values: %POINTVALUES") +#define STR_TIP_DATAPOINT NC_("STR_TIP_DATAPOINT", "Data Point %POINTNUMBER, data series %SERIESNUMBER, values: %POINTVALUES") +#define STR_STATUS_DATAPOINT_MARKED NC_("STR_STATUS_DATAPOINT_MARKED", "Data point %POINTNUMBER in data series %SERIESNUMBER selected, values: %POINTVALUES") +#define STR_STATUS_OBJECT_MARKED NC_("STR_STATUS_OBJECT_MARKED", "%OBJECTNAME selected") +#define STR_STATUS_PIE_SEGMENT_EXPLODED NC_("STR_STATUS_PIE_SEGMENT_EXPLODED", "Pie exploded by %PERCENTVALUE percent") +#define STR_OBJECT_FOR_SERIES NC_("STR_OBJECT_FOR_SERIES", "%OBJECTNAME for Data Series '%SERIESNAME'") +#define STR_OBJECT_FOR_ALL_SERIES NC_("STR_OBJECT_FOR_ALL_SERIES", "%OBJECTNAME for all Data Series") +#define STR_ACTION_EDIT_CHARTTYPE NC_("STR_ACTION_EDIT_CHARTTYPE", "Edit chart type") +#define STR_ACTION_EDIT_DATA_RANGES NC_("STR_ACTION_EDIT_DATA_RANGES", "Edit data ranges") +#define STR_ACTION_EDIT_3D_VIEW NC_("STR_ACTION_EDIT_3D_VIEW", "Edit 3D view") +#define STR_ACTION_EDIT_CHART_DATA NC_("STR_ACTION_EDIT_CHART_DATA", "Edit chart data") +#define STR_ACTION_TOGGLE_LEGEND NC_("STR_ACTION_TOGGLE_LEGEND", "Legend on/off") +#define STR_ACTION_TOGGLE_GRID_HORZ NC_("STR_ACTION_TOGGLE_GRID_HORZ", "Horizontal grid major/major&minor/off") +#define STR_ACTION_TOGGLE_GRID_VERTICAL NC_("STR_ACTION_TOGGLE_GRID_VERTICAL", "Vertical grid major/major&minor/off") +#define STR_ACTION_SCALE_TEXT NC_("STR_ACTION_SCALE_TEXT", "Scale Text") +#define STR_ACTION_REARRANGE_CHART NC_("STR_ACTION_REARRANGE_CHART", "Automatic Layout") +#define STR_ACTION_NOTPOSSIBLE NC_("STR_ACTION_NOTPOSSIBLE", "This function cannot be completed with the selected objects.") +#define STR_ACTION_EDIT_TEXT NC_("STR_ACTION_EDIT_TEXT", "Edit text") +#define STR_COLUMN_LABEL NC_("STR_COLUMN_LABEL", "Column %COLUMNNUMBER") +#define STR_ROW_LABEL NC_("STR_ROW_LABEL", "Row %ROWNUMBER") +#define STR_DATA_ROLE_LABEL NC_("STR_DATA_ROLE_LABEL", "Name") +#define STR_DATA_ROLE_X NC_("STR_DATA_ROLE_X", "X-Values") +#define STR_DATA_ROLE_Y NC_("STR_DATA_ROLE_Y", "Y-Values") +#define STR_DATA_ROLE_SIZE NC_("STR_DATA_ROLE_SIZE", "Bubble Sizes") +#define STR_DATA_ROLE_X_ERROR NC_("STR_DATA_ROLE_X_ERROR", "X-Error-Bars") +#define STR_DATA_ROLE_X_ERROR_POSITIVE NC_("STR_DATA_ROLE_X_ERROR_POSITIVE", "Positive X-Error-Bars") +#define STR_DATA_ROLE_X_ERROR_NEGATIVE NC_("STR_DATA_ROLE_X_ERROR_NEGATIVE", "Negative X-Error-Bars") +#define STR_DATA_ROLE_Y_ERROR NC_("STR_DATA_ROLE_Y_ERROR", "Y-Error-Bars") +#define STR_DATA_ROLE_Y_ERROR_POSITIVE NC_("STR_DATA_ROLE_Y_ERROR_POSITIVE", "Positive Y-Error-Bars") +#define STR_DATA_ROLE_Y_ERROR_NEGATIVE NC_("STR_DATA_ROLE_Y_ERROR_NEGATIVE", "Negative Y-Error-Bars") +#define STR_DATA_ROLE_FIRST NC_("STR_DATA_ROLE_FIRST", "Open Values") +#define STR_DATA_ROLE_LAST NC_("STR_DATA_ROLE_LAST", "Close Values") +#define STR_DATA_ROLE_MIN NC_("STR_DATA_ROLE_MIN", "Low Values") +#define STR_DATA_ROLE_MAX NC_("STR_DATA_ROLE_MAX", "High Values") +#define STR_DATA_ROLE_CATEGORIES NC_("STR_DATA_ROLE_CATEGORIES", "Categories") +#define STR_DATA_UNNAMED_SERIES NC_("STR_DATA_UNNAMED_SERIES", "Series") +#define STR_DATA_UNNAMED_SERIES_WITH_INDEX NC_("STR_DATA_UNNAMED_SERIES_WITH_INDEX", "Series%NUMBER") +#define STR_DATA_SELECT_RANGE_FOR_SERIES NC_("STR_DATA_SELECT_RANGE_FOR_SERIES", "Select Range for %VALUETYPE of %SERIESNAME") +#define STR_DATA_SELECT_RANGE_FOR_CATEGORIES NC_("STR_DATA_SELECT_RANGE_FOR_CATEGORIES", "Select Range for Categories") +#define STR_DATA_SELECT_RANGE_FOR_DATALABELS NC_("STR_DATA_SELECT_RANGE_FOR_DATALABELS", "Select Range for data labels") +#define STR_DATA_EDITOR_INCORRECT_INPUT NC_("STR_DATA_EDITOR_INCORRECT_INPUT", "Your last input is incorrect.\nIgnore this change and close the dialog?") +#define STR_TEXT_DIRECTION_LTR NC_("STR_TEXT_DIRECTION_LTR", "Left-to-right") +#define STR_TEXT_DIRECTION_RTL NC_("STR_TEXT_DIRECTION_RTL", "Right-to-left") +#define STR_TEXT_DIRECTION_SUPER NC_("STR_TEXT_DIRECTION_SUPER", "Use superordinate object settings") +#define STR_PROPERTY_ROLE_FILLCOLOR NC_("STR_PROPERTY_ROLE_FILLCOLOR", "Fill Color") +#define STR_PROPERTY_ROLE_BORDERCOLOR NC_("STR_PROPERTY_ROLE_BORDERCOLOR", "Border Color") + +#define STR_CONTROLTEXT_ERROR_BARS_FROM_DATA NC_("STR_CONTROLTEXT_ERROR_BARS_FROM_DATA", "From Data Table") +#define STR_REGRESSION_LINEAR NC_("STR_REGRESSION_LINEAR", "Linear") +#define STR_REGRESSION_LOG NC_("STR_REGRESSION_LOG", "Logarithmic") +#define STR_REGRESSION_EXP NC_("STR_REGRESSION_EXP", "Exponential") +#define STR_REGRESSION_POWER NC_("STR_REGRESSION_POWER", "Power") +#define STR_REGRESSION_POLYNOMIAL NC_("STR_REGRESSION_POLYNOMIAL", "Polynomial") +#define STR_REGRESSION_MOVING_AVERAGE NC_("STR_REGRESSION_MOVING_AVERAGE", "Moving average") +#define STR_REGRESSION_MEAN NC_("STR_REGRESSION_MEAN", "Mean") + +#define STR_TYPE_COLUMN NC_("STR_TYPE_COLUMN", "Column") +#define STR_TYPE_BAR NC_("STR_TYPE_BAR", "Bar") +#define STR_TYPE_AREA NC_("STR_TYPE_AREA", "Area") +#define STR_TYPE_PIE NC_("STR_TYPE_PIE", "Pie") +#define STR_PIE_EXPLODED NC_("STR_PIE_EXPLODED", "Exploded Pie Chart") +#define STR_DONUT_EXPLODED NC_("STR_DONUT_EXPLODED", "Exploded Donut Chart") +#define STR_DONUT NC_("STR_DONUT", "Donut") +#define STR_TYPE_LINE NC_("STR_TYPE_LINE", "Line") +#define STR_TYPE_XY NC_("STR_TYPE_XY", "XY (Scatter)") +#define STR_POINTS_AND_LINES NC_("STR_POINTS_AND_LINES", "Points and Lines") +#define STR_POINTS_ONLY NC_("STR_POINTS_ONLY", "Points Only") +#define STR_LINES_ONLY NC_("STR_LINES_ONLY", "Lines Only") +#define STR_LINES_3D NC_("STR_LINES_3D", "3D Lines") +#define STR_TYPE_COMBI_COLUMN_LINE NC_("STR_TYPE_COMBI_COLUMN_LINE", "Column and Line") +#define STR_LINE_COLUMN NC_("STR_LINE_COLUMN", "Columns and Lines") +#define STR_LINE_STACKEDCOLUMN NC_("STR_LINE_STACKEDCOLUMN", "Stacked Columns and Lines") +#define STR_TYPE_NET NC_("STR_TYPE_NET", "Net") +#define STR_TYPE_STOCK NC_("STR_TYPE_STOCK", "Stock") +#define STR_STOCK_1 NC_("STR_STOCK_1", "Stock Chart 1") +#define STR_STOCK_2 NC_("STR_STOCK_2", "Stock Chart 2") +#define STR_STOCK_3 NC_("STR_STOCK_3", "Stock Chart 3") +#define STR_STOCK_4 NC_("STR_STOCK_4", "Stock Chart 4") +#define STR_NORMAL NC_("STR_NORMAL", "Normal") +#define STR_STACKED NC_("STR_STACKED", "Stacked") +#define STR_PERCENT NC_("STR_PERCENT", "Percent Stacked") +#define STR_DEEP NC_("STR_DEEP", "Deep") +#define STR_FILLED NC_("STR_FILLED", "Filled") +#define STR_TYPE_BUBBLE NC_("STR_TYPE_BUBBLE", "Bubble") +#define STR_BUBBLE_1 NC_("STR_BUBBLE_1", "Bubble Chart") + +#define STR_INVALID_NUMBER NC_("STR_INVALID_NUMBER", "Numbers are required. Check your input.") +#define STR_STEP_GT_ZERO NC_("STR_STEP_GT_ZERO", "The major interval requires a positive number. Check your input.") +#define STR_BAD_LOGARITHM NC_("STR_BAD_LOGARITHM", "The logarithmic scale requires positive numbers. Check your input.") +#define STR_MIN_GREATER_MAX NC_("STR_MIN_GREATER_MAX", "The minimum must be lower than the maximum. Check your input.") +#define STR_INVALID_INTERVALS NC_("STR_INVALID_INTERVALS", "The major interval needs to be greater than the minor interval. Check your input.") +#define STR_INVALID_TIME_UNIT NC_("STR_INVALID_TIME_UNIT", "The major and minor interval need to be greater or equal to the resolution. Check your input.") + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/inc/unonames.hxx b/chart2/inc/unonames.hxx new file mode 100644 index 000000000..12b35914a --- /dev/null +++ b/chart2/inc/unonames.hxx @@ -0,0 +1,38 @@ +/* -*- 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/. + */ + +#pragma once + +#include + +inline constexpr OUStringLiteral CHART_UNONAME_SORT_BY_XVALUES = u"SortByXValues"; +inline constexpr OUStringLiteral CHART_UNONAME_SPLINE_TYPE = u"SplineType"; +inline constexpr OUStringLiteral CHART_UNONAME_SPLINE_ORDER = u"SplineOrder"; +inline constexpr OUStringLiteral CHART_UNONAME_SPLINE_RESOLUTION = u"SplineResolution"; +inline constexpr OUStringLiteral CHART_UNONAME_CURVE_STYLE = u"CurveStyle"; +inline constexpr OUStringLiteral CHART_UNONAME_CURVE_RESOLUTION = u"CurveResolution"; +inline constexpr OUStringLiteral CHART_UNONAME_NUMFMT = u"NumberFormat"; +inline constexpr OUStringLiteral CHART_UNONAME_LINK_TO_SRC_NUMFMT = u"LinkNumberFormatToSource"; +inline constexpr OUStringLiteral CHART_UNONAME_ERRORBAR_X = u"ErrorBarX"; +inline constexpr OUStringLiteral CHART_UNONAME_ERRORBAR_Y = u"ErrorBarY"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL = u"Label"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_SEP = u"LabelSeparator"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_STYLE = u"LabelBorderStyle"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_WIDTH = u"LabelBorderWidth"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_COLOR = u"LabelBorderColor"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_DASH = u"LabelBorderDash"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_DASHNAME = u"LabelBorderDashName"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_TRANS = u"LabelBorderTransparency"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_STYLE = u"LabelFillStyle"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_BACKGROUND = u"LabelFillBackground"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_HATCH_NAME = u"LabelFillHatchName"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_COLOR = u"LabelFillColor"; +inline constexpr OUStringLiteral CHART_UNONAME_CUSTOM_LABEL_FIELDS = u"CustomLabelFields"; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3