LibreOffice Module sc (master)  1
drawsh.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_DRAWSH_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_DRAWSH_HXX
22 
23 #include <sfx2/shell.hxx>
24 #include <shellids.hxx>
25 #include <svx/svdtypes.hxx>
26 #include <tools/link.hxx>
27 #include <rtl/ref.hxx>
28 
30 class ScViewData;
31 class ScDrawView;
32 class SdrMarkList;
33 class SfxModule;
34 class SdrObject;
35 
36 namespace weld { class Window; }
37 
38 namespace svx::sidebar { class SelectionChangeHandler; }
39 
40 class ScDrawShell : public SfxShell
41 {
44 
45  DECL_LINK( NameObjectHdl, AbstractSvxObjectNameDialog&, bool );
46 
47  void SetHlinkForObject( SdrObject* pObj, const OUString& rHlnk );
48 
49 protected:
50  virtual void Activate(bool bMDI) override;
52 
53 public:
55 
56 private:
58  static void InitInterface_Impl();
59 
60 public:
61  ScDrawShell(ScViewData& rData);
62  virtual ~ScDrawShell() override;
63 
64  static void StateDisableItems( SfxItemSet &rSet );
65 
66  void ExecDrawAttr(SfxRequest& rReq);
67  void GetDrawAttrState(SfxItemSet &rSet);
68  void GetAttrFuncState(SfxItemSet &rSet);
69 
70  void ExecDrawFunc(SfxRequest& rReq);
71  void GetDrawFuncState(SfxItemSet &rSet);
72  void GetState(SfxItemSet &rSet);
73 
74  void ExecFormText(const SfxRequest& rReq); // StarFontWork
75  void GetFormTextState(SfxItemSet& rSet);
76 
77  void ExecuteHLink(const SfxRequest& rReq); // Hyperlink
78  void GetHLinkState(SfxItemSet& rSet);
79 
80  void ExecFormatPaintbrush(const SfxRequest& rReq);
82 
83  void ExecuteMacroAssign(SdrObject* pObj, weld::Window* pWin);
84  void ExecuteLineDlg( const SfxRequest& rReq );
85  void ExecuteAreaDlg( const SfxRequest& rReq );
86  void ExecuteTextAttrDlg( SfxRequest& rReq );
87  void ExecuteMeasureDlg( SfxRequest& rReq );
88 
90 
91  static bool AreAllObjectsOnLayer(SdrLayerID nLayerNo,const SdrMarkList& rMark);
92 
93  void GetDrawAttrStateForIFBX( SfxItemSet& rSet );
94  OUString const & GetSidebarContextName();
95 };
96 
97 #endif
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void GetAttrFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:422
ScViewData & rViewData
Definition: drawsh.hxx:42
#define SCID_DRAW_SHELL
Definition: shellids.hxx:29
void ExecDrawFunc(SfxRequest &rReq)
Definition: drawsh5.cxx:226
void GetHLinkState(SfxItemSet &rSet)
Definition: drawsh5.cxx:54
ScViewData & GetViewData()
Definition: drawsh.hxx:51
void GetDrawAttrStateForIFBX(SfxItemSet &rSet)
Definition: drawsh2.cxx:489
::rtl::Reference< svx::sidebar::SelectionChangeHandler > mpSelectionChangeHandler
Definition: drawsh.hxx:43
void ExecuteHLink(const SfxRequest &rReq)
Definition: drawsh5.cxx:131
ScDrawView * GetDrawView()
Definition: drawsh5.cxx:680
void GetDrawFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:149
OUString const & GetSidebarContextName()
Definition: drawsh2.cxx:509
virtual void Activate(bool bMDI) override
Definition: drawsh2.cxx:501
void SetHlinkForObject(SdrObject *pObj, const OUString &rHlnk)
Definition: drawsh.cxx:591
void GetDrawAttrState(SfxItemSet &rSet)
Definition: drawsh2.cxx:356
void ExecFormatPaintbrush(const SfxRequest &rReq)
Definition: drawsh5.cxx:644
void ExecFormText(const SfxRequest &rReq)
Definition: drawsh5.cxx:628
static bool AreAllObjectsOnLayer(SdrLayerID nLayerNo, const SdrMarkList &rMark)
Definition: drawsh2.cxx:470
void ExecuteAreaDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:505
static void InitInterface_Impl()
SfxInterface initializer.
Definition: drawsh.cxx:128
static void StateDisableItems(SfxItemSet &rSet)
Definition: drawsh.cxx:141
void ExecuteTextAttrDlg(SfxRequest &rReq)
Definition: drawsh.cxx:537
void GetState(SfxItemSet &rSet)
Definition: drawsh2.cxx:90
void ExecDrawAttr(SfxRequest &rReq)
Definition: drawsh.cxx:177
void StateFormatPaintbrush(SfxItemSet &rSet)
Definition: drawsh5.cxx:668
DECL_LINK(NameObjectHdl, AbstractSvxObjectNameDialog &, bool)
void ExecuteLineDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:467
void ExecuteMacroAssign(SdrObject *pObj, weld::Window *pWin)
Definition: drawsh.cxx:413
void GetFormTextState(SfxItemSet &rSet)
Definition: drawsh4.cxx:27
void ExecuteMeasureDlg(SfxRequest &rReq)
Definition: drawsh.cxx:564
#define SFX_DECL_INTERFACE(nId)