1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cellranges.hxx,v $
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_
34 #include <sal/types.h>
36 #ifndef _RTL_USTRING_HXX_
37 #include <rtl/ustring.hxx>
42 // Structures for CellRangeAddresses from container documents (Writer/Calc)
43 // ========================================================================
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
54 mbRelativeColumn( sal_False
),
55 mbRelativeRow( sal_False
)
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() :
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
84 mbFirstColumnContainsLabels( sal_False
),
85 mbFirstRowContainsLabels( sal_False
),
86 mbKeepCopyOfData( sal_True
)
90 } //namespace binfilter
91 #endif // _SCH_CELLRANGES_HXX_