2010-10-12 15:59:00 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 12:30:48 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2006-09-17 11:56:32 +00:00
|
|
|
|
2003-12-18 12:50:56 +00:00
|
|
|
#include "DiagramWrapper.hxx"
|
|
|
|
#include "macros.hxx"
|
2007-05-22 16:17:52 +00:00
|
|
|
#include "servicenames_charttypes.hxx"
|
2003-12-18 12:50:56 +00:00
|
|
|
#include "DataSeriesPointWrapper.hxx"
|
|
|
|
#include "AxisWrapper.hxx"
|
2007-05-22 16:17:52 +00:00
|
|
|
#include "AxisHelper.hxx"
|
|
|
|
#include "Chart2ModelContact.hxx"
|
|
|
|
#include "PositionAndSizeHelper.hxx"
|
|
|
|
#include "WallFloorWrapper.hxx"
|
|
|
|
#include "MinMaxLineWrapper.hxx"
|
|
|
|
#include "UpDownBarWrapper.hxx"
|
|
|
|
#include "DiagramHelper.hxx"
|
|
|
|
#include "DataSourceHelper.hxx"
|
|
|
|
#include "ChartModelHelper.hxx"
|
|
|
|
#include "WrappedIgnoreProperty.hxx"
|
|
|
|
#include "WrappedAxisAndGridExistenceProperties.hxx"
|
|
|
|
#include "WrappedStatisticProperties.hxx"
|
|
|
|
#include "WrappedSymbolProperties.hxx"
|
|
|
|
#include "WrappedDataCaptionProperties.hxx"
|
|
|
|
#include "WrappedSplineProperties.hxx"
|
|
|
|
#include "WrappedStockProperties.hxx"
|
|
|
|
#include "WrappedSceneProperty.hxx"
|
2014-03-28 12:29:13 -04:00
|
|
|
#include "WrappedGL3DProperties.hxx"
|
2007-05-22 16:17:52 +00:00
|
|
|
#include "RelativePositionHelper.hxx"
|
|
|
|
#include "ContainerHelper.hxx"
|
|
|
|
#include "ControllerLockGuard.hxx"
|
|
|
|
#include "ModifyListenerHelper.hxx"
|
|
|
|
#include "DisposeHelper.hxx"
|
|
|
|
#include <comphelper/InlineContainer.hxx>
|
2008-10-01 07:35:04 +00:00
|
|
|
#include "WrappedAutomaticPositionProperties.hxx"
|
2010-03-31 18:43:41 +02:00
|
|
|
#include "CommonConverters.hxx"
|
2014-03-27 13:47:15 -04:00
|
|
|
#include <unonames.hxx>
|
2014-12-09 08:30:11 +02:00
|
|
|
#include <cppuhelper/supportsservice.hxx>
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
2004-01-26 08:13:31 +00:00
|
|
|
#include <com/sun/star/chart2/XTitled.hpp>
|
2007-05-22 16:17:52 +00:00
|
|
|
#include <com/sun/star/chart/ChartDataRowSource.hpp>
|
|
|
|
#include <com/sun/star/chart2/RelativeSize.hpp>
|
|
|
|
#include <com/sun/star/chart2/RelativePosition.hpp>
|
2008-01-14 12:56:02 +00:00
|
|
|
#include <com/sun/star/chart/ChartSolidType.hpp>
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2013-04-21 02:49:04 +02:00
|
|
|
#include "LinePropertiesHelper.hxx"
|
2003-12-18 12:50:56 +00:00
|
|
|
#include "FillProperties.hxx"
|
|
|
|
#include "UserDefinedProperties.hxx"
|
2007-05-22 16:17:52 +00:00
|
|
|
#include "SceneProperties.hxx"
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include <rtl/ustrbuf.hxx>
|
2007-05-22 16:17:52 +00:00
|
|
|
#include <com/sun/star/lang/XServiceName.hpp>
|
|
|
|
#include <com/sun/star/util/XRefreshable.hpp>
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
using namespace ::com::sun::star;
|
2007-05-22 16:17:52 +00:00
|
|
|
using namespace ::chart::wrapper;
|
|
|
|
|
|
|
|
using ::com::sun::star::uno::Reference;
|
|
|
|
using ::com::sun::star::uno::Any;
|
|
|
|
using ::com::sun::star::uno::Sequence;
|
2003-12-18 12:50:56 +00:00
|
|
|
using ::com::sun::star::beans::Property;
|
2010-12-03 23:01:44 +01:00
|
|
|
using ::com::sun::star::chart::XAxis;
|
2003-12-18 12:50:56 +00:00
|
|
|
using ::osl::MutexGuard;
|
|
|
|
|
|
|
|
namespace
|
|
|
|
{
|
2014-11-03 14:03:54 +02:00
|
|
|
static const char lcl_aServiceName[] = "com.sun.star.comp.chart.Diagram";
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_DIAGRAM_ATTRIBUTED_DATA_POINTS,
|
|
|
|
PROP_DIAGRAM_PERCENT_STACKED,
|
|
|
|
PROP_DIAGRAM_STACKED,
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_THREE_D,
|
2008-01-14 12:56:02 +00:00
|
|
|
PROP_DIAGRAM_SOLIDTYPE,
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_DEEP,
|
|
|
|
PROP_DIAGRAM_VERTICAL,
|
|
|
|
PROP_DIAGRAM_NUMBER_OF_LINES,
|
|
|
|
PROP_DIAGRAM_STACKED_BARS_CONNECTED,
|
|
|
|
PROP_DIAGRAM_DATAROW_SOURCE,
|
|
|
|
|
2007-10-22 15:42:30 +00:00
|
|
|
PROP_DIAGRAM_GROUP_BARS_PER_AXIS,
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
PROP_DIAGRAM_INCLUDE_HIDDEN_CELLS,
|
2007-10-22 15:42:30 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_SORT_BY_X_VALUES,
|
|
|
|
|
2008-02-18 14:38:45 +00:00
|
|
|
PROP_DIAGRAM_STARTING_ANGLE,
|
|
|
|
|
2008-04-18 12:21:24 +00:00
|
|
|
PROP_DIAGRAM_RIGHT_ANGLED_AXES,
|
|
|
|
PROP_DIAGRAM_PERSPECTIVE,
|
|
|
|
PROP_DIAGRAM_ROTATION_HORIZONTAL,
|
|
|
|
PROP_DIAGRAM_ROTATION_VERTICAL,
|
|
|
|
|
2008-07-30 10:51:56 +00:00
|
|
|
PROP_DIAGRAM_MISSING_VALUE_TREATMENT,
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_X_AXIS,
|
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_DESCR,
|
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_TITLE,
|
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_GRID,
|
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_HELP_GRID,
|
|
|
|
|
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS,
|
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_DESCR,
|
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_TITLE,
|
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_GRID,
|
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_HELP_GRID,
|
|
|
|
|
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS,
|
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_DESCR,
|
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_TITLE,
|
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_GRID,
|
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_HELP_GRID,
|
|
|
|
|
|
|
|
PROP_DIAGRAM_HAS_SECOND_X_AXIS,
|
|
|
|
PROP_DIAGRAM_HAS_SECOND_X_AXIS_DESCR,
|
|
|
|
|
|
|
|
PROP_DIAGRAM_HAS_SECOND_Y_AXIS,
|
2008-02-18 14:38:45 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_Y_AXIS_DESCR,
|
|
|
|
|
|
|
|
PROP_DIAGRAM_HAS_SECOND_X_AXIS_TITLE,
|
2008-10-01 07:35:04 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_Y_AXIS_TITLE,
|
|
|
|
|
2013-12-12 17:49:28 +05:30
|
|
|
PROP_DIAGRAM_AUTOMATIC_SIZE,
|
|
|
|
PROP_DIAGRAM_DATATABLEHBORDER,
|
|
|
|
PROP_DIAGRAM_DATATABLEVBORDER,
|
2013-12-27 14:30:58 +05:30
|
|
|
PROP_DIAGRAM_DATATABLEOUTLINE,
|
2014-03-26 20:52:16 -04:00
|
|
|
PROP_DIAGRAM_EXTERNALDATA,
|
|
|
|
|
|
|
|
PROP_DIAGRAM_ROUNDED_EDGE
|
2003-12-18 12:50:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void lcl_AddPropertiesToVector(
|
|
|
|
::std::vector< Property > & rOutProperties )
|
|
|
|
{
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "AttributedDataPoints",
|
2003-12-18 12:50:56 +00:00
|
|
|
PROP_DIAGRAM_ATTRIBUTED_DATA_POINTS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<uno::Sequence< uno::Sequence< sal_Int32 > >>::get(),
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEVOID ));
|
|
|
|
|
|
|
|
// see com.sun.star.chart.StackableDiagram
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "Percent",
|
2003-12-18 12:50:56 +00:00
|
|
|
PROP_DIAGRAM_PERCENT_STACKED,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "Stacked",
|
2003-12-18 12:50:56 +00:00
|
|
|
PROP_DIAGRAM_STACKED,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "Dim3D",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_THREE_D,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2008-01-14 12:56:02 +00:00
|
|
|
// see com.sun.star.chart.Chart3DBarProperties
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "SolidType",
|
2008-01-14 12:56:02 +00:00
|
|
|
PROP_DIAGRAM_SOLIDTYPE,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2008-01-14 12:56:02 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
// see com.sun.star.chart.BarDiagram
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "Deep",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_DEEP,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "Vertical",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_VERTICAL,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "NumberOfLines",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_NUMBER_OF_LINES,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "StackedBarsConnected",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_STACKED_BARS_CONNECTED,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "DataRowSource",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_DATAROW_SOURCE,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<com::sun::star::chart::ChartDataRowSource>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2007-10-22 15:42:30 +00:00
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "GroupBarsPerAxis",
|
2007-10-22 15:42:30 +00:00
|
|
|
PROP_DIAGRAM_GROUP_BARS_PER_AXIS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-10-22 15:42:30 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "IncludeHiddenCells",
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
PROP_DIAGRAM_INCLUDE_HIDDEN_CELLS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
//new for XY charts
|
|
|
|
rOutProperties.push_back(
|
2014-03-27 13:47:15 -04:00
|
|
|
Property( CHART_UNONAME_SORT_BY_XVALUES,
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_SORT_BY_X_VALUES,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2008-04-18 12:21:24 +00:00
|
|
|
//for pie and donut charts
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "StartingAngle",
|
2008-04-18 12:21:24 +00:00
|
|
|
PROP_DIAGRAM_STARTING_ANGLE,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2008-04-18 12:21:24 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2007-07-03 12:36:19 +00:00
|
|
|
//new for 3D charts
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "RightAngledAxes",
|
2008-04-18 12:21:24 +00:00
|
|
|
PROP_DIAGRAM_RIGHT_ANGLED_AXES,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-07-03 12:36:19 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
2008-02-18 14:38:45 +00:00
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "Perspective",
|
2008-04-18 12:21:24 +00:00
|
|
|
PROP_DIAGRAM_PERSPECTIVE,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2008-04-18 12:21:24 +00:00
|
|
|
beans::PropertyAttribute::MAYBEVOID ));
|
|
|
|
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "RotationHorizontal",
|
2008-04-18 12:21:24 +00:00
|
|
|
PROP_DIAGRAM_ROTATION_HORIZONTAL,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2008-04-18 12:21:24 +00:00
|
|
|
beans::PropertyAttribute::MAYBEVOID ));
|
|
|
|
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "RotationVertical",
|
2008-04-18 12:21:24 +00:00
|
|
|
PROP_DIAGRAM_ROTATION_VERTICAL,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2008-04-18 12:21:24 +00:00
|
|
|
beans::PropertyAttribute::MAYBEVOID ));
|
2008-02-18 14:38:45 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
// XAxisXSupplier
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasXAxis",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_X_AXIS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasXAxisDescription",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_DESCR,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasXAxisTitle",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_TITLE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasXAxisGrid",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_GRID,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasXAxisHelpGrid",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_X_AXIS_HELP_GRID,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
|
|
|
// XAxisYSupplier
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasYAxis",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasYAxisDescription",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_DESCR,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasYAxisTitle",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_TITLE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasYAxisGrid",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_GRID,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasYAxisHelpGrid",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Y_AXIS_HELP_GRID,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
|
|
|
// XAxisZSupplier
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasZAxis",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasZAxisDescription",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_DESCR,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasZAxisTitle",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_TITLE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasZAxisGrid",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_GRID,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasZAxisHelpGrid",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_Z_AXIS_HELP_GRID,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
|
|
|
// XTwoAxisXSupplier
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasSecondaryXAxis",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_X_AXIS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasSecondaryXAxisDescription",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_X_AXIS_DESCR,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
|
|
|
|
// XTwoAxisYSupplier
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasSecondaryYAxis",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_Y_AXIS,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasSecondaryYAxisDescription",
|
2007-05-22 16:17:52 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_Y_AXIS_DESCR,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2007-05-22 16:17:52 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
2008-02-18 14:38:45 +00:00
|
|
|
|
|
|
|
// XSecondAxisTitleSupplier
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasSecondaryXAxisTitle",
|
2008-02-18 14:38:45 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_X_AXIS_TITLE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2008-02-18 14:38:45 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "HasSecondaryYAxisTitle",
|
2008-02-18 14:38:45 +00:00
|
|
|
PROP_DIAGRAM_HAS_SECOND_Y_AXIS_TITLE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2008-02-18 14:38:45 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
2008-07-30 10:51:56 +00:00
|
|
|
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "MissingValueTreatment",
|
2008-07-30 10:51:56 +00:00
|
|
|
PROP_DIAGRAM_MISSING_VALUE_TREATMENT,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<sal_Int32>::get(),
|
2008-07-30 10:51:56 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEVOID ));
|
2008-10-01 07:35:04 +00:00
|
|
|
|
|
|
|
rOutProperties.push_back(
|
2012-04-08 10:48:08 -04:30
|
|
|
Property( "AutomaticSize",
|
2008-10-01 07:35:04 +00:00
|
|
|
PROP_DIAGRAM_AUTOMATIC_SIZE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2008-10-01 07:35:04 +00:00
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
2013-12-12 17:49:28 +05:30
|
|
|
rOutProperties.push_back(
|
|
|
|
Property( "DataTableHBorder",
|
|
|
|
PROP_DIAGRAM_DATATABLEHBORDER,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2013-12-12 17:49:28 +05:30
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
|
|
|
Property( "DataTableVBorder",
|
|
|
|
PROP_DIAGRAM_DATATABLEVBORDER,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2013-12-12 17:49:28 +05:30
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
|
|
|
rOutProperties.push_back(
|
|
|
|
Property( "DataTableOutline",
|
|
|
|
PROP_DIAGRAM_DATATABLEOUTLINE,
|
2015-04-01 08:35:38 +02:00
|
|
|
cppu::UnoType<bool>::get(),
|
2013-12-12 17:49:28 +05:30
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEDEFAULT ));
|
2013-12-27 14:30:58 +05:30
|
|
|
rOutProperties.push_back(
|
|
|
|
Property( "ExternalData",
|
|
|
|
PROP_DIAGRAM_EXTERNALDATA,
|
2014-05-18 00:35:50 +02:00
|
|
|
cppu::UnoType<OUString>::get(),
|
2013-12-27 14:30:58 +05:30
|
|
|
beans::PropertyAttribute::BOUND
|
|
|
|
| beans::PropertyAttribute::MAYBEVOID ));
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-10-05 11:10:54 +02:00
|
|
|
struct StaticDiagramWrapperPropertyArray_Initializer
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-10-05 11:10:54 +02:00
|
|
|
Sequence< Property >* operator()()
|
|
|
|
{
|
|
|
|
static Sequence< Property > aPropSeq( lcl_GetPropertySequence() );
|
|
|
|
return &aPropSeq;
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2010-10-05 11:10:54 +02:00
|
|
|
private:
|
|
|
|
uno::Sequence< Property > lcl_GetPropertySequence()
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
::std::vector< ::com::sun::star::beans::Property > aProperties;
|
|
|
|
lcl_AddPropertiesToVector( aProperties );
|
2013-04-21 02:49:04 +02:00
|
|
|
::chart::LinePropertiesHelper::AddPropertiesToVector( aProperties );
|
2007-05-22 16:17:52 +00:00
|
|
|
::chart::FillProperties::AddPropertiesToVector( aProperties );
|
2003-12-18 12:50:56 +00:00
|
|
|
::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );
|
2007-05-22 16:17:52 +00:00
|
|
|
::chart::SceneProperties::AddPropertiesToVector( aProperties );
|
|
|
|
WrappedStatisticProperties::addProperties( aProperties );
|
|
|
|
WrappedSymbolProperties::addProperties( aProperties );
|
|
|
|
WrappedDataCaptionProperties::addProperties( aProperties );
|
|
|
|
WrappedSplineProperties::addProperties( aProperties );
|
|
|
|
WrappedStockProperties::addProperties( aProperties );
|
2008-10-01 07:35:04 +00:00
|
|
|
WrappedAutomaticPositionProperties::addProperties( aProperties );
|
2014-03-28 12:29:13 -04:00
|
|
|
WrappedGL3DProperties::addProperties(aProperties);
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
::std::sort( aProperties.begin(), aProperties.end(),
|
2007-05-22 16:17:52 +00:00
|
|
|
::chart::PropertyNameLess() );
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2010-10-05 11:10:54 +02:00
|
|
|
return ::chart::ContainerHelper::ContainerToSequence( aProperties );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2010-10-05 11:10:54 +02:00
|
|
|
};
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2010-10-05 11:10:54 +02:00
|
|
|
struct StaticDiagramWrapperPropertyArray : public rtl::StaticAggregate< Sequence< Property >, StaticDiagramWrapperPropertyArray_Initializer >
|
|
|
|
{
|
|
|
|
};
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2015-03-06 15:49:35 +00:00
|
|
|
bool lcl_isXYChart( const Reference< chart2::XDiagram >& rDiagram )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
bool bRet = false;
|
2015-03-06 15:49:35 +00:00
|
|
|
Reference< chart2::XChartType > xChartType( ::chart::DiagramHelper::getChartTypeByIndex( rDiagram, 0 ) );
|
2007-05-22 16:17:52 +00:00
|
|
|
if( xChartType.is() )
|
|
|
|
{
|
2013-02-28 19:28:03 +01:00
|
|
|
OUString aChartType( xChartType->getChartType() );
|
2007-05-22 16:17:52 +00:00
|
|
|
if( aChartType.equalsIgnoreAsciiCase(CHART2_SERVICE_NAME_CHARTTYPE_SCATTER) )
|
|
|
|
bRet = true;
|
|
|
|
}
|
|
|
|
return bRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
sal_Int32 lcl_getNewAPIIndexForOldAPIIndex(
|
|
|
|
sal_Int32 nOldAPIIndex
|
|
|
|
, Reference< chart2::XDiagram > xDiagram )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
sal_Int32 nNewAPIIndex = nOldAPIIndex;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
if( lcl_isXYChart( xDiagram ) )
|
|
|
|
{
|
|
|
|
if( nNewAPIIndex >= 1 )
|
|
|
|
nNewAPIIndex -= 1;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
::std::vector< uno::Reference< chart2::XDataSeries > > aSeriesList(
|
|
|
|
::chart::DiagramHelper::getDataSeriesFromDiagram( xDiagram ) );
|
|
|
|
if( nNewAPIIndex >= static_cast<sal_Int32>(aSeriesList.size()) )
|
|
|
|
nNewAPIIndex = -1;
|
|
|
|
|
|
|
|
return nNewAPIIndex;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
OUString lcl_getDiagramType( const OUString & rTemplateServiceName )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
const OUString aPrefix("com.sun.star.chart2.template.");
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
if( rTemplateServiceName.match( aPrefix ))
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
const OUString aName( rTemplateServiceName.copy( aPrefix.getLength()));
|
|
|
|
|
2014-03-24 22:20:02 -04:00
|
|
|
if (aName.indexOf("GL3DBar") != -1)
|
|
|
|
return OUString("com.sun.star.chart.GL3DBarDiagram");
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
// "Area" "StackedArea" "PercentStackedArea" "ThreeDArea"
|
|
|
|
// "StackedThreeDArea" "PercentStackedThreeDArea"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Area" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString("com.sun.star.chart.AreaDiagram");
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
// "Pie" "PieAllExploded" "ThreeDPie" "ThreeDPieAllExploded"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Pie" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString("com.sun.star.chart.PieDiagram");
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
// "Column" "StackedColumn" "PercentStackedColumn" "ThreeDColumnDeep"
|
|
|
|
// "ThreeDColumnFlat" "StackedThreeDColumnFlat"
|
|
|
|
// "PercentStackedThreeDColumnFlat" "Bar" "StackedBar"
|
|
|
|
// "PercentStackedBar" "ThreeDBarDeep" "ThreeDBarFlat"
|
|
|
|
// "StackedThreeDBarFlat" "PercentStackedThreeDBarFlat" "ColumnWithLine"
|
|
|
|
// "StackedColumnWithLine"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Column" ) != -1 || aName.indexOf( "Bar" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.BarDiagram" );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
// "Donut" "DonutAllExploded" "ThreeDDonut" "ThreeDDonutAllExploded"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Donut" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.DonutDiagram" );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
// "ScatterLineSymbol" "ScatterLine" "ScatterSymbol" "ThreeDScatter"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Scatter" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.XYDiagram" );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
2009-08-26 09:55:20 +00:00
|
|
|
// "FilledNet" "StackedFilledNet" "PercentStackedFilledNet"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "FilledNet" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.FilledNetDiagram" );
|
2009-08-26 09:55:20 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
// "Net" "NetSymbol" "NetLine" "StackedNet" "StackedNetSymbol"
|
|
|
|
// "StackedNetLine" "PercentStackedNet" "PercentStackedNetSymbol"
|
|
|
|
// "PercentStackedNetLine"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Net" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.NetDiagram" );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
// "StockLowHighClose" "StockOpenLowHighClose" "StockVolumeLowHighClose"
|
|
|
|
// "StockVolumeOpenLowHighClose"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Stock" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.StockDiagram" );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Bubble" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.BubbleDiagram" );
|
2009-07-02 19:17:43 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
// Note: this must be checked after Bar, Net and Scatter
|
|
|
|
|
|
|
|
// "Symbol" "StackedSymbol" "PercentStackedSymbol" "Line" "StackedLine"
|
|
|
|
// "PercentStackedLine" "LineSymbol" "StackedLineSymbol"
|
|
|
|
// "PercentStackedLineSymbol" "ThreeDLine" "StackedThreeDLine"
|
|
|
|
// "PercentStackedThreeDLine" "ThreeDLineDeep"
|
2012-07-14 18:00:06 +02:00
|
|
|
if( aName.indexOf( "Line" ) != -1 || aName.indexOf( "Symbol" ) != -1 )
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.LineDiagram" );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
2011-03-12 11:28:41 +01:00
|
|
|
OSL_FAIL( "unknown template" );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
return OUString();
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
|
2013-02-28 19:28:03 +01:00
|
|
|
typedef ::comphelper::MakeMap< OUString, OUString > tMakeStringStringMap;
|
2011-01-19 21:41:13 +01:00
|
|
|
|
2007-06-11 13:57:22 +00:00
|
|
|
const tMakeStringStringMap& lcl_getChartTypeNameMap()
|
|
|
|
{
|
|
|
|
static tMakeStringStringMap g_aChartTypeNameMap =
|
|
|
|
tMakeStringStringMap
|
2012-04-08 10:48:08 -04:30
|
|
|
( "com.sun.star.chart2.LineChartType", "com.sun.star.chart.LineDiagram" )
|
|
|
|
( "com.sun.star.chart2.AreaChartType", "com.sun.star.chart.AreaDiagram" )
|
|
|
|
( "com.sun.star.chart2.ColumnChartType", "com.sun.star.chart.BarDiagram" )
|
|
|
|
( "com.sun.star.chart2.PieChartType", "com.sun.star.chart.PieDiagram" )
|
|
|
|
( "com.sun.star.chart2.DonutChartType", "com.sun.star.chart.DonutDiagram" )
|
|
|
|
( "com.sun.star.chart2.ScatterChartType", "com.sun.star.chart.XYDiagram" )
|
|
|
|
( "com.sun.star.chart2.FilledNetChartType", "com.sun.star.chart.FilledNetDiagram" )
|
|
|
|
( "com.sun.star.chart2.NetChartType", "com.sun.star.chart.NetDiagram" )
|
|
|
|
( "com.sun.star.chart2.CandleStickChartType", "com.sun.star.chart.StockDiagram" )
|
|
|
|
( "com.sun.star.chart2.BubbleChartType", "com.sun.star.chart.BubbleDiagram" )
|
2014-03-24 22:20:02 -04:00
|
|
|
( "com.sun.star.chart2.GL3DBarChartType", "com.sun.star.chart.GL3DBarDiagram" )
|
2007-06-11 13:57:22 +00:00
|
|
|
;
|
|
|
|
return g_aChartTypeNameMap;
|
|
|
|
}
|
|
|
|
|
|
|
|
OUString lcl_getOldChartTypeName( const OUString & rNewChartTypeName )
|
|
|
|
{
|
|
|
|
OUString aOld(rNewChartTypeName);
|
|
|
|
|
|
|
|
const tMakeStringStringMap& rMap = lcl_getChartTypeNameMap();
|
|
|
|
tMakeStringStringMap::const_iterator aIt( rMap.find( rNewChartTypeName ));
|
|
|
|
if( aIt != rMap.end())
|
|
|
|
{
|
|
|
|
aOld = aIt->second;
|
|
|
|
}
|
|
|
|
return aOld;
|
|
|
|
}
|
|
|
|
|
2003-12-18 12:50:56 +00:00
|
|
|
} // anonymous namespace
|
|
|
|
|
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
namespace wrapper
|
|
|
|
{
|
|
|
|
|
|
|
|
DiagramWrapper::DiagramWrapper(
|
2007-05-22 16:17:52 +00:00
|
|
|
::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ) :
|
|
|
|
m_spChart2ModelContact( spChart2ModelContact ),
|
2007-08-17 11:11:52 +00:00
|
|
|
m_aEventListenerContainer( m_aMutex )
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
DiagramWrapper::~DiagramWrapper()
|
|
|
|
{}
|
|
|
|
|
|
|
|
// ____ XDiagram ____
|
2007-05-22 16:17:52 +00:00
|
|
|
OUString SAL_CALL DiagramWrapper::getDiagramType()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
OUString aRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< chart2::XChartDocument > xChartDoc( m_spChart2ModelContact->getChart2Document() );
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( xChartDoc.is() && xDiagram.is() )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > xChartDocProp( xChartDoc, uno::UNO_QUERY );
|
|
|
|
if( xChartDocProp.is() )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Reference< util::XRefreshable > xAddIn;
|
2012-04-08 10:48:08 -04:30
|
|
|
if( xChartDocProp->getPropertyValue( "AddIn" ) >>= xAddIn )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Reference< lang::XServiceName > xServiceName( xAddIn, uno::UNO_QUERY );
|
|
|
|
if( xServiceName.is())
|
|
|
|
return xServiceName->getServiceName();
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< lang::XMultiServiceFactory > xChartTypeManager( xChartDoc->getChartTypeManager(), uno::UNO_QUERY );
|
|
|
|
DiagramHelper::tTemplateWithServiceName aTemplateAndService =
|
|
|
|
DiagramHelper::getTemplateForDiagram( xDiagram, xChartTypeManager );
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
aRet = lcl_getDiagramType( aTemplateAndService.second );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2011-12-10 22:03:11 -02:00
|
|
|
if( aRet.isEmpty())
|
2007-06-11 13:57:22 +00:00
|
|
|
{
|
|
|
|
// none of the standard templates matched
|
|
|
|
// use first chart type
|
|
|
|
Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
|
|
|
|
if( xChartType.is() )
|
|
|
|
{
|
|
|
|
aRet = xChartType->getChartType();
|
2011-12-10 22:03:11 -02:00
|
|
|
if( !aRet.isEmpty() )
|
2007-06-11 13:57:22 +00:00
|
|
|
aRet = lcl_getOldChartTypeName( aRet );
|
|
|
|
}
|
2011-12-10 22:03:11 -02:00
|
|
|
if( aRet.isEmpty())
|
2012-04-08 10:48:08 -04:30
|
|
|
aRet = "com.sun.star.chart.BarDiagram";
|
2007-06-11 13:57:22 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
return aRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference<
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::XPropertySet > SAL_CALL DiagramWrapper::getDataRowProperties( sal_Int32 nRow )
|
|
|
|
throw (lang::IndexOutOfBoundsException,
|
2014-02-25 21:31:58 +01:00
|
|
|
uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( nRow < 0 )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IndexOutOfBoundsException("DataSeries index invalid",
|
|
|
|
static_cast< ::cppu::OWeakObject * >( this ));
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< chart2::XDataSeries > xSeries;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
sal_Int32 nNewAPIIndex = lcl_getNewAPIIndexForOldAPIIndex( nRow, m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( nNewAPIIndex < 0 )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IndexOutOfBoundsException("DataSeries index invalid",
|
|
|
|
static_cast< ::cppu::OWeakObject * >( this ));
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > xRet( new DataSeriesPointWrapper(
|
|
|
|
DataSeriesPointWrapper::DATA_SERIES, nNewAPIIndex, 0, m_spChart2ModelContact ) );
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference<
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::XPropertySet > SAL_CALL DiagramWrapper::getDataPointProperties( sal_Int32 nCol, sal_Int32 nRow )
|
|
|
|
throw (lang::IndexOutOfBoundsException,
|
2014-02-25 21:31:58 +01:00
|
|
|
uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( nCol < 0 || nRow < 0 )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IndexOutOfBoundsException("DataSeries index invalid",
|
|
|
|
static_cast< ::cppu::OWeakObject * >( this ));
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< chart2::XDataSeries > xSeries;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
sal_Int32 nNewAPIIndex = lcl_getNewAPIIndexForOldAPIIndex( nRow, m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( nNewAPIIndex < 0 )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IndexOutOfBoundsException("DataSeries index invalid",
|
|
|
|
static_cast< ::cppu::OWeakObject * >( this ));
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
//todo: check borders of point index
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > xRet( new DataSeriesPointWrapper(
|
|
|
|
DataSeriesPointWrapper::DATA_POINT, nNewAPIIndex, nCol, m_spChart2ModelContact ) );
|
|
|
|
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ XShape (base of XDiagram) ____
|
|
|
|
awt::Point SAL_CALL DiagramWrapper::getPosition()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-03-31 18:43:41 +02:00
|
|
|
awt::Point aPosition = ToPoint( m_spChart2ModelContact->GetDiagramRectangleIncludingAxes() );
|
2007-05-22 16:17:52 +00:00
|
|
|
return aPosition;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL DiagramWrapper::setPosition( const awt::Point& aPosition )
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() );
|
|
|
|
if( xProp.is() )
|
|
|
|
{
|
|
|
|
awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() );
|
|
|
|
|
|
|
|
chart2::RelativePosition aRelativePosition;
|
|
|
|
aRelativePosition.Anchor = drawing::Alignment_TOP_LEFT;
|
|
|
|
aRelativePosition.Primary = double(aPosition.X)/double(aPageSize.Width);
|
|
|
|
aRelativePosition.Secondary = double(aPosition.Y)/double(aPageSize.Height);
|
2010-07-02 16:17:22 +02:00
|
|
|
if( aRelativePosition.Primary < 0 || aRelativePosition.Secondary < 0 || aRelativePosition.Primary > 1 || aRelativePosition.Secondary > 1 )
|
|
|
|
{
|
2011-03-01 19:05:02 +01:00
|
|
|
OSL_FAIL("DiagramWrapper::setPosition called with a position out of range -> automatic values are taken instead" );
|
2010-07-02 16:17:22 +02:00
|
|
|
uno::Any aEmpty;
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->setPropertyValue( "RelativePosition", aEmpty );
|
2010-07-02 16:17:22 +02:00
|
|
|
return;
|
|
|
|
}
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->setPropertyValue( "RelativePosition", uno::makeAny(aRelativePosition) );
|
|
|
|
xProp->setPropertyValue( "PosSizeExcludeAxes", uno::makeAny(false) );
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
awt::Size SAL_CALL DiagramWrapper::getSize()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-03-31 18:43:41 +02:00
|
|
|
awt::Size aSize = ToSize( m_spChart2ModelContact->GetDiagramRectangleIncludingAxes() );
|
2007-05-22 16:17:52 +00:00
|
|
|
return aSize;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL DiagramWrapper::setSize( const awt::Size& aSize )
|
|
|
|
throw (beans::PropertyVetoException,
|
2014-02-25 21:31:58 +01:00
|
|
|
uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() );
|
|
|
|
if( xProp.is() )
|
|
|
|
{
|
|
|
|
awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() );
|
|
|
|
|
|
|
|
chart2::RelativeSize aRelativeSize;
|
|
|
|
aRelativeSize.Primary = double(aSize.Width)/double(aPageSize.Width);
|
|
|
|
aRelativeSize.Secondary = double(aSize.Height)/double(aPageSize.Height);
|
|
|
|
|
|
|
|
if( aRelativeSize.Primary > 1 || aRelativeSize.Secondary > 1 )
|
|
|
|
{
|
2011-03-01 19:05:02 +01:00
|
|
|
OSL_FAIL("DiagramWrapper::setSize called with sizes bigger than page -> automatic values are taken instead" );
|
2010-03-31 18:43:41 +02:00
|
|
|
uno::Any aEmpty;
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->setPropertyValue( "RelativeSize", aEmpty );
|
2010-03-31 18:43:41 +02:00
|
|
|
return;
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
|
|
|
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->setPropertyValue( "RelativeSize", uno::makeAny(aRelativeSize) );
|
|
|
|
xProp->setPropertyValue( "PosSizeExcludeAxes", uno::makeAny(false) );
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ XShapeDescriptor (base of XShape) ____
|
2007-05-22 16:17:52 +00:00
|
|
|
OUString SAL_CALL DiagramWrapper::getShapeType()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2013-02-28 19:28:03 +01:00
|
|
|
return OUString( "com.sun.star.chart.Diagram" );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2009-11-20 11:58:22 +01:00
|
|
|
// ____ XDiagramPositioning ____
|
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL DiagramWrapper::setAutomaticDiagramPositioning() throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2009-11-20 11:58:22 +01:00
|
|
|
uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY );
|
|
|
|
if( xDiaProps.is() )
|
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
xDiaProps->setPropertyValue( "RelativeSize", Any() );
|
|
|
|
xDiaProps->setPropertyValue( "RelativePosition", Any() );
|
2009-11-20 11:58:22 +01:00
|
|
|
}
|
|
|
|
}
|
2014-04-03 13:52:06 +02:00
|
|
|
sal_Bool SAL_CALL DiagramWrapper::isAutomaticDiagramPositioning( ) throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
|
|
|
uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY );
|
|
|
|
if( xDiaProps.is() )
|
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
Any aRelativeSize( xDiaProps->getPropertyValue( "RelativeSize" ) );
|
|
|
|
Any aRelativePosition( xDiaProps->getPropertyValue( "RelativePosition" ) );
|
2009-11-20 11:58:22 +01:00
|
|
|
if( aRelativeSize.hasValue() && aRelativePosition.hasValue() )
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL DiagramWrapper::setDiagramPositionExcludingAxes( const awt::Rectangle& rPositionRect ) throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2009-11-20 11:58:22 +01:00
|
|
|
DiagramHelper::setDiagramPositioning( m_spChart2ModelContact->getChartModel(), rPositionRect );
|
|
|
|
uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY );
|
|
|
|
if( xDiaProps.is() )
|
2012-04-08 10:48:08 -04:30
|
|
|
xDiaProps->setPropertyValue("PosSizeExcludeAxes", uno::makeAny(true) );
|
2009-11-20 11:58:22 +01:00
|
|
|
}
|
2014-04-03 13:52:06 +02:00
|
|
|
sal_Bool SAL_CALL DiagramWrapper::isExcludingDiagramPositioning() throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
|
|
|
uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY );
|
|
|
|
if( xDiaProps.is() )
|
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
Any aRelativeSize( xDiaProps->getPropertyValue( "RelativeSize" ) );
|
|
|
|
Any aRelativePosition( xDiaProps->getPropertyValue( "RelativePosition" ) );
|
2009-11-20 11:58:22 +01:00
|
|
|
if( aRelativeSize.hasValue() && aRelativePosition.hasValue() )
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bPosSizeExcludeAxes = false;
|
2012-04-08 10:48:08 -04:30
|
|
|
xDiaProps->getPropertyValue( "PosSizeExcludeAxes" ) >>= bPosSizeExcludeAxes;
|
2009-11-20 11:58:22 +01:00
|
|
|
return bPosSizeExcludeAxes;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2014-02-25 21:31:58 +01:00
|
|
|
awt::Rectangle SAL_CALL DiagramWrapper::calculateDiagramPositionExcludingAxes( ) throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
|
|
|
return m_spChart2ModelContact->GetDiagramRectangleExcludingAxes();
|
|
|
|
}
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL DiagramWrapper::setDiagramPositionIncludingAxes( const awt::Rectangle& rPositionRect ) throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2009-11-20 11:58:22 +01:00
|
|
|
DiagramHelper::setDiagramPositioning( m_spChart2ModelContact->getChartModel(), rPositionRect );
|
|
|
|
uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY );
|
|
|
|
if( xDiaProps.is() )
|
2012-04-08 10:48:08 -04:30
|
|
|
xDiaProps->setPropertyValue("PosSizeExcludeAxes", uno::makeAny(false) );
|
2009-11-20 11:58:22 +01:00
|
|
|
}
|
2014-02-25 21:31:58 +01:00
|
|
|
awt::Rectangle SAL_CALL DiagramWrapper::calculateDiagramPositionIncludingAxes( ) throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
|
|
|
return m_spChart2ModelContact->GetDiagramRectangleIncludingAxes();
|
|
|
|
}
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL DiagramWrapper::setDiagramPositionIncludingAxesAndAxisTitles( const awt::Rectangle& rPositionRect ) throw (uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2010-03-31 18:43:41 +02:00
|
|
|
awt::Rectangle aRect( m_spChart2ModelContact->SubstractAxisTitleSizes(rPositionRect) );
|
|
|
|
DiagramWrapper::setDiagramPositionIncludingAxes( aRect );
|
2009-11-20 11:58:22 +01:00
|
|
|
}
|
2014-02-25 21:31:58 +01:00
|
|
|
::com::sun::star::awt::Rectangle SAL_CALL DiagramWrapper::calculateDiagramPositionIncludingAxesAndAxisTitles( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
|
2009-11-20 11:58:22 +01:00
|
|
|
{
|
|
|
|
return m_spChart2ModelContact->GetDiagramRectangleIncludingTitle();
|
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
// ____ XAxisSupplier ____
|
|
|
|
Reference< XAxis > SAL_CALL DiagramWrapper::getAxis( sal_Int32 nDimensionIndex )
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< XAxis > xAxis;
|
|
|
|
if(!nDimensionIndex)
|
|
|
|
{
|
|
|
|
if( !m_xXAxis.is() )
|
|
|
|
m_xXAxis = new AxisWrapper( AxisWrapper::X_AXIS, m_spChart2ModelContact );
|
|
|
|
xAxis = m_xXAxis;
|
|
|
|
}
|
|
|
|
else if(1==nDimensionIndex)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
if( !m_xYAxis.is() )
|
|
|
|
m_xYAxis = new AxisWrapper( AxisWrapper::Y_AXIS, m_spChart2ModelContact );
|
|
|
|
xAxis = m_xYAxis;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2010-12-03 23:01:44 +01:00
|
|
|
else if(2==nDimensionIndex)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
if( !m_xZAxis.is() )
|
|
|
|
m_xZAxis = new AxisWrapper( AxisWrapper::Z_AXIS, m_spChart2ModelContact );
|
|
|
|
xAxis = m_xZAxis;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2010-12-03 23:01:44 +01:00
|
|
|
return xAxis;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< XAxis > SAL_CALL DiagramWrapper::getSecondaryAxis( sal_Int32 nDimensionIndex )
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< XAxis > xAxis;
|
|
|
|
if(!nDimensionIndex)
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
if( !m_xSecondXAxis.is() )
|
|
|
|
m_xSecondXAxis = new AxisWrapper( AxisWrapper::SECOND_X_AXIS, m_spChart2ModelContact );
|
|
|
|
xAxis = m_xSecondXAxis;
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2010-12-03 23:01:44 +01:00
|
|
|
else if(1==nDimensionIndex)
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
if( !m_xSecondYAxis.is() )
|
|
|
|
m_xSecondYAxis = new AxisWrapper( AxisWrapper::SECOND_Y_AXIS, m_spChart2ModelContact );
|
|
|
|
xAxis = m_xSecondYAxis;
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2010-12-03 23:01:44 +01:00
|
|
|
return xAxis;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
// ____ XAxisZSupplier ____
|
|
|
|
Reference< drawing::XShape > SAL_CALL DiagramWrapper::getZAxisTitle()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(2) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getZMainGrid()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2010-12-03 23:01:44 +01:00
|
|
|
{
|
|
|
|
Reference< beans::XPropertySet > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(2) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = xAxis->getMajorGrid();
|
|
|
|
return xRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getZHelpGrid()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2010-12-03 23:01:44 +01:00
|
|
|
{
|
|
|
|
Reference< beans::XPropertySet > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(2) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = xAxis->getMinorGrid();
|
|
|
|
return xRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getZAxis()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( ! m_xZAxis.is())
|
|
|
|
m_xZAxis = new AxisWrapper( AxisWrapper::Z_AXIS, m_spChart2ModelContact );
|
2010-12-03 23:01:44 +01:00
|
|
|
return Reference< beans::XPropertySet >( m_xZAxis, uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ XTwoAxisXSupplier ____
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getSecondaryXAxis()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
if( ! m_xSecondXAxis.is())
|
2007-05-22 16:17:52 +00:00
|
|
|
m_xSecondXAxis = new AxisWrapper( AxisWrapper::SECOND_X_AXIS, m_spChart2ModelContact );
|
2010-12-03 23:01:44 +01:00
|
|
|
return Reference< beans::XPropertySet >( m_xSecondXAxis, uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ XAxisXSupplier (base of XTwoAxisXSupplier) ____
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > SAL_CALL DiagramWrapper::getXAxisTitle()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(0) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getXAxis()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
if( ! m_xXAxis.is())
|
2007-05-22 16:17:52 +00:00
|
|
|
m_xXAxis = new AxisWrapper( AxisWrapper::X_AXIS, m_spChart2ModelContact );
|
2010-12-03 23:01:44 +01:00
|
|
|
return Reference< beans::XPropertySet >( m_xXAxis, uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getXMainGrid()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(0) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = xAxis->getMajorGrid();
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getXHelpGrid()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(0) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = xAxis->getMinorGrid();
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ XTwoAxisYSupplier ____
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getSecondaryYAxis()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
if( ! m_xSecondYAxis.is())
|
2007-05-22 16:17:52 +00:00
|
|
|
m_xSecondYAxis = new AxisWrapper( AxisWrapper::SECOND_Y_AXIS, m_spChart2ModelContact );
|
2010-12-03 23:01:44 +01:00
|
|
|
return Reference< beans::XPropertySet >( m_xSecondYAxis, uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ XAxisYSupplier (base of XTwoAxisYSupplier) ____
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > SAL_CALL DiagramWrapper::getYAxisTitle()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(1) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getYAxis()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
if( ! m_xYAxis.is())
|
2007-05-22 16:17:52 +00:00
|
|
|
m_xYAxis = new AxisWrapper( AxisWrapper::Y_AXIS, m_spChart2ModelContact );
|
2010-12-03 23:01:44 +01:00
|
|
|
return Reference< beans::XPropertySet >( m_xYAxis, uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getYMainGrid()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(1) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = xAxis->getMajorGrid();
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getYHelpGrid()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< beans::XPropertySet > xRet;
|
|
|
|
Reference< XAxis > xAxis( getAxis(1) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = xAxis->getMinorGrid();
|
|
|
|
return xRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2008-02-18 14:38:45 +00:00
|
|
|
// ____ XSecondAxisTitleSupplier ____
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > SAL_CALL DiagramWrapper::getSecondXAxisTitle()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-02-18 14:38:45 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > xRet;
|
|
|
|
Reference< XAxis > xAxis( getSecondaryAxis(0) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
|
|
|
|
return xRet;
|
2008-02-18 14:38:45 +00:00
|
|
|
}
|
|
|
|
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > SAL_CALL DiagramWrapper::getSecondYAxisTitle()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-02-18 14:38:45 +00:00
|
|
|
{
|
2010-12-03 23:01:44 +01:00
|
|
|
Reference< drawing::XShape > xRet;
|
|
|
|
Reference< XAxis > xAxis( getSecondaryAxis(1) );
|
|
|
|
if( xAxis.is() )
|
|
|
|
xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
|
|
|
|
return xRet;
|
2008-02-18 14:38:45 +00:00
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
// ____ XStatisticDisplay ____
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference<
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::XPropertySet > SAL_CALL DiagramWrapper::getUpBar()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( !m_xUpBarWrapper.is() )
|
|
|
|
{
|
|
|
|
m_xUpBarWrapper = new UpDownBarWrapper( true, m_spChart2ModelContact );
|
|
|
|
}
|
|
|
|
return m_xUpBarWrapper;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference<
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::XPropertySet > SAL_CALL DiagramWrapper::getDownBar()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( !m_xDownBarWrapper.is() )
|
|
|
|
{
|
|
|
|
m_xDownBarWrapper = new UpDownBarWrapper( false, m_spChart2ModelContact );
|
|
|
|
}
|
|
|
|
return m_xDownBarWrapper;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference<
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::XPropertySet > SAL_CALL DiagramWrapper::getMinMaxLine()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( !m_xMinMaxLineWrapper.is() )
|
|
|
|
{
|
|
|
|
m_xMinMaxLineWrapper = new MinMaxLineWrapper( m_spChart2ModelContact );
|
|
|
|
}
|
|
|
|
return m_xMinMaxLineWrapper;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ____ X3DDisplay ____
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > SAL_CALL DiagramWrapper::getWall()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( !m_xWall.is() )
|
|
|
|
{
|
|
|
|
m_xWall = new WallFloorWrapper( true, m_spChart2ModelContact );
|
|
|
|
}
|
|
|
|
return m_xWall;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference<
|
2003-12-18 12:50:56 +00:00
|
|
|
beans::XPropertySet > SAL_CALL DiagramWrapper::getFloor()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
if( !m_xFloor.is() )
|
|
|
|
{
|
|
|
|
m_xFloor = new WallFloorWrapper( false, m_spChart2ModelContact );
|
|
|
|
}
|
|
|
|
return m_xFloor;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2008-05-15 07:25:09 +00:00
|
|
|
// ____ X3DDefaultSetter ____
|
|
|
|
void SAL_CALL DiagramWrapper::set3DSettingsToDefault()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-05-15 07:25:09 +00:00
|
|
|
{
|
|
|
|
Reference< X3DDefaultSetter > x3DDefaultSetter( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY );
|
|
|
|
if( x3DDefaultSetter.is() )
|
|
|
|
x3DDefaultSetter->set3DSettingsToDefault();
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL DiagramWrapper::setDefaultRotation()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-05-15 07:25:09 +00:00
|
|
|
{
|
|
|
|
Reference< X3DDefaultSetter > x3DDefaultSetter( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY );
|
|
|
|
if( x3DDefaultSetter.is() )
|
|
|
|
x3DDefaultSetter->setDefaultRotation();
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL DiagramWrapper::setDefaultIllumination()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-05-15 07:25:09 +00:00
|
|
|
{
|
|
|
|
Reference< X3DDefaultSetter > x3DDefaultSetter( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY );
|
|
|
|
if( x3DDefaultSetter.is() )
|
|
|
|
x3DDefaultSetter->setDefaultIllumination();
|
|
|
|
}
|
|
|
|
|
2003-12-18 12:50:56 +00:00
|
|
|
// ____ XComponent ____
|
|
|
|
void SAL_CALL DiagramWrapper::dispose()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
m_aEventListenerContainer.disposeAndClear( lang::EventObject( static_cast< ::cppu::OWeakObject* >( this )));
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
MutexGuard aGuard( GetMutex());
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
DisposeHelper::DisposeAndClear( m_xXAxis );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xYAxis );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xZAxis );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xSecondXAxis );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xSecondYAxis );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xWall );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xFloor );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xMinMaxLineWrapper );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xUpBarWrapper );
|
|
|
|
DisposeHelper::DisposeAndClear( m_xDownBarWrapper );
|
|
|
|
|
|
|
|
clearWrappedPropertySet();
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL DiagramWrapper::addEventListener(
|
2007-05-22 16:17:52 +00:00
|
|
|
const Reference< lang::XEventListener >& xListener )
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
m_aEventListenerContainer.addInterface( xListener );
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL DiagramWrapper::removeEventListener(
|
2007-05-22 16:17:52 +00:00
|
|
|
const Reference< lang::XEventListener >& aListener )
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
|
|
|
m_aEventListenerContainer.removeInterface( aListener );
|
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
//PROP_DIAGRAM_DATAROW_SOURCE
|
|
|
|
class WrappedDataRowSourceProperty : public WrappedProperty
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
public:
|
|
|
|
WrappedDataRowSourceProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedDataRowSourceProperty();
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
WrappedDataRowSourceProperty::WrappedDataRowSourceProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty("DataRowSource",OUString())
|
2007-05-22 16:17:52 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_aOuterValue()
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
m_aOuterValue = WrappedDataRowSourceProperty::getPropertyDefault( 0 );
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
WrappedDataRowSourceProperty::~WrappedDataRowSourceProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
void WrappedDataRowSourceProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
::com::sun::star::chart::ChartDataRowSource eChartDataRowSource = ::com::sun::star::chart::ChartDataRowSource_ROWS;
|
|
|
|
if( ! (rOuterValue >>= eChartDataRowSource) )
|
2010-06-01 18:16:43 +02:00
|
|
|
{
|
|
|
|
sal_Int32 nNew = ::com::sun::star::chart::ChartDataRowSource_ROWS;
|
|
|
|
if( !(rOuterValue >>= nNew) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property DataRowSource requires ::com::sun::star::chart::ChartDataRowSource value", 0, 0 );
|
2010-06-01 18:16:43 +02:00
|
|
|
else
|
|
|
|
eChartDataRowSource = ::com::sun::star::chart::ChartDataRowSource(nNew);
|
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
m_aOuterValue = rOuterValue;
|
|
|
|
|
|
|
|
bool bNewUseColumns = eChartDataRowSource == ::com::sun::star::chart::ChartDataRowSource_COLUMNS;
|
|
|
|
|
2013-02-28 19:28:03 +01:00
|
|
|
OUString aRangeString;
|
2007-05-22 16:17:52 +00:00
|
|
|
bool bUseColumns = true;
|
|
|
|
bool bFirstCellAsLabel = true;
|
|
|
|
bool bHasCategories = true;
|
|
|
|
uno::Sequence< sal_Int32 > aSequenceMapping;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
if( DataSourceHelper::detectRangeSegmentation(
|
|
|
|
m_spChart2ModelContact->getChartModel(), aRangeString, aSequenceMapping, bUseColumns
|
|
|
|
, bFirstCellAsLabel, bHasCategories ) )
|
|
|
|
{
|
|
|
|
if( bUseColumns != bNewUseColumns )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
aSequenceMapping.realloc(0);
|
|
|
|
DataSourceHelper::setRangeSegmentation(
|
2014-11-03 05:14:45 +01:00
|
|
|
m_spChart2ModelContact->getChartModel(), aSequenceMapping, bNewUseColumns , bFirstCellAsLabel , bHasCategories);
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedDataRowSourceProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
2013-02-28 19:28:03 +01:00
|
|
|
OUString aRangeString;
|
2007-05-22 16:17:52 +00:00
|
|
|
bool bUseColumns = true;
|
|
|
|
bool bFirstCellAsLabel = true;
|
|
|
|
bool bHasCategories = true;
|
|
|
|
uno::Sequence< sal_Int32 > aSequenceMapping;
|
|
|
|
|
|
|
|
if( DataSourceHelper::detectRangeSegmentation(
|
|
|
|
m_spChart2ModelContact->getChartModel(), aRangeString, aSequenceMapping, bUseColumns
|
|
|
|
, bFirstCellAsLabel, bHasCategories ) )
|
|
|
|
{
|
|
|
|
::com::sun::star::chart::ChartDataRowSource eChartDataRowSource = ::com::sun::star::chart::ChartDataRowSource_ROWS;
|
|
|
|
if(bUseColumns)
|
|
|
|
eChartDataRowSource = ::com::sun::star::chart::ChartDataRowSource_COLUMNS;
|
|
|
|
|
|
|
|
m_aOuterValue <<= eChartDataRowSource;
|
|
|
|
}
|
|
|
|
|
|
|
|
return m_aOuterValue;
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedDataRowSourceProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Any aRet;
|
|
|
|
aRet <<= ::com::sun::star::chart::ChartDataRowSource_COLUMNS;
|
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
//PROP_DIAGRAM_STACKED
|
|
|
|
//PROP_DIAGRAM_DEEP
|
|
|
|
//PROP_DIAGRAM_PERCENT_STACKED
|
|
|
|
class WrappedStackingProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedStackingProperty( StackMode eStackMode, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedStackingProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
protected: //methods
|
|
|
|
bool detectInnerValue( StackMode& eInnerStackMode ) const;
|
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
const StackMode m_eStackMode;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedStackingProperty::WrappedStackingProperty( StackMode eStackMode, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
|
|
|
: WrappedProperty(OUString(),OUString())
|
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_eStackMode( eStackMode )
|
|
|
|
, m_aOuterValue()
|
|
|
|
{
|
|
|
|
switch( m_eStackMode )
|
|
|
|
{
|
|
|
|
case StackMode_Y_STACKED:
|
2012-04-08 10:48:08 -04:30
|
|
|
m_aOuterName = "Stacked";
|
2007-05-22 16:17:52 +00:00
|
|
|
break;
|
|
|
|
case StackMode_Y_STACKED_PERCENT:
|
2012-04-08 10:48:08 -04:30
|
|
|
m_aOuterName = "Percent";
|
2007-05-22 16:17:52 +00:00
|
|
|
break;
|
|
|
|
case StackMode_Z_STACKED:
|
2012-04-08 10:48:08 -04:30
|
|
|
m_aOuterName = "Deep";
|
2003-12-18 12:50:56 +00:00
|
|
|
break;
|
2007-05-22 16:17:52 +00:00
|
|
|
default:
|
2011-03-12 11:28:41 +01:00
|
|
|
OSL_FAIL( "unexpected stack mode" );
|
2007-05-22 16:17:52 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedStackingProperty::~WrappedStackingProperty()
|
|
|
|
{
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
bool WrappedStackingProperty::detectInnerValue( StackMode& eStackMode ) const
|
|
|
|
{
|
|
|
|
bool bHasDetectableInnerValue = false;
|
2008-04-04 09:57:08 +00:00
|
|
|
bool bIsAmbiguous = false;
|
|
|
|
eStackMode = DiagramHelper::getStackMode( m_spChart2ModelContact->getChart2Diagram()
|
|
|
|
, bHasDetectableInnerValue, bIsAmbiguous );
|
2007-05-22 16:17:52 +00:00
|
|
|
return bHasDetectableInnerValue;
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
void WrappedStackingProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bNewValue = false;
|
2007-05-22 16:17:52 +00:00
|
|
|
if( ! (rOuterValue >>= bNewValue) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Stacking Properties require boolean values", 0, 0 );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
StackMode eInnerStackMode;
|
|
|
|
bool bHasDetectableInnerValue = detectInnerValue( eInnerStackMode );
|
|
|
|
|
|
|
|
if( !bHasDetectableInnerValue )
|
|
|
|
{
|
|
|
|
m_aOuterValue = rOuterValue;
|
|
|
|
return;
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
if( bNewValue && eInnerStackMode == m_eStackMode )
|
|
|
|
return;
|
|
|
|
if( !bNewValue && eInnerStackMode != m_eStackMode )
|
|
|
|
return;
|
|
|
|
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( xDiagram.is() )
|
|
|
|
{
|
|
|
|
StackMode eNewStackMode = bNewValue ? m_eStackMode : StackMode_NONE;
|
|
|
|
DiagramHelper::setStackMode( xDiagram, eNewStackMode );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedStackingProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
StackMode eInnerStackMode;
|
|
|
|
if( detectInnerValue( eInnerStackMode ) )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bValue = (eInnerStackMode == m_eStackMode);
|
2007-05-22 16:17:52 +00:00
|
|
|
Any aAny;
|
|
|
|
aAny <<= bValue;
|
|
|
|
return aAny;
|
|
|
|
}
|
|
|
|
return m_aOuterValue;
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedStackingProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Any aRet;
|
2014-04-15 15:17:13 +02:00
|
|
|
aRet <<= false;
|
2007-05-22 16:17:52 +00:00
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
//PROP_DIAGRAM_THREE_D
|
|
|
|
class WrappedDim3DProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedDim3DProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedDim3DProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedDim3DProperty::WrappedDim3DProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty("Dim3D",OUString())
|
2007-05-22 16:17:52 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_aOuterValue()
|
|
|
|
{
|
|
|
|
m_aOuterValue = WrappedDim3DProperty::getPropertyDefault( 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedDim3DProperty::~WrappedDim3DProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
void WrappedDim3DProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bNew3D = false;
|
2007-05-22 16:17:52 +00:00
|
|
|
if( ! (rOuterValue >>= bNew3D) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property Dim3D requires boolean value", 0, 0 );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
m_aOuterValue = rOuterValue;
|
|
|
|
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( !xDiagram.is() )
|
|
|
|
return;
|
|
|
|
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bOld3D = DiagramHelper::getDimension( xDiagram ) == 3;
|
2007-05-22 16:17:52 +00:00
|
|
|
if( bOld3D != bNew3D )
|
|
|
|
DiagramHelper::setDimension( xDiagram, bNew3D ? 3 : 2 );
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedDim3DProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( xDiagram.is() )
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool b3D = DiagramHelper::getDimension( xDiagram ) == 3;
|
2007-05-22 16:17:52 +00:00
|
|
|
m_aOuterValue <<= b3D;
|
|
|
|
}
|
|
|
|
return m_aOuterValue;
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedDim3DProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Any aRet;
|
2014-04-15 15:17:13 +02:00
|
|
|
aRet <<= false;
|
2007-05-22 16:17:52 +00:00
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
//PROP_DIAGRAM_VERTICAL
|
|
|
|
class WrappedVerticalProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedVerticalProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedVerticalProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedVerticalProperty::WrappedVerticalProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty("Vertical",OUString())
|
2007-05-22 16:17:52 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_aOuterValue()
|
|
|
|
{
|
|
|
|
m_aOuterValue = WrappedVerticalProperty::getPropertyDefault( 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedVerticalProperty::~WrappedVerticalProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
void WrappedVerticalProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bNewVertical = false;
|
2007-05-22 16:17:52 +00:00
|
|
|
if( ! (rOuterValue >>= bNewVertical) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property Vertical requires boolean value", 0, 0 );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
m_aOuterValue = rOuterValue;
|
|
|
|
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( !xDiagram.is() )
|
|
|
|
return;
|
|
|
|
|
|
|
|
bool bFound = false;
|
|
|
|
bool bAmbiguous = false;
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bOldVertical = DiagramHelper::getVertical( xDiagram, bFound, bAmbiguous );
|
2007-05-22 16:17:52 +00:00
|
|
|
if( bFound && ( bOldVertical != bNewVertical || bAmbiguous ) )
|
|
|
|
DiagramHelper::setVertical( xDiagram, bNewVertical );
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedVerticalProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( xDiagram.is() )
|
|
|
|
{
|
2014-12-06 21:35:03 +01:00
|
|
|
bool bFound = false;
|
|
|
|
bool bAmbiguous = false;
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bVertical = DiagramHelper::getVertical( xDiagram, bFound, bAmbiguous );
|
2007-05-22 16:17:52 +00:00
|
|
|
if( bFound )
|
|
|
|
m_aOuterValue <<= bVertical;
|
|
|
|
}
|
|
|
|
return m_aOuterValue;
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedVerticalProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Any aRet;
|
2014-04-15 15:17:13 +02:00
|
|
|
aRet <<= false;
|
2007-05-22 16:17:52 +00:00
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
//PROP_DIAGRAM_NUMBER_OF_LINES
|
|
|
|
class WrappedNumberOfLinesProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedNumberOfLinesProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedNumberOfLinesProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
protected: //methods
|
|
|
|
bool detectInnerValue( uno::Any& rInnerValue ) const;
|
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedNumberOfLinesProperty::WrappedNumberOfLinesProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty("NumberOfLines",OUString())
|
2007-05-22 16:17:52 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_aOuterValue( this->getPropertyDefault(0) )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedNumberOfLinesProperty::~WrappedNumberOfLinesProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool WrappedNumberOfLinesProperty::detectInnerValue( uno::Any& rInnerValue ) const
|
|
|
|
{
|
|
|
|
sal_Int32 nNumberOfLines = 0;
|
|
|
|
bool bHasDetectableInnerValue = false;
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
uno::Reference< chart2::XChartDocument > xChartDoc( m_spChart2ModelContact->getChart2Document() );
|
|
|
|
if( xDiagram.is() && xChartDoc.is() )
|
|
|
|
{
|
|
|
|
::std::vector< uno::Reference< chart2::XDataSeries > > aSeriesVector(
|
|
|
|
DiagramHelper::getDataSeriesFromDiagram( xDiagram ) );
|
|
|
|
if( aSeriesVector.size() > 0 )
|
|
|
|
{
|
|
|
|
Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY );
|
|
|
|
DiagramHelper::tTemplateWithServiceName aTemplateAndService =
|
|
|
|
DiagramHelper::getTemplateForDiagram( xDiagram, xFact );
|
2012-04-08 10:48:08 -04:30
|
|
|
if( aTemplateAndService.second == "com.sun.star.chart2.template.ColumnWithLine" )
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
try
|
|
|
|
{
|
|
|
|
uno::Reference< beans::XPropertySet > xProp( aTemplateAndService.first, uno::UNO_QUERY );
|
|
|
|
xProp->getPropertyValue( m_aOuterName ) >>= nNumberOfLines;
|
|
|
|
bHasDetectableInnerValue = true;
|
|
|
|
}
|
2011-11-29 02:06:57 +09:00
|
|
|
catch( const uno::Exception & ex )
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
ASSERT_EXCEPTION( ex );
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if(bHasDetectableInnerValue)
|
|
|
|
rInnerValue = uno::makeAny(nNumberOfLines);
|
|
|
|
return bHasDetectableInnerValue;
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
void WrappedNumberOfLinesProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
sal_Int32 nNewValue;
|
|
|
|
if( ! (rOuterValue >>= nNewValue) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "property NumberOfLines requires sal_Int32 value", 0, 0 );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
m_aOuterValue = rOuterValue;
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Reference< chart2::XChartDocument > xChartDoc( m_spChart2ModelContact->getChart2Document() );
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
sal_Int32 nDimension = ::chart::DiagramHelper::getDimension( xDiagram );
|
|
|
|
if( xChartDoc.is() && xDiagram.is() && nDimension == 2 )
|
|
|
|
{
|
|
|
|
Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY );
|
|
|
|
DiagramHelper::tTemplateWithServiceName aTemplateAndService =
|
|
|
|
DiagramHelper::getTemplateForDiagram( xDiagram, xFact );
|
|
|
|
|
|
|
|
uno::Reference< chart2::XChartTypeTemplate > xTemplate(0);
|
2012-04-08 10:48:08 -04:30
|
|
|
if( aTemplateAndService.second == "com.sun.star.chart2.template.ColumnWithLine" )
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
if( nNewValue != 0 )
|
|
|
|
{
|
|
|
|
xTemplate.set( aTemplateAndService.first );
|
|
|
|
try
|
|
|
|
{
|
2007-08-03 11:31:55 +00:00
|
|
|
sal_Int32 nOldValue = 0;
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Reference< beans::XPropertySet > xProp( xTemplate, uno::UNO_QUERY );
|
|
|
|
xProp->getPropertyValue( m_aOuterName ) >>= nOldValue;
|
|
|
|
if( nOldValue == nNewValue )
|
|
|
|
return;
|
|
|
|
}
|
2011-11-29 02:06:57 +09:00
|
|
|
catch( const uno::Exception & ex )
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
ASSERT_EXCEPTION( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
xTemplate.set( xFact->createInstance("com.sun.star.chart2.template.Column"), uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2012-04-08 10:48:08 -04:30
|
|
|
else if( aTemplateAndService.second == "com.sun.star.chart2.template.Column" )
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
if( nNewValue == 0 )
|
|
|
|
return;
|
2012-04-08 10:48:08 -04:30
|
|
|
xTemplate.set( xFact->createInstance( "com.sun.star.chart2.template.ColumnWithLine" ), uno::UNO_QUERY );
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
if(xTemplate.is())
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2011-01-19 21:41:13 +01:00
|
|
|
// locked controllers
|
2013-10-15 07:55:26 +02:00
|
|
|
ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Reference< beans::XPropertySet > xProp( xTemplate, uno::UNO_QUERY );
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->setPropertyValue( "NumberOfLines", uno::makeAny(nNewValue) );
|
2007-05-22 16:17:52 +00:00
|
|
|
xTemplate->changeDiagram( xDiagram );
|
|
|
|
}
|
2011-11-29 02:06:57 +09:00
|
|
|
catch( const uno::Exception & ex )
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
ASSERT_EXCEPTION( ex );
|
|
|
|
}
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedNumberOfLinesProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
Any aRet;
|
|
|
|
if( !detectInnerValue( aRet ) )
|
|
|
|
aRet = m_aOuterValue;
|
|
|
|
return aRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedNumberOfLinesProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
Any aRet;
|
|
|
|
aRet <<= sal_Int32( 0 );
|
|
|
|
return aRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
//PROP_DIAGRAM_ATTRIBUTED_DATA_POINTS
|
|
|
|
class WrappedAttributedDataPointsProperty : public WrappedProperty
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
public:
|
|
|
|
WrappedAttributedDataPointsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedAttributedDataPointsProperty();
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedAttributedDataPointsProperty::WrappedAttributedDataPointsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty("AttributedDataPoints",OUString())
|
2007-05-22 16:17:52 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_aOuterValue()
|
|
|
|
{
|
|
|
|
m_aOuterValue = WrappedAttributedDataPointsProperty::getPropertyDefault( 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedAttributedDataPointsProperty::~WrappedAttributedDataPointsProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
void WrappedAttributedDataPointsProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
uno::Sequence< uno::Sequence< sal_Int32 > > aNewValue;
|
|
|
|
if( ! (rOuterValue >>= aNewValue) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property AttributedDataPoints requires value of type uno::Sequence< uno::Sequence< sal_Int32 > >", 0, 0 );
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
m_aOuterValue = rOuterValue;
|
|
|
|
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
Reference< beans::XPropertySet > xDiaProp( xDiagram, uno::UNO_QUERY );
|
|
|
|
|
|
|
|
if( xDiagram.is() && xDiaProp.is())
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
::std::vector< Reference< chart2::XDataSeries > > aSeriesVector(
|
|
|
|
::chart::DiagramHelper::getDataSeriesFromDiagram( xDiagram ) );
|
|
|
|
::std::vector< Reference< chart2::XDataSeries > >::const_iterator aIt =
|
|
|
|
aSeriesVector.begin();
|
|
|
|
sal_Int32 i = 0;
|
|
|
|
for( ; aIt != aSeriesVector.end(); ++aIt, ++i )
|
|
|
|
{
|
|
|
|
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY );
|
|
|
|
if( xProp.is())
|
|
|
|
{
|
|
|
|
uno::Any aVal;
|
|
|
|
if( i < aNewValue.getLength() )
|
|
|
|
aVal <<= aNewValue[i];
|
|
|
|
else
|
|
|
|
{
|
|
|
|
//set empty sequence
|
|
|
|
uno::Sequence< sal_Int32 > aSeq;
|
|
|
|
aVal <<= aSeq;
|
|
|
|
}
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->setPropertyValue( "AttributedDataPoints", aVal );
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedAttributedDataPointsProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
Reference< beans::XPropertySet > xDiaProp( xDiagram, uno::UNO_QUERY );
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
if( xDiagram.is() && xDiaProp.is())
|
|
|
|
{
|
|
|
|
::std::vector< Reference< chart2::XDataSeries > > aSeriesVector(
|
|
|
|
::chart::DiagramHelper::getDataSeriesFromDiagram( xDiagram ) );
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Sequence< uno::Sequence< sal_Int32 > > aResult( aSeriesVector.size() );
|
|
|
|
|
|
|
|
::std::vector< Reference< chart2::XDataSeries > >::const_iterator aIt =
|
|
|
|
aSeriesVector.begin();
|
|
|
|
sal_Int32 i = 0;
|
|
|
|
for( ; aIt != aSeriesVector.end(); ++aIt, ++i )
|
|
|
|
{
|
|
|
|
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY );
|
|
|
|
if( xProp.is())
|
|
|
|
{
|
|
|
|
uno::Any aVal(
|
2012-04-08 10:48:08 -04:30
|
|
|
xProp->getPropertyValue("AttributedDataPoints"));
|
2007-05-22 16:17:52 +00:00
|
|
|
uno::Sequence< sal_Int32 > aSeq;
|
|
|
|
if( aVal >>= aSeq )
|
|
|
|
aResult[ i ] = aSeq;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_aOuterValue <<= aResult;
|
|
|
|
}
|
|
|
|
return m_aOuterValue;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2007-07-25 07:26:58 +00:00
|
|
|
Any WrappedAttributedDataPointsProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
2007-05-22 16:17:52 +00:00
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
Any aRet;
|
|
|
|
uno::Sequence< uno::Sequence< sal_Int32 > > aSeq;
|
|
|
|
aRet <<= aSeq;
|
|
|
|
return aRet;
|
2003-12-18 12:50:56 +00:00
|
|
|
}
|
|
|
|
|
2008-01-14 12:56:02 +00:00
|
|
|
//PROP_DIAGRAM_SOLIDTYPE
|
|
|
|
class WrappedSolidTypeProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedSolidTypeProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedSolidTypeProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2008-01-14 12:56:02 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2008-01-14 12:56:02 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2008-01-14 12:56:02 +00:00
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
mutable Any m_aOuterValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedSolidTypeProperty::WrappedSolidTypeProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty( "SolidType", OUString() )
|
2008-01-14 12:56:02 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
, m_aOuterValue()
|
|
|
|
{
|
|
|
|
m_aOuterValue = WrappedSolidTypeProperty::getPropertyDefault( 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedSolidTypeProperty::~WrappedSolidTypeProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void WrappedSolidTypeProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
sal_Int32 nNewSolidType = ::com::sun::star::chart::ChartSolidType::RECTANGULAR_SOLID;
|
|
|
|
if( ! (rOuterValue >>= nNewSolidType) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property SolidType requires integer value", 0, 0 );
|
2008-01-14 12:56:02 +00:00
|
|
|
|
|
|
|
m_aOuterValue = rOuterValue;
|
|
|
|
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( !xDiagram.is() )
|
|
|
|
return;
|
|
|
|
|
|
|
|
bool bFound = false;
|
|
|
|
bool bAmbiguous = false;
|
|
|
|
sal_Int32 nOldSolidType = DiagramHelper::getGeometry3D( xDiagram, bFound, bAmbiguous );
|
|
|
|
if( bFound && ( nOldSolidType != nNewSolidType || bAmbiguous ) )
|
|
|
|
DiagramHelper::setGeometry3D( xDiagram, nNewSolidType );
|
|
|
|
}
|
|
|
|
|
|
|
|
Any WrappedSolidTypeProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
|
|
|
|
if( xDiagram.is() )
|
|
|
|
{
|
2014-12-06 21:35:03 +01:00
|
|
|
bool bFound = false;
|
|
|
|
bool bAmbiguous = false;
|
2008-01-14 12:56:02 +00:00
|
|
|
sal_Int32 nGeometry = DiagramHelper::getGeometry3D( xDiagram, bFound, bAmbiguous );
|
|
|
|
if( bFound )
|
|
|
|
m_aOuterValue <<= nGeometry;
|
|
|
|
}
|
|
|
|
return m_aOuterValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
Any WrappedSolidTypeProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
return uno::makeAny( ::com::sun::star::chart::ChartSolidType::RECTANGULAR_SOLID );
|
|
|
|
}
|
|
|
|
|
2008-10-01 07:35:04 +00:00
|
|
|
class WrappedAutomaticSizeProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedAutomaticSizeProperty();
|
|
|
|
virtual ~WrappedAutomaticSizeProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2008-10-01 07:35:04 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyValue( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2008-10-01 07:35:04 +00:00
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefault( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
2008-10-01 07:35:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
WrappedAutomaticSizeProperty::WrappedAutomaticSizeProperty()
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty( "AutomaticSize", OUString() )
|
2008-10-01 07:35:04 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedAutomaticSizeProperty::~WrappedAutomaticSizeProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void WrappedAutomaticSizeProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const
|
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
if( xInnerPropertySet.is() )
|
|
|
|
{
|
|
|
|
bool bNewValue = true;
|
|
|
|
if( ! (rOuterValue >>= bNewValue) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property AutomaticSize requires value of type boolean", 0, 0 );
|
2008-10-01 07:35:04 +00:00
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
if( bNewValue )
|
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
Any aRelativeSize( xInnerPropertySet->getPropertyValue( "RelativeSize" ) );
|
2008-10-01 07:35:04 +00:00
|
|
|
if( aRelativeSize.hasValue() )
|
2012-04-08 10:48:08 -04:30
|
|
|
xInnerPropertySet->setPropertyValue( "RelativeSize", Any() );
|
2008-10-01 07:35:04 +00:00
|
|
|
}
|
|
|
|
}
|
2011-11-29 02:06:57 +09:00
|
|
|
catch( const uno::Exception & ex )
|
2008-10-01 07:35:04 +00:00
|
|
|
{
|
|
|
|
ASSERT_EXCEPTION( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Any WrappedAutomaticSizeProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const
|
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Any aRet( getPropertyDefault( Reference< beans::XPropertyState >( xInnerPropertySet, uno::UNO_QUERY ) ) );
|
|
|
|
if( xInnerPropertySet.is() )
|
|
|
|
{
|
2012-04-08 10:48:08 -04:30
|
|
|
Any aRelativeSize( xInnerPropertySet->getPropertyValue( "RelativeSize" ) );
|
2008-10-01 07:35:04 +00:00
|
|
|
if( !aRelativeSize.hasValue() )
|
|
|
|
aRet <<= true;
|
|
|
|
}
|
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
Any WrappedAutomaticSizeProperty::getPropertyDefault( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
|
|
|
|
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
|
|
|
Any aRet;
|
|
|
|
aRet <<= false;
|
|
|
|
return aRet;
|
|
|
|
}
|
|
|
|
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
//PROP_DIAGRAM_INCLUDE_HIDDEN_CELLS
|
|
|
|
class WrappedIncludeHiddenCellsProperty : public WrappedProperty
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WrappedIncludeHiddenCellsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
|
|
|
|
virtual ~WrappedIncludeHiddenCellsProperty();
|
|
|
|
|
|
|
|
virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
|
|
|
|
private: //member
|
|
|
|
::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
|
|
|
};
|
|
|
|
|
|
|
|
WrappedIncludeHiddenCellsProperty::WrappedIncludeHiddenCellsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
|
2012-04-08 10:48:08 -04:30
|
|
|
: WrappedProperty("IncludeHiddenCells","IncludeHiddenCells")
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
, m_spChart2ModelContact( spChart2ModelContact )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
WrappedIncludeHiddenCellsProperty::~WrappedIncludeHiddenCellsProperty()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void WrappedIncludeHiddenCellsProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const
|
|
|
|
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bNewValue = false;
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
if( ! (rOuterValue >>= bNewValue) )
|
2012-04-08 10:48:08 -04:30
|
|
|
throw lang::IllegalArgumentException( "Property Dim3D requires boolean value", 0, 0 );
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
|
2013-10-15 07:55:26 +02:00
|
|
|
ChartModelHelper::setIncludeHiddenCells( bNewValue, *m_spChart2ModelContact->getModel() );
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
}
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
// ____ XDiagramProvider ____
|
|
|
|
Reference< chart2::XDiagram > SAL_CALL DiagramWrapper::getDiagram()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2007-05-22 16:17:52 +00:00
|
|
|
{
|
|
|
|
return m_spChart2ModelContact->getChart2Diagram();
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
void SAL_CALL DiagramWrapper::setDiagram(
|
2007-07-25 07:26:58 +00:00
|
|
|
const Reference< chart2::XDiagram >& /*xDiagram*/ )
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
//@todo: remove this method from interface
|
2011-03-01 19:05:02 +01:00
|
|
|
OSL_FAIL("DiagramWrapper::setDiagram is not implemented, should be removed and not be called" );
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
Reference< beans::XPropertySet > DiagramWrapper::getInnerPropertySet()
|
2003-12-18 12:50:56 +00:00
|
|
|
{
|
2007-05-22 16:17:52 +00:00
|
|
|
return Reference< beans::XPropertySet >( m_spChart2ModelContact->getChart2Diagram(), uno::UNO_QUERY );
|
|
|
|
}
|
|
|
|
|
|
|
|
const Sequence< beans::Property >& DiagramWrapper::getPropertySequence()
|
|
|
|
{
|
2010-10-05 11:10:54 +02:00
|
|
|
return *StaticDiagramWrapperPropertyArray::get();
|
2007-05-22 16:17:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const std::vector< WrappedProperty* > DiagramWrapper::createWrappedProperties()
|
|
|
|
{
|
|
|
|
::std::vector< ::chart::WrappedProperty* > aWrappedProperties;
|
|
|
|
|
|
|
|
WrappedAxisAndGridExistenceProperties::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedAxisTitleExistenceProperties::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedAxisLabelExistenceProperties::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedSceneProperty::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedIgnoreProperties::addIgnoreFillProperties( aWrappedProperties );
|
|
|
|
WrappedIgnoreProperties::addIgnoreLineProperties( aWrappedProperties );
|
|
|
|
WrappedStatisticProperties::addWrappedPropertiesForDiagram( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedSymbolProperties::addWrappedPropertiesForDiagram( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedDataCaptionProperties::addWrappedPropertiesForDiagram( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedSplineProperties::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
|
|
|
|
WrappedStockProperties::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
|
2008-10-01 07:35:04 +00:00
|
|
|
WrappedAutomaticPositionProperties::addWrappedProperties( aWrappedProperties );
|
2014-03-28 12:29:13 -04:00
|
|
|
WrappedGL3DProperties::addWrappedProperties(aWrappedProperties, m_spChart2ModelContact);
|
2007-05-22 16:17:52 +00:00
|
|
|
|
|
|
|
aWrappedProperties.push_back( new WrappedDataRowSourceProperty( m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedStackingProperty( StackMode_Y_STACKED,m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedStackingProperty( StackMode_Y_STACKED_PERCENT, m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedStackingProperty( StackMode_Z_STACKED, m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedDim3DProperty( m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedVerticalProperty( m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedNumberOfLinesProperty( m_spChart2ModelContact ) );
|
|
|
|
aWrappedProperties.push_back( new WrappedAttributedDataPointsProperty( m_spChart2ModelContact ) );
|
2012-04-08 10:48:08 -04:30
|
|
|
aWrappedProperties.push_back( new WrappedProperty( "StackedBarsConnected", "ConnectBars" ) );
|
2008-01-14 12:56:02 +00:00
|
|
|
aWrappedProperties.push_back( new WrappedSolidTypeProperty( m_spChart2ModelContact ) );
|
2008-10-01 07:35:04 +00:00
|
|
|
aWrappedProperties.push_back( new WrappedAutomaticSizeProperty() );
|
CWS-TOOLING: integrate CWS koheichart01
2009-05-15 06:32:38 +0200 hde r271925 : header fixed
2009-04-14 16:23:35 +0200 hde r270792 : #100231#
2009-04-14 16:13:48 +0200 hde r270790 : #100231#
2009-04-14 15:56:14 +0200 hde r270787 : #100231#
2009-04-14 14:28:40 +0200 hde r270767 : #100231#
2009-04-14 14:27:30 +0200 hde r270766 : #100231#
2009-04-14 09:43:07 +0200 hde r270749 : #100231#
2009-04-14 09:25:52 +0200 hde r270748 : #100231#
2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning
2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment.
2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's
hidden state.
2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled
elsewhere.
2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more).
2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is
false. Also avoid adding data cache when the cell is hidden.
2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync.
2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync.
2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44)
2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx
2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly
2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable
2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording
2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden'
2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description
2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code
2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo
2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges
2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider
2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of
problem during rebase.
2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication
2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste
2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case.
2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value.
This fixes the broken missing value treatment.
2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore
2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting
2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer
2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series
2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes
2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file
2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member
2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods
2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy
2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo
2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells
2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts
2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells
2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values.
2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates.
2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38)
2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on
modified lines and removal of unnecessary 'using' statements.
2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells'
options it false! I'm glad I caught this.
2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function.
2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach.
Instead of using the original data point index in the object name,
leave that index alone, and remove hidden data in the tooltip text
value lookup code.
2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account
the hidden data points (if any).
2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37)
2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578.
2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning.
2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning.
2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped.
2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true.
2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box.
2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion.
2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short.
2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup.
2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types.
2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions.
2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page.
2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be
zero even when the document has charts.
2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener
that listens on cells show/hide state for the chart's data areas.
2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied.
2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
|
|
|
aWrappedProperties.push_back( new WrappedIncludeHiddenCellsProperty( m_spChart2ModelContact ) );
|
|
|
|
|
2007-05-22 16:17:52 +00:00
|
|
|
return aWrappedProperties;
|
|
|
|
}
|
|
|
|
|
|
|
|
uno::Sequence< OUString > DiagramWrapper::getSupportedServiceNames_Static()
|
|
|
|
{
|
|
|
|
uno::Sequence< OUString > aServices( 8 );
|
2012-04-08 10:48:08 -04:30
|
|
|
aServices[ 0 ] = "com.sun.star.chart.Diagram";
|
2012-11-29 20:48:11 +01:00
|
|
|
aServices[ 1 ] = "com.sun.star.xml.UserDefinedAttributesSupplier";
|
2012-04-08 10:48:08 -04:30
|
|
|
aServices[ 2 ] = "com.sun.star.chart.StackableDiagram";
|
|
|
|
aServices[ 3 ] = "com.sun.star.chart.ChartAxisXSupplier";
|
|
|
|
aServices[ 4 ] = "com.sun.star.chart.ChartAxisYSupplier";
|
|
|
|
aServices[ 5 ] = "com.sun.star.chart.ChartAxisZSupplier";
|
|
|
|
aServices[ 6 ] = "com.sun.star.chart.ChartTwoAxisXSupplier";
|
|
|
|
aServices[ 7 ] = "com.sun.star.chart.ChartTwoAxisYSupplier";
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
return aServices;
|
|
|
|
}
|
|
|
|
|
|
|
|
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
|
2014-12-09 08:30:11 +02:00
|
|
|
OUString SAL_CALL DiagramWrapper::getImplementationName()
|
|
|
|
throw( css::uno::RuntimeException, std::exception )
|
|
|
|
{
|
|
|
|
return getImplementationName_Static();
|
|
|
|
}
|
|
|
|
|
|
|
|
OUString DiagramWrapper::getImplementationName_Static()
|
|
|
|
{
|
|
|
|
return OUString(lcl_aServiceName);
|
|
|
|
}
|
|
|
|
|
|
|
|
sal_Bool SAL_CALL DiagramWrapper::supportsService( const OUString& rServiceName )
|
|
|
|
throw( css::uno::RuntimeException, std::exception )
|
|
|
|
{
|
|
|
|
return cppu::supportsService(this, rServiceName);
|
|
|
|
}
|
|
|
|
|
|
|
|
css::uno::Sequence< OUString > SAL_CALL DiagramWrapper::getSupportedServiceNames()
|
|
|
|
throw( css::uno::RuntimeException, std::exception )
|
|
|
|
{
|
|
|
|
return getSupportedServiceNames_Static();
|
|
|
|
}
|
2003-12-18 12:50:56 +00:00
|
|
|
|
|
|
|
} // namespace wrapper
|
|
|
|
} // namespace chart
|
2010-10-12 15:59:00 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|