merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_sch / cellranges.hxx
blob0986d4c10293ad28cda2499b9fbf99c355fee23e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cellranges.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SCH_CELLRANGES_HXX_
31 #define _SCH_CELLRANGES_HXX_
33 #ifndef _SAL_TYPES_H_
34 #include <sal/types.h>
35 #endif
36 #ifndef _RTL_USTRING_HXX_
37 #include <rtl/ustring.hxx>
38 #endif
39 #include <vector>
40 namespace binfilter {
42 // Structures for CellRangeAddresses from container documents (Writer/Calc)
43 // ========================================================================
45 struct SchSingleCell
47 sal_Int32 mnColumn, mnRow;
48 sal_Bool mbRelativeColumn : 1; // if true the $-sign before the address is skipped in the XML format
49 sal_Bool mbRelativeRow : 1; // see above
51 SchSingleCell() :
52 mnColumn( -1 ),
53 mnRow( -1 ),
54 mbRelativeColumn( sal_False ),
55 mbRelativeRow( sal_False )
59 struct SchCellAddress
61 ::std::vector< SchSingleCell > maCells; // to handle subtables (Writer)
64 struct SchCellRangeAddress
66 SchCellAddress maUpperLeft;
67 SchCellAddress maLowerRight; // range is one cell if this vector is empty (or equal to aUpperLeft)
68 ::rtl::OUString msTableName;
69 sal_Int32 mnTableNumber; // to reconstruct old address string in Calc
71 SchCellRangeAddress() :
72 mnTableNumber( -1 )
76 struct SchChartRange
78 ::std::vector< SchCellRangeAddress > maRanges; // a number of ranges describing the complete source data for the chart
79 sal_Bool mbFirstColumnContainsLabels;
80 sal_Bool mbFirstRowContainsLabels;
81 sal_Bool mbKeepCopyOfData; // if this is true, the chart will export a table containing the current data
83 SchChartRange() :
84 mbFirstColumnContainsLabels( sal_False ),
85 mbFirstRowContainsLabels( sal_False ),
86 mbKeepCopyOfData( sal_True )
90 } //namespace binfilter
91 #endif // _SCH_CELLRANGES_HXX_