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 #include "dptabdat.hxx"
36 #include "address.hxx"
38 #include "queryparam.hxx"
42 namespace com
{ namespace sun
{ namespace star
{ namespace sheet
{
43 struct DataPilotFieldFilter
;
49 // --------------------------------------------------------------------
51 // implementation of ScDPTableData with sheet data
54 struct ScSheetSourceDesc
57 ScQueryParam aQueryParam
;
59 BOOL
operator== ( const ScSheetSourceDesc
& rOther
) const
60 { return aSourceRange
== rOther
.aSourceRange
&&
61 aQueryParam
== rOther
.aQueryParam
; }
64 class ScSheetDPData_Impl
;
66 class SC_DLLPUBLIC ScSheetDPData
: public ScDPTableData
69 ScSheetDPData_Impl
* pImpl
;
72 ScSheetDPData( ScDocument
* pD
, const ScSheetSourceDesc
& rDesc
);
73 virtual ~ScSheetDPData();
75 virtual long GetColumnCount();
76 virtual const TypedScStrCollection
& GetColumnEntries(long nColumn
);
77 virtual String
getDimensionName(long nColumn
);
78 virtual BOOL
getIsDataLayoutDimension(long nColumn
);
79 virtual BOOL
IsDateDimension(long nDim
);
80 virtual UINT32
GetNumberFormat(long nDim
);
81 virtual void DisposeData();
82 virtual void SetEmptyFlags( BOOL bIgnoreEmptyRows
, BOOL bRepeatIfEmpty
);
84 virtual bool IsRepeatIfEmpty();
86 virtual void CreateCacheTable();
87 virtual void FilterCacheTable(const ::std::vector
<ScDPCacheTable::Criterion
>& rCriteria
, const ::std::hash_set
<sal_Int32
>& rCatDims
);
88 virtual void GetDrillDownData(const ::std::vector
<ScDPCacheTable::Criterion
>& rCriteria
,
89 const ::std::hash_set
<sal_Int32
>& rCatDims
,
90 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
> >& rData
);
91 virtual void CalcResults(CalcInfo
& rInfo
, bool bAutoShow
);
92 virtual const ScDPCacheTable
& GetCacheTable() const;