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: dpshttab.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 ************************************************************************/
31 #ifndef SC_DPSHTTAB_HXX
32 #define SC_DPSHTTAB_HXX
34 #ifndef SC_DPTABDAT_HXX
35 #include "dptabdat.hxx"
44 // --------------------------------------------------------------------
46 // implementation of ScDPTableData with sheet data
49 struct ScSheetSourceDesc
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
64 ScSheetDPData_Impl
* pImpl
;
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