1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #include "oox/drawingml/chart/modelbase.hxx"
25 
26 #include "oox/helper/attributelist.hxx"
27 
28 namespace oox {
29 namespace drawingml {
30 namespace chart {
31 
32 // ============================================================================
33 
34 using ::rtl::OUString;
35 
36 // ============================================================================
37 
NumberFormat()38 NumberFormat::NumberFormat() :
39     mbSourceLinked( true )
40 {
41 }
42 
setAttributes(const AttributeList & rAttribs)43 void NumberFormat::setAttributes( const AttributeList& rAttribs )
44 {
45     maFormatCode = rAttribs.getString( XML_formatCode, OUString() );
46     // default is 'false', not 'true' as specified
47     mbSourceLinked = rAttribs.getBool( XML_sourceLinked, false );
48 }
49 
50 // ============================================================================
51 
LayoutModel()52 LayoutModel::LayoutModel() :
53     mfX( 0.0 ),
54     mfY( 0.0 ),
55     mfW( 0.0 ),
56     mfH( 0.0 ),
57     mnXMode( XML_factor ),
58     mnYMode( XML_factor ),
59     mnWMode( XML_factor ),
60     mnHMode( XML_factor ),
61     mnTarget( XML_outer ),
62     mbAutoLayout( true )
63 {
64 }
65 
~LayoutModel()66 LayoutModel::~LayoutModel()
67 {
68 }
69 
70 // ============================================================================
71 
72 } // namespace chart
73 } // namespace drawingml
74 } // namespace oox
75