update dev300-m57
[ooovba.git] / sc / source / core / data / pivot2.cxx
blob4b29c8f39dd940607c891e30ccef3b3fd34ebd36
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: pivot2.cxx,v $
10 * $Revision: 1.14.32.3 $
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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
36 #ifdef _MSC_VER
37 #pragma optimize("",off)
38 #endif
40 // INCLUDE ---------------------------------------------------------------
42 #include "scitems.hxx"
43 #include <svx/boxitem.hxx>
44 #include <svx/wghtitem.hxx>
45 #include <svx/algitem.hxx>
46 #include <unotools/transliterationwrapper.hxx>
48 #include "globstr.hrc"
49 #include "subtotal.hxx"
50 #include "rangeutl.hxx"
51 #include "attrib.hxx"
52 #include "patattr.hxx"
53 #include "docpool.hxx"
54 #include "document.hxx"
55 #include "userlist.hxx"
56 #include "pivot.hxx"
57 #include "rechead.hxx"
58 #include "formula/errorcodes.hxx" // fuer errNoValue
59 #include "refupdat.hxx"
60 #include "stlpool.hxx"
61 #include "stlsheet.hxx"
63 using ::com::sun::star::sheet::DataPilotFieldReference;
65 // STATIC DATA -----------------------------------------------------------
67 // ============================================================================
69 ScDPLabelData::ScDPLabelData( const String& rName, short nCol, bool bIsValue ) :
70 maName( rName ),
71 mnCol( nCol ),
72 mnFuncMask( PIVOT_FUNC_NONE ),
73 mnUsedHier( 0 ),
74 mbShowAll( false ),
75 mbIsValue( bIsValue )
79 // ============================================================================
81 ScDPFuncData::ScDPFuncData( short nCol, USHORT nFuncMask ) :
82 mnCol( nCol ),
83 mnFuncMask( nFuncMask )
87 ScDPFuncData::ScDPFuncData( short nCol, USHORT nFuncMask, const DataPilotFieldReference& rFieldRef ) :
88 mnCol( nCol ),
89 mnFuncMask( nFuncMask ),
90 maFieldRef( rFieldRef )
94 // ============================================================================