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 #include <tools/solar.h>
33 
38 
40 {
45 
48 };
49 
50 class ScCellShell final : public ScFormatShell
51 {
52 private:
53  std::unique_ptr<CellShell_Impl> pImpl;
55 
57  bool HasClipboardFormat( SotClipboardFormatId nFormatId );
59  const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
60  const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
61 
64  void ExecuteSubtotals(SfxRequest& rReq);
65 
66  void ExecuteFillSingleEdit();
67 
68  DECL_LINK( ClipboardChanged, TransferableDataHelper*, void );
69 
71 
73 
74 public:
76 
77 private:
79  static void InitInterface_Impl();
80 
81 public:
82  ScCellShell( ScViewData& rData, const VclPtr<vcl::Window>& pFrameWin );
83  virtual ~ScCellShell() override;
84 
85  void Execute(SfxRequest &);
86  void GetState(SfxItemSet &);
87 
88  void ExecuteEdit( SfxRequest& rReq );
89  void ExecuteTrans( SfxRequest& rReq );
90  void ExecuteRotateTrans( const SfxRequest& rReq );
91 
92  void GetBlockState( SfxItemSet& rSet );
93  void GetCellState( SfxItemSet& rSet );
94 
95  void ExecuteDB( SfxRequest& rReq );
96  void GetDBState( SfxItemSet& rSet );
97 
98  void GetClipState( SfxItemSet& rSet );
99  void GetHLinkState( SfxItemSet& rSet );
100 
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 );
106 
107  static void GetStateCursor( SfxItemSet& rSet );
108 };
109 
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool HasClipboardFormat(SotClipboardFormatId nFormatId)
Definition: cellsh.cxx:514
void ExecuteExternalSource(const OUString &_rFile, const OUString &_rFilter, const OUString &_rOptions, const OUString &_rSource, sal_uLong _nRefresh, SfxRequest &_rRequest)
Definition: cellsh1.cxx:2947
DECL_LINK(ClipboardChanged, TransferableDataHelper *, void)
void ExecuteEdit(SfxRequest &rReq)
Definition: cellsh1.cxx:171
sal_uIntPtr sal_uLong
void ExecuteDataPilotDialog()
Definition: cellsh1.cxx:3062
void ExecuteSubtotals(SfxRequest &rReq)
Definition: cellsh1.cxx:3261
void ExecuteDB(SfxRequest &rReq)
Definition: cellsh2.cxx:225
VclPtr< AbstractScLinkedAreaDlg > m_pLinkedDlg
Definition: cellsh.hxx:43
void ExecuteMove(SfxRequest &rReq)
Definition: cellsh4.cxx:318
void ExecuteFillSingleEdit()
Definition: cellsh1.cxx:3340
VclPtr< vcl::Window > pFrameWin
Definition: cellsh.hxx:72
void ExecuteRotateTrans(const SfxRequest &rReq)
Definition: cellsh1.cxx:2941
bool bPastePossible
Definition: cellsh.hxx:54
void ExecuteXMLSourceDialog()
Definition: cellsh1.cxx:3247
SotClipboardFormatId
void GetPossibleClipboardFormats(SvxClipboardFormatItem &rFormats)
Definition: cellsh.cxx:446
void GetDBState(SfxItemSet &rSet)
Definition: cellsh2.cxx:1007
void GetState(SfxItemSet &)
Definition: cellsh.cxx:659
void ExecuteCursor(SfxRequest &rReq)
Definition: cellsh4.cxx:32
void ExecuteTrans(SfxRequest &rReq)
Definition: cellsh1.cxx:2931
std::unique_ptr< CellShell_Impl > pImpl
Definition: cellsh.hxx:53
#define SCID_CELL_SHELL
Definition: shellids.hxx:36
static void InitInterface_Impl()
SfxInterface initializer.
Definition: cellsh.cxx:63
void ExecutePage(SfxRequest &rReq)
Definition: cellsh4.cxx:462
void GetClipState(SfxItemSet &rSet)
Definition: cellsh.cxx:586
void ExecutePageSel(SfxRequest &rReq)
Definition: cellsh4.cxx:445
void ExecuteCursorSel(SfxRequest &rReq)
Definition: cellsh4.cxx:240
void GetBlockState(SfxItemSet &rSet)
Definition: cellsh.cxx:99
SfxRequest * m_pRequest
Definition: cellsh.hxx:44
void GetCellState(SfxItemSet &rSet)
Definition: cellsh.cxx:334
void GetHLinkState(SfxItemSet &rSet)
Definition: cellsh.cxx:645
RotateTransliteration m_aRotateCase
Definition: cellsh.hxx:70
static void GetStateCursor(SfxItemSet &rSet)
Definition: cellsh4.cxx:236
rtl::Reference< TransferableClipboardListener > m_xClipEvtLstnr
Definition: cellsh.hxx:42
void Execute(SfxRequest &)
Definition: cellsh3.cxx:155
#define SFX_DECL_INTERFACE(nId)