fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / inc / drawingml / chart / titleconverter.hxx
blobd5f6525f582f8ff29efc13fd5bf0f81135d0b795
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_OOX_DRAWINGML_CHART_TITLECONVERTER_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_TITLECONVERTER_HXX
23 #include <drawingml/chart/converterbase.hxx>
25 namespace com { namespace sun { namespace star {
26 namespace chart2 { class XDiagram; }
27 namespace chart2 { class XFormattedString; }
28 namespace chart2 { class XTitled; }
29 namespace chart2 { namespace data { class XDataSequence; } }
30 } } }
32 namespace oox { namespace drawingml { struct TextCharacterProperties; } }
34 namespace oox {
35 namespace drawingml {
36 namespace chart {
40 struct TextModel;
42 class TextConverter : public ConverterBase< TextModel >
44 public:
45 explicit TextConverter( const ConverterRoot& rParent, TextModel& rModel );
46 virtual ~TextConverter();
48 /** Creates a data sequence object from the contained text data. */
49 ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >
50 createDataSequence( const OUString& rRole );
51 /** Creates a sequence of formatted string objects. */
52 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XFormattedString > >
53 createStringSequence(
54 const OUString& rDefaultText,
55 const ModelRef< TextBody >& rxTextProp,
56 ObjectType eObjType );
58 private:
59 ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XFormattedString >
60 appendFormattedString(
61 ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XFormattedString > >& orStringVec,
62 const OUString& rString,
63 bool bAddNewLine ) const;
68 struct TitleModel;
70 class TitleConverter : public ConverterBase< TitleModel >
72 public:
73 explicit TitleConverter( const ConverterRoot& rParent, TitleModel& rModel );
74 virtual ~TitleConverter();
76 /** Creates a title text object and attaches it at the passed interface. */
77 void convertFromModel(
78 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XTitled >& rxTitled,
79 const OUString& rAutoTitle, ObjectType eObjType,
80 sal_Int32 nMainIdx = -1, sal_Int32 nSubIdx = -1 );
85 struct LegendModel;
87 class LegendConverter : public ConverterBase< LegendModel >
89 public:
90 explicit LegendConverter( const ConverterRoot& rParent, LegendModel& rModel );
91 virtual ~LegendConverter();
93 /** Creates a legend object and attaches it at the passed diagram. */
94 void convertFromModel(
95 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& rxDiagram );
100 } // namespace chart
101 } // namespace drawingml
102 } // namespace oox
104 #endif
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */