LibreOffice Module sc (master)  1
editsh.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_EDITSH_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_EDITSH_HXX
22 
23 #include <sfx2/shell.hxx>
24 #include <tools/link.hxx>
25 #include <rtl/ref.hxx>
26 
27 #include <shellids.hxx>
28 
29 class SfxModule;
30 class EditView;
31 class ScViewData;
32 class ScInputHandler;
33 class SvxURLField;
36 
37 class ScEditShell : public SfxShell
38 {
39 private:
45 
46  const SvxURLField* GetURLField();
48 
49  DECL_LINK( ClipboardChanged, TransferableDataHelper*, void );
50 
51 public:
53 
54 private:
56  static void InitInterface_Impl();
57 
58 public:
59  ScEditShell(EditView* pView, ScViewData& rData);
60  virtual ~ScEditShell() override;
61 
62  void SetEditView(EditView* pView);
64 
65  void Execute(SfxRequest& rReq);
66  void ExecuteTrans(const SfxRequest& rReq);
67  void GetState(SfxItemSet &rSet);
68  void GetClipState(SfxItemSet& rSet);
69 
70  void ExecuteAttr(SfxRequest& rReq);
71  void GetAttrState(SfxItemSet &rSet);
72 
73  void ExecuteUndo(const SfxRequest& rReq);
74  void GetUndoState(SfxItemSet &rSet);
75 
76  OUString GetSelectionText( bool bWholeWord );
77 };
78 
79 #endif
80 
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScInputHandler * GetMyInputHdl()
Definition: editsh.cxx:115
const SvxURLField * GetURLField()
Definition: editsh.cxx:835
void Execute(SfxRequest &rReq)
Definition: editsh.cxx:158
DECL_LINK(ClipboardChanged, TransferableDataHelper *, void)
EditView * GetEditView()
Definition: editsh.hxx:63
void GetUndoState(SfxItemSet &rSet)
Definition: editsh.cxx:1305
void SetEditView(EditView *pView)
Definition: editsh.cxx:120
OUString GetSelectionText(bool bWholeWord)
Definition: editsh.cxx:1231
bool bPastePossible
Definition: editsh.hxx:43
#define SCID_EDIT_SHELL
Definition: shellids.hxx:28
void ExecuteTrans(const SfxRequest &rReq)
Definition: editsh.cxx:1336
bool bIsInsertMode
Definition: editsh.hxx:44
void GetClipState(SfxItemSet &rSet)
Definition: editsh.cxx:862
void ExecuteAttr(SfxRequest &rReq)
Definition: editsh.cxx:923
ScViewData & rViewData
Definition: editsh.hxx:41
void GetAttrState(SfxItemSet &rSet)
Definition: editsh.cxx:1159
rtl::Reference< TransferableClipboardListener > mxClipEvtLstnr
Definition: editsh.hxx:42
void ExecuteUndo(const SfxRequest &rReq)
Definition: editsh.cxx:1256
static void InitInterface_Impl()
SfxInterface initializer.
Definition: editsh.cxx:86
void GetState(SfxItemSet &rSet)
Definition: editsh.cxx:724
EditView * pEditView
Definition: editsh.hxx:40
#define SFX_DECL_INTERFACE(nId)