fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / cellsh.hxx
blob6e03ef1e5d0c642c3790f13e0adbce513c6039c0
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_CELLSH_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_CELLSH_HXX
23 #include <sfx2/shell.hxx>
24 #include "shellids.hxx"
25 #include <sfx2/module.hxx>
26 #include <svx/svdmark.hxx>
27 #include <unotools/caserotate.hxx>
28 #include <tools/link.hxx>
29 #include "formatsh.hxx"
30 #include "address.hxx"
32 class SvxClipboardFormatItem;
33 class TransferableDataHelper;
34 class TransferableClipboardListener;
35 class AbstractScLinkedAreaDlg;
37 struct CellShell_Impl
39 TransferableClipboardListener* m_pClipEvtLstnr;
40 AbstractScLinkedAreaDlg* m_pLinkedDlg;
41 SfxRequest* m_pRequest;
43 CellShell_Impl() :
44 m_pClipEvtLstnr( NULL ),
45 m_pLinkedDlg( NULL ),
46 m_pRequest( NULL ) {}
49 class ScCellShell: public ScFormatShell
51 private:
52 CellShell_Impl* pImpl;
53 bool bPastePossible;
55 void GetPossibleClipboardFormats( SvxClipboardFormatItem& rFormats );
56 void ExecuteExternalSource(
57 const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
58 const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
60 void ExecuteDataPilotDialog();
61 void ExecuteXMLSourceDialog();
62 void ExecuteSubtotals(SfxRequest& rReq);
64 void ExecuteFillSingleEdit();
66 DECL_LINK( ClipboardChanged, TransferableDataHelper* );
67 DECL_LINK( DialogClosed, void* );
69 RotateTransliteration m_aRotateCase;
71 public:
72 TYPEINFO_OVERRIDE();
73 SFX_DECL_INTERFACE(SCID_CELL_SHELL)
75 private:
76 /// SfxInterface initializer.
77 static void InitInterface_Impl();
79 public:
80 ScCellShell(ScViewData* pData);
81 virtual ~ScCellShell();
83 void Execute(SfxRequest &);
84 void GetState(SfxItemSet &);
86 void ExecuteEdit( SfxRequest& rReq );
87 void ExecuteTrans( SfxRequest& rReq );
88 void ExecuteRotateTrans( SfxRequest& rReq );
90 void GetBlockState( SfxItemSet& rSet );
91 void GetCellState( SfxItemSet& rSet );
93 void ExecuteDB( SfxRequest& rReq );
94 void GetDBState( SfxItemSet& rSet );
96 void ExecImageMap(SfxRequest& rReq); // ImageMap
97 void GetImageMapState(SfxItemSet& rSet);
99 void GetClipState( SfxItemSet& rSet );
100 void GetHLinkState( SfxItemSet& rSet );
102 void ExecuteCursor( SfxRequest& rReq );
103 void ExecuteCursorSel( SfxRequest& rReq );
104 void ExecutePage( SfxRequest& rReq );
105 void ExecutePageSel( SfxRequest& rReq );
106 void ExecuteMove( SfxRequest& rReq );
107 static void GetStateCursor( SfxItemSet& rSet );
110 #endif
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */