2010-10-27 12:43:08 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +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 .
|
|
|
|
*/
|
2013-10-23 22:48:59 +02:00
|
|
|
#ifndef INCLUDED_CHART2_SOURCE_INC_TITLEHELPER_HXX
|
|
|
|
#define INCLUDED_CHART2_SOURCE_INC_TITLEHELPER_HXX
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2007-05-22 17:23:19 +00:00
|
|
|
#include "ReferenceSizeProvider.hxx"
|
2008-12-30 13:32:01 +00:00
|
|
|
#include "charttoolsdllapi.hxx"
|
2004-01-26 08:13:31 +00:00
|
|
|
#include <com/sun/star/chart2/XTitled.hpp>
|
2003-10-06 08:58:36 +00:00
|
|
|
#include <com/sun/star/frame/XModel.hpp>
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
2007-05-22 17:23:19 +00:00
|
|
|
#include <com/sun/star/chart2/XDiagram.hpp>
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2013-10-15 07:55:26 +02:00
|
|
|
#include "ChartModel.hxx"
|
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
|
2008-12-30 13:32:01 +00:00
|
|
|
class OOO_DLLPUBLIC_CHARTTOOLS TitleHelper
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum eTitleType
|
|
|
|
{
|
2003-10-06 11:54:18 +00:00
|
|
|
TITLE_BEGIN = 0,
|
|
|
|
MAIN_TITLE = 0,
|
2003-10-06 08:58:36 +00:00
|
|
|
SUB_TITLE,
|
|
|
|
X_AXIS_TITLE,
|
|
|
|
Y_AXIS_TITLE,
|
|
|
|
Z_AXIS_TITLE,
|
2008-02-18 15:00:07 +00:00
|
|
|
SECONDARY_X_AXIS_TITLE,
|
|
|
|
SECONDARY_Y_AXIS_TITLE,
|
2007-05-22 17:23:19 +00:00
|
|
|
NORMAL_TITLE_END,
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2007-05-22 17:23:19 +00:00
|
|
|
//it is intended that this both types are after NORMAL_TITLE_END
|
|
|
|
TITLE_AT_STANDARD_X_AXIS_POSITION, //equals the Y_AXIS_TITLE for barchart
|
|
|
|
TITLE_AT_STANDARD_Y_AXIS_POSITION //equals the X_AXIS_TITLE for barchart
|
|
|
|
};
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2013-10-15 07:55:26 +02:00
|
|
|
static ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::chart2::XTitle >
|
|
|
|
getTitle( eTitleType nTitleIndex
|
|
|
|
, ChartModel& rModel );
|
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
static ::com::sun::star::uno::Reference<
|
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
|
|
|
::com::sun::star::chart2::XTitle >
|
2003-10-06 08:58:36 +00:00
|
|
|
getTitle( eTitleType nTitleIndex
|
|
|
|
, const ::com::sun::star::uno::Reference<
|
2013-10-15 07:55:26 +02:00
|
|
|
::com::sun::star::frame::XModel >& xModel );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
static ::com::sun::star::uno::Reference<
|
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
|
|
|
::com::sun::star::chart2::XTitle >
|
2003-10-06 08:58:36 +00:00
|
|
|
createTitle( eTitleType nTitleIndex
|
2013-04-07 12:06:47 +02:00
|
|
|
, const OUString& rTitleText
|
2003-10-06 08:58:36 +00:00
|
|
|
, const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::frame::XModel >& xModel
|
|
|
|
, const ::com::sun::star::uno::Reference<
|
2007-05-22 17:23:19 +00:00
|
|
|
::com::sun::star::uno::XComponentContext > & xContext
|
|
|
|
, ReferenceSizeProvider * pRefSizeProvider = 0 );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
static void removeTitle( eTitleType nTitleIndex
|
|
|
|
, const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::frame::XModel >& xModel );
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
static OUString getCompleteString( const ::com::sun::star::uno::Reference<
|
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
|
|
|
::com::sun::star::chart2::XTitle >& xTitle );
|
2013-04-07 12:06:47 +02:00
|
|
|
static void setCompleteString( const OUString& rNewText
|
2003-10-06 08:58:36 +00:00
|
|
|
, const ::com::sun::star::uno::Reference<
|
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
|
|
|
::com::sun::star::chart2::XTitle >& xTitle
|
2003-10-06 08:58:36 +00:00
|
|
|
, const ::com::sun::star::uno::Reference<
|
2007-05-22 17:23:19 +00:00
|
|
|
::com::sun::star::uno::XComponentContext > & xContext
|
|
|
|
, float * pDefaultCharHeight = 0 );
|
|
|
|
|
2013-10-15 07:55:26 +02:00
|
|
|
static bool getTitleType( eTitleType& rType
|
|
|
|
, const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::chart2::XTitle >& xTitle
|
|
|
|
, ChartModel& rModel);
|
|
|
|
|
2007-05-22 17:23:19 +00:00
|
|
|
static bool getTitleType( eTitleType& rType
|
|
|
|
, const ::com::sun::star::uno::Reference<
|
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
|
|
|
::com::sun::star::chart2::XTitle >& xTitle
|
2007-05-22 17:23:19 +00:00
|
|
|
, const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::frame::XModel >& xModel );
|
2003-10-06 08:58:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} //namespace chart
|
|
|
|
#endif
|
2010-10-27 12:43:08 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|