fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / dbfunc.hxx
blob207fdbfdbce9b72803738226e80431916e5e853f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_DBFUNC_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_DBFUNC_HXX
23 #include "viewfunc.hxx"
24 #include "dptypes.hxx"
26 namespace com { namespace sun { namespace star { namespace sheet {
27 struct DataPilotFieldFilter;
28 }}}}
30 struct ScSortParam;
31 struct ScQueryParam;
32 class ScDBData;
33 class ScDBCollection;
34 class ScDPObject;
35 class ScDPSaveData;
36 struct ScDPNumGroupInfo;
37 struct ScSubTotalParam;
39 class ScDBFunc : public ScViewFunc
41 private:
42 void GetSelectedMemberList(ScDPUniqueStringSet& rEntries, long& rDimension);
44 public:
45 ScDBFunc( vcl::Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell );
46 virtual ~ScDBFunc();
48 // only UISort repeat the partial results if necessary
50 void UISort( const ScSortParam& rSortParam,
51 bool bRecord = true );
53 void Sort( const ScSortParam& rSortParam,
54 bool bRecord = true, bool bPaint = true );
55 SC_DLLPUBLIC void Query( const ScQueryParam& rQueryParam,
56 const ScRange* pAdvSource, bool bRecord );
57 void DoSubTotals( const ScSubTotalParam& rParam, bool bRecord = true,
58 const ScSortParam* pForceNewSort = NULL );
60 void ToggleAutoFilter();
61 void HideAutoFilter();
63 void RepeatDB( bool bRecord = true );
65 bool ImportData( const ScImportParam& rParam, bool bRecord = true );
67 void GotoDBArea( const OUString& rDBName );
69 // DB range from Cursor
70 ScDBData* GetDBData( bool bMarkArea = true, ScGetDBMode eMode = SC_DB_MAKE, ScGetDBSelection eSel = SC_DBSEL_KEEP);
71 ScDBData* GetAnonymousDBData();
73 void Consolidate( const ScConsolidateParam& rParam, bool bRecord = true );
75 bool MakePivotTable(
76 const ScDPSaveData& rData, const ScRange& rDest, bool bNewTable,
77 const ScDPObject& rSource, bool bApi = false );
79 void DeletePivotTable();
80 void RecalcPivotTable();
81 bool HasSelectionForDateGroup( ScDPNumGroupInfo& rOldInfo, sal_Int32& rParts );
82 bool HasSelectionForNumGroup( ScDPNumGroupInfo& rOldInfo );
83 void GroupDataPilot();
84 void DateGroupDataPilot( const ScDPNumGroupInfo& rInfo, sal_Int32 nParts );
85 void NumGroupDataPilot( const ScDPNumGroupInfo& rInfo );
86 void UngroupDataPilot();
87 void DataPilotInput( const ScAddress& rPos, const OUString& rString );
89 bool DataPilotSort( const ScAddress& rPos, bool bAscending, sal_uInt16* pUserListId = NULL );
90 bool DataPilotMove( const ScRange& rSource, const ScAddress& rDest );
92 bool HasSelectionForDrillDown( sal_uInt16& rOrientation );
93 void SetDataPilotDetails(bool bShow, const OUString* pNewDimensionName = NULL);
95 void ShowDataPilotSourceData( ScDPObject& rDPObj,
96 const ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::DataPilotFieldFilter >& rFilters );
98 void MakeOutline( bool bColumns, bool bRecord = true );
99 void RemoveOutline( bool bColumns, bool bRecord = true );
100 void RemoveAllOutlines( bool bRecord = true );
101 void TestRemoveOutline( bool& rCol, bool& rRow );
103 void AutoOutline( bool bRecord = true );
105 void SelectLevel( bool bColumns, sal_uInt16 nLevel,
106 bool bRecord = true, bool bPaint = true );
107 void ShowOutline( bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry,
108 bool bRecord = true, bool bPaint = true );
109 void HideOutline( bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry,
110 bool bRecord = true, bool bPaint = true );
112 void ShowMarkedOutlines( bool bRecord = true );
113 void HideMarkedOutlines( bool bRecord = true );
114 bool OutlinePossible(bool bHide);
116 void UpdateCharts(bool bAllCharts = false); // Default: am Cursor
118 static sal_uInt16 DoUpdateCharts( const ScAddress& rPos, ScDocument* pDoc, bool bAllCharts );
121 #endif
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */