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 #ifndef INCLUDED_SC_SOURCE_UI_INC_CELLSH_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_CELLSH_HXX
22 
23 #include <sfx2/shell.hxx>
24 #include <shellids.hxx>
25 #include <unotools/caserotate.hxx>
26 #include <tools/link.hxx>
27 #include <memory>
28 #include "formatsh.hxx"
29 #include <rtl/ref.hxx>
30 #include <sot/formats.hxx>
31 #include <vcl/vclptr.hxx>
32 #include <vcl/window.hxx>
33 #include <tools/solar.h>
34 
39 
41 {
46 
49 };
50 
52 {
53 private:
54  std::unique_ptr<CellShell_Impl> pImpl;
56 
58  bool HasClipboardFormat( SotClipboardFormatId nFormatId );
60  const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
61  const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
62 
65  void ExecuteSubtotals(SfxRequest& rReq);
66 
67  void ExecuteFillSingleEdit();
68 
69  DECL_LINK( ClipboardChanged, TransferableDataHelper*, void );
70 
72 
74 
75 public:
77 
78 private:
80  static void InitInterface_Impl();
81 
82 public:
83  ScCellShell( ScViewData& rData, const VclPtr<vcl::Window>& pFrameWin );
84  virtual ~ScCellShell() override;
85 
86  void Execute(SfxRequest &);
87  void GetState(SfxItemSet &);
88 
89  void ExecuteEdit( SfxRequest& rReq );
90  void ExecuteTrans( SfxRequest& rReq );
91  void ExecuteRotateTrans( const SfxRequest& rReq );
92 
93  void GetBlockState( SfxItemSet& rSet );
94  void GetCellState( SfxItemSet& rSet );
95 
96  void ExecuteDB( SfxRequest& rReq );
97  void GetDBState( SfxItemSet& rSet );
98 
99  void GetClipState( SfxItemSet& rSet );
100  void GetHLinkState( SfxItemSet& rSet );
101 
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 
108  const VclPtr<vcl::Window>& GetFrameWin() const;
109 
110  static void GetStateCursor( SfxItemSet& rSet );
111 };
112 
113 #endif
114 
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool HasClipboardFormat(SotClipboardFormatId nFormatId)
Definition: cellsh.cxx:511
void ExecuteExternalSource(const OUString &_rFile, const OUString &_rFilter, const OUString &_rOptions, const OUString &_rSource, sal_uLong _nRefresh, SfxRequest &_rRequest)
Definition: cellsh1.cxx:2796
DECL_LINK(ClipboardChanged, TransferableDataHelper *, void)
void ExecuteEdit(SfxRequest &rReq)
Definition: cellsh1.cxx:171
sal_uIntPtr sal_uLong
void ExecuteDataPilotDialog()
Definition: cellsh1.cxx:2867
void ExecuteSubtotals(SfxRequest &rReq)
Definition: cellsh1.cxx:3056
void ExecuteDB(SfxRequest &rReq)
Definition: cellsh2.cxx:227
VclPtr< AbstractScLinkedAreaDlg > m_pLinkedDlg
Definition: cellsh.hxx:44
void ExecuteMove(SfxRequest &rReq)
Definition: cellsh4.cxx:322
void ExecuteFillSingleEdit()
Definition: cellsh1.cxx:3135
VclPtr< vcl::Window > pFrameWin
Definition: cellsh.hxx:73
void ExecuteRotateTrans(const SfxRequest &rReq)
Definition: cellsh1.cxx:2790
bool bPastePossible
Definition: cellsh.hxx:55
void ExecuteXMLSourceDialog()
Definition: cellsh1.cxx:3042
SotClipboardFormatId
void GetPossibleClipboardFormats(SvxClipboardFormatItem &rFormats)
Definition: cellsh.cxx:443
void GetDBState(SfxItemSet &rSet)
Definition: cellsh2.cxx:1010
void GetState(SfxItemSet &)
Definition: cellsh.cxx:650
void ExecuteCursor(SfxRequest &rReq)
Definition: cellsh4.cxx:36
void ExecuteTrans(SfxRequest &rReq)
Definition: cellsh1.cxx:2780
std::unique_ptr< CellShell_Impl > pImpl
Definition: cellsh.hxx:54
#define SCID_CELL_SHELL
Definition: shellids.hxx:37
static void InitInterface_Impl()
SfxInterface initializer.
Definition: cellsh.cxx:63
void ExecutePage(SfxRequest &rReq)
Definition: cellsh4.cxx:466
void GetClipState(SfxItemSet &rSet)
Definition: cellsh.cxx:579
void ExecutePageSel(SfxRequest &rReq)
Definition: cellsh4.cxx:449
void ExecuteCursorSel(SfxRequest &rReq)
Definition: cellsh4.cxx:244
void GetBlockState(SfxItemSet &rSet)
Definition: cellsh.cxx:99
SfxRequest * m_pRequest
Definition: cellsh.hxx:45
void GetCellState(SfxItemSet &rSet)
Definition: cellsh.cxx:331
void GetHLinkState(SfxItemSet &rSet)
Definition: cellsh.cxx:636
RotateTransliteration m_aRotateCase
Definition: cellsh.hxx:71
static void GetStateCursor(SfxItemSet &rSet)
Definition: cellsh4.cxx:240
const VclPtr< vcl::Window > & GetFrameWin() const
Definition: cellsh4.cxx:31
rtl::Reference< TransferableClipboardListener > m_xClipEvtLstnr
Definition: cellsh.hxx:43
void Execute(SfxRequest &)
Definition: cellsh3.cxx:155
#define SFX_DECL_INTERFACE(nId)