Update ooo320-m1
[ooovba.git] / sc / inc / dpoutputgeometry.hxx
blobd423d186ad7da3596b924bf394ab4f5156b669cc
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: xmldpimp.cxx,v $
10 * $Revision: 1.27.134.1 $
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 ************************************************************************/
31 #ifndef SC_DPOUTPUTGEOMETRY_HXX
32 #define SC_DPOUTPUTGEOMETRY_HXX
34 #include "address.hxx"
35 #include <vector>
37 class ScAddress;
39 class SC_DLLPUBLIC ScDPOutputGeometry
41 public:
42 enum FieldType { Column, Row, Page, Data, None };
43 enum ImportType { ODF, XLS };
45 ScDPOutputGeometry(const ScRange& rOutRange, bool bShowFilter, ImportType eImportType);
46 ~ScDPOutputGeometry();
48 /**
49 * @param nCount number of row fields, <b>excluding the data layout
50 * field if exists</b>.
52 void setRowFieldCount(sal_uInt32 nCount);
53 void setColumnFieldCount(sal_uInt32 nCount);
54 void setPageFieldCount(sal_uInt32 nCount);
55 void setDataFieldCount(sal_uInt32 nCount);
57 void getColumnFieldPositions(::std::vector<ScAddress>& rAddrs) const;
58 void getRowFieldPositions(::std::vector<ScAddress>& rAddrs) const;
59 void getPageFieldPositions(::std::vector<ScAddress>& rAddrs) const;
61 SCROW getRowFieldHeaderRow() const;
63 FieldType getFieldButtonType(const ScAddress& rPos) const;
65 private:
66 ScDPOutputGeometry(); // disabled
68 private:
69 ScRange maOutRange;
70 sal_uInt32 mnRowFields; /// number of row fields (data layout field NOT included!)
71 sal_uInt32 mnColumnFields;
72 sal_uInt32 mnPageFields;
73 sal_uInt32 mnDataFields;
75 ImportType meImportType;
77 bool mbShowFilter;
80 #endif