LibreOffice Module sc (master)  1
cellsh.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #pragma once
21 
22 #include <sfx2/shell.hxx>
23 #include <shellids.hxx>
24 #include <unotools/caserotate.hxx>
25 #include <tools/link.hxx>
26 #include <memory>
27 #include "formatsh.hxx"
28 #include <rtl/ref.hxx>
29 #include <sot/formats.hxx>
30 #include <vcl/vclptr.hxx>
31 #include <vcl/window.hxx>
32 
37 
39 {
44 
47 };
48 
49 class ScCellShell final : public ScFormatShell
50 {
51 private:
52  std::unique_ptr<CellShell_Impl> pImpl;
54 
56  bool HasClipboardFormat( SotClipboardFormatId nFormatId );
58  const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
59  const OUString& _rSource, sal_Int32 _nRefreshDelaySeconds, SfxRequest& _rRequest );
60 
63  void ExecuteSubtotals(SfxRequest& rReq);
64 
65  void ExecuteFillSingleEdit();
66 
67  DECL_LINK( ClipboardChanged, TransferableDataHelper*, void );
68 
70 
72 
73 public:
75 
76 private:
78  static void InitInterface_Impl();
79 
80 public:
81  ScCellShell( ScViewData& rData, const VclPtr<vcl::Window>& pFrameWin );
82  virtual ~ScCellShell() override;
83 
84  void Execute(SfxRequest &);
85  void GetState(SfxItemSet &);
86 
87  void ExecuteEdit( SfxRequest& rReq );
88  void ExecuteTrans( SfxRequest& rReq );
89  void ExecuteRotateTrans( const SfxRequest& rReq );
90 
91  void GetBlockState( SfxItemSet& rSet );
92  void GetCellState( SfxItemSet& rSet );
93 
94  void ExecuteDB( SfxRequest& rReq );
95  void GetDBState( SfxItemSet& rSet );
96 
97  void GetClipState( SfxItemSet& rSet );
98  void GetHLinkState( SfxItemSet& rSet );
99 
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 );
105 
106  static void GetStateCursor( SfxItemSet& rSet );
107 };
108 
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool HasClipboardFormat(SotClipboardFormatId nFormatId)
Definition: cellsh.cxx:537
DECL_LINK(ClipboardChanged, TransferableDataHelper *, void)
void ExecuteEdit(SfxRequest &rReq)
Definition: cellsh1.cxx:174
void ExecuteExternalSource(const OUString &_rFile, const OUString &_rFilter, const OUString &_rOptions, const OUString &_rSource, sal_Int32 _nRefreshDelaySeconds, SfxRequest &_rRequest)
Definition: cellsh1.cxx:3029
void ExecuteDataPilotDialog()
Definition: cellsh1.cxx:3144
void ExecuteSubtotals(SfxRequest &rReq)
Definition: cellsh1.cxx:3339
void ExecuteDB(SfxRequest &rReq)
Definition: cellsh2.cxx:226
VclPtr< AbstractScLinkedAreaDlg > m_pLinkedDlg
Definition: cellsh.hxx:42
void ExecuteMove(SfxRequest &rReq)
Definition: cellsh4.cxx:318
void ExecuteFillSingleEdit()
Definition: cellsh1.cxx:3416
VclPtr< vcl::Window > pFrameWin
Definition: cellsh.hxx:71
void ExecuteRotateTrans(const SfxRequest &rReq)
Definition: cellsh1.cxx:3023
bool bPastePossible
Definition: cellsh.hxx:53
void ExecuteXMLSourceDialog()
Definition: cellsh1.cxx:3325
SotClipboardFormatId
void GetPossibleClipboardFormats(SvxClipboardFormatItem &rFormats)
Definition: cellsh.cxx:469
void GetDBState(SfxItemSet &rSet)
Definition: cellsh2.cxx:1053
void GetState(SfxItemSet &)
Definition: cellsh.cxx:688
void ExecuteCursor(SfxRequest &rReq)
Definition: cellsh4.cxx:32
void ExecuteTrans(SfxRequest &rReq)
Definition: cellsh1.cxx:3013
std::unique_ptr< CellShell_Impl > pImpl
Definition: cellsh.hxx:52
#define SCID_CELL_SHELL
Definition: shellids.hxx:36
static void InitInterface_Impl()
SfxInterface initializer.
Definition: cellsh.cxx:65
void ExecutePage(SfxRequest &rReq)
Definition: cellsh4.cxx:462
void GetClipState(SfxItemSet &rSet)
Definition: cellsh.cxx:609
void ExecutePageSel(SfxRequest &rReq)
Definition: cellsh4.cxx:445
void ExecuteCursorSel(SfxRequest &rReq)
Definition: cellsh4.cxx:240
void GetBlockState(SfxItemSet &rSet)
Definition: cellsh.cxx:101
SfxRequest * m_pRequest
Definition: cellsh.hxx:43
void GetCellState(SfxItemSet &rSet)
Definition: cellsh.cxx:358
void GetHLinkState(SfxItemSet &rSet)
Definition: cellsh.cxx:668
RotateTransliteration m_aRotateCase
Definition: cellsh.hxx:69
static void GetStateCursor(SfxItemSet &rSet)
Definition: cellsh4.cxx:236
rtl::Reference< TransferableClipboardListener > m_xClipEvtLstnr
Definition: cellsh.hxx:41
void Execute(SfxRequest &)
Definition: cellsh3.cxx:153
#define SFX_DECL_INTERFACE(nId)