1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 <unotools/caserotate.hxx>
26 #include <tools/link.hxx>
28 #include "formatsh.hxx"
29 #include <rtl/ref.hxx>
30 #include <sot/formats.hxx>
31 #include <vcl/vclptr.hxx>
32 #include <tools/solar.h>
34 class SvxClipboardFormatItem
;
35 class TransferableDataHelper
;
36 class TransferableClipboardListener
;
37 class AbstractScLinkedAreaDlg
;
41 rtl::Reference
<TransferableClipboardListener
>
43 VclPtr
<AbstractScLinkedAreaDlg
> m_pLinkedDlg
;
44 SfxRequest
* m_pRequest
;
50 class ScCellShell
: public ScFormatShell
53 std::unique_ptr
<CellShell_Impl
> pImpl
;
56 void GetPossibleClipboardFormats( SvxClipboardFormatItem
& rFormats
);
57 bool HasClipboardFormat( SotClipboardFormatId nFormatId
);
58 void ExecuteExternalSource(
59 const OUString
& _rFile
, const OUString
& _rFilter
, const OUString
& _rOptions
,
60 const OUString
& _rSource
, sal_uLong _nRefresh
, SfxRequest
& _rRequest
);
62 void ExecuteDataPilotDialog();
63 void ExecuteXMLSourceDialog();
64 void ExecuteSubtotals(SfxRequest
& rReq
);
66 void ExecuteFillSingleEdit();
68 DECL_LINK( ClipboardChanged
, TransferableDataHelper
*, void );
70 RotateTransliteration m_aRotateCase
;
72 VclPtr
<vcl::Window
> pFrameWin
;
75 SFX_DECL_INTERFACE(SCID_CELL_SHELL
)
78 /// SfxInterface initializer.
79 static void InitInterface_Impl();
82 ScCellShell( ScViewData
& rData
, const VclPtr
<vcl::Window
>& pFrameWin
);
83 virtual ~ScCellShell() override
;
85 void Execute(SfxRequest
&);
86 void GetState(SfxItemSet
&);
88 void ExecuteEdit( SfxRequest
& rReq
);
89 void ExecuteTrans( SfxRequest
& rReq
);
90 void ExecuteRotateTrans( const SfxRequest
& rReq
);
92 void GetBlockState( SfxItemSet
& rSet
);
93 void GetCellState( SfxItemSet
& rSet
);
95 void ExecuteDB( SfxRequest
& rReq
);
96 void GetDBState( SfxItemSet
& rSet
);
98 void GetClipState( SfxItemSet
& rSet
);
99 void GetHLinkState( SfxItemSet
& rSet
);
101 void ExecuteCursor( SfxRequest
& rReq
);
102 void ExecuteCursorSel( SfxRequest
& rReq
);
103 void ExecutePage( SfxRequest
& rReq
);
104 void ExecutePageSel( SfxRequest
& rReq
);
105 void ExecuteMove( SfxRequest
& rReq
);
107 const VclPtr
<vcl::Window
>& GetFrameWin() const;
109 static void GetStateCursor( SfxItemSet
& rSet
);
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */