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 .
22 #include <sfx2/shell.hxx>
23 #include <shellids.hxx>
24 #include <unotools/caserotate.hxx>
25 #include <tools/link.hxx>
27 #include "formatsh.hxx"
28 #include <rtl/ref.hxx>
29 #include <sot/formats.hxx>
30 #include <vcl/vclptr.hxx>
31 #include <vcl/window.hxx>
33 class SvxClipboardFormatItem
;
34 class TransferableDataHelper
;
35 class TransferableClipboardListener
;
36 class AbstractScLinkedAreaDlg
;
40 rtl::Reference
<TransferableClipboardListener
>
42 VclPtr
<AbstractScLinkedAreaDlg
> m_pLinkedDlg
;
43 SfxRequest
* m_pRequest
;
49 class ScCellShell final
: public ScFormatShell
52 std::unique_ptr
<CellShell_Impl
> pImpl
;
55 void GetPossibleClipboardFormats( SvxClipboardFormatItem
& rFormats
);
56 bool HasClipboardFormat( SotClipboardFormatId nFormatId
);
57 void ExecuteExternalSource(
58 const OUString
& _rFile
, const OUString
& _rFilter
, const OUString
& _rOptions
,
59 const OUString
& _rSource
, sal_Int32 _nRefreshDelaySeconds
, SfxRequest
& _rRequest
);
61 void ExecuteDataPilotDialog();
62 void ExecuteXMLSourceDialog();
63 void ExecuteSubtotals(SfxRequest
& rReq
);
65 void ExecuteFillSingleEdit();
67 DECL_LINK( ClipboardChanged
, TransferableDataHelper
*, void );
69 RotateTransliteration m_aRotateCase
;
71 VclPtr
<vcl::Window
> pFrameWin
;
74 SFX_DECL_INTERFACE(SCID_CELL_SHELL
)
77 /// SfxInterface initializer.
78 static void InitInterface_Impl();
81 ScCellShell( ScViewData
& rData
, const VclPtr
<vcl::Window
>& pFrameWin
);
82 virtual ~ScCellShell() override
;
84 void Execute(SfxRequest
&);
85 void GetState(SfxItemSet
&);
87 void ExecuteEdit( SfxRequest
& rReq
);
88 void ExecuteTrans( SfxRequest
& rReq
);
89 void ExecuteRotateTrans( const SfxRequest
& rReq
);
91 void GetBlockState( SfxItemSet
& rSet
);
92 void GetCellState( SfxItemSet
& rSet
);
94 void ExecuteDB( SfxRequest
& rReq
);
95 void GetDBState( SfxItemSet
& rSet
);
97 void GetClipState( SfxItemSet
& rSet
);
98 void GetHLinkState( SfxItemSet
& rSet
);
100 void ExecuteCursor( SfxRequest
& rReq
);
101 void ExecuteCursorSel( SfxRequest
& rReq
);
102 void ExecutePage( SfxRequest
& rReq
);
103 void ExecutePageSel( SfxRequest
& rReq
);
104 void ExecuteMove( SfxRequest
& rReq
);
106 static void GetStateCursor( SfxItemSet
& rSet
);
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */