Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sc / dpshttab.hxx
blobd2209ac5f6bb9a7f20701ede115d81fd3dd76fd3
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: dpshttab.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 ************************************************************************/
31 #ifndef SC_DPSHTTAB_HXX
32 #define SC_DPSHTTAB_HXX
34 #ifndef SC_DPTABDAT_HXX
35 #include "dptabdat.hxx"
36 #endif
38 #ifndef SC_SCGLOB_HXX
39 #include "global.hxx"
40 #endif
41 namespace binfilter {
44 // --------------------------------------------------------------------
46 // implementation of ScDPTableData with sheet data
49 struct ScSheetSourceDesc
51 ScRange aSourceRange;
52 ScQueryParam aQueryParam;
54 BOOL operator== ( const ScSheetSourceDesc& rOther ) const
55 { return aSourceRange == rOther.aSourceRange &&
56 aQueryParam == rOther.aQueryParam; }
59 class ScSheetDPData_Impl;
61 class ScSheetDPData : public ScDPTableData
63 private:
64 ScSheetDPData_Impl* pImpl;
65 BOOL* pSpecial;
67 public:
68 ScSheetDPData( ScDocument* pD, const ScSheetSourceDesc& rDesc );
69 virtual ~ScSheetDPData();
71 virtual long GetColumnCount();
72 virtual const TypedStrCollection& GetColumnEntries(long nColumn);
73 virtual String getDimensionName(long nColumn);
74 virtual BOOL getIsDataLayoutDimension(long nColumn);
75 virtual BOOL IsDateDimension(long nDim);
76 virtual UINT32 GetNumberFormat(long nDim);
77 virtual void DisposeData();
78 virtual void SetEmptyFlags( BOOL bIgnoreEmptyRows, BOOL bRepeatIfEmpty );
80 virtual void ResetIterator();
81 virtual BOOL GetNextRow( const ScDPTableIteratorParam& rParam );
86 } //namespace binfilter
87 #endif