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 #pragma once
21 
22 #include <sfx2/shell.hxx>
23 #include <shellids.hxx>
24 #include <svx/svdtypes.hxx>
25 #include <tools/link.hxx>
26 #include <rtl/ref.hxx>
27 
29 class ScViewData;
30 class ScDrawView;
31 class SdrMarkList;
32 class SfxModule;
33 class SdrObject;
34 
35 namespace weld { class Window; }
36 
37 namespace svx::sidebar { class SelectionChangeHandler; }
38 
39 class ScDrawShell : public SfxShell
40 {
43 
44  DECL_LINK( NameObjectHdl, AbstractSvxObjectNameDialog&, bool );
45 
46  void SetHlinkForObject( SdrObject* pObj, const OUString& rHlnk );
47 
48 protected:
49  virtual void Activate(bool bMDI) override;
51 
52 public:
54 
55 private:
57  static void InitInterface_Impl();
58 
59 public:
60  ScDrawShell(ScViewData& rData);
61  virtual ~ScDrawShell() override;
62 
63  static void StateDisableItems( SfxItemSet &rSet );
64 
65  void ExecDrawAttr(SfxRequest& rReq);
66  void GetDrawAttrState(SfxItemSet &rSet);
67  void GetAttrFuncState(SfxItemSet &rSet);
68 
69  void ExecDrawFunc(SfxRequest& rReq);
70  void GetDrawFuncState(SfxItemSet &rSet);
71  void GetState(SfxItemSet &rSet);
72 
73  void ExecFormText(const SfxRequest& rReq); // StarFontWork
74  void GetFormTextState(SfxItemSet& rSet);
75 
76  void ExecuteHLink(const SfxRequest& rReq); // Hyperlink
77  void GetHLinkState(SfxItemSet& rSet);
78 
79  void ExecFormatPaintbrush(const SfxRequest& rReq);
81 
82  void ExecuteMacroAssign(SdrObject* pObj, weld::Window* pWin);
83  void ExecuteLineDlg( const SfxRequest& rReq );
84  void ExecuteAreaDlg( const SfxRequest& rReq );
85  void ExecuteTextAttrDlg( SfxRequest& rReq );
86  void ExecuteMeasureDlg( SfxRequest& rReq );
87 
89 
90  static bool AreAllObjectsOnLayer(SdrLayerID nLayerNo,const SdrMarkList& rMark);
91 
92  void GetDrawAttrStateForIFBX( SfxItemSet& rSet );
93  OUString const & GetSidebarContextName();
94 };
95 
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void GetAttrFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:461
ScViewData & rViewData
Definition: drawsh.hxx:41
#define SCID_DRAW_SHELL
Definition: shellids.hxx:28
void ExecDrawFunc(SfxRequest &rReq)
Definition: drawsh5.cxx:227
void GetHLinkState(SfxItemSet &rSet)
Definition: drawsh5.cxx:55
ScViewData & GetViewData()
Definition: drawsh.hxx:50
void GetDrawAttrStateForIFBX(SfxItemSet &rSet)
Definition: drawsh2.cxx:528
::rtl::Reference< svx::sidebar::SelectionChangeHandler > mpSelectionChangeHandler
Definition: drawsh.hxx:42
void ExecuteHLink(const SfxRequest &rReq)
Definition: drawsh5.cxx:132
ScDrawView * GetDrawView()
Definition: drawsh5.cxx:681
void GetDrawFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:146
OUString const & GetSidebarContextName()
Definition: drawsh2.cxx:548
virtual void Activate(bool bMDI) override
Definition: drawsh2.cxx:540
void SetHlinkForObject(SdrObject *pObj, const OUString &rHlnk)
Definition: drawsh.cxx:610
void GetDrawAttrState(SfxItemSet &rSet)
Definition: drawsh2.cxx:382
void ExecFormatPaintbrush(const SfxRequest &rReq)
Definition: drawsh5.cxx:645
void ExecFormText(const SfxRequest &rReq)
Definition: drawsh5.cxx:629
static bool AreAllObjectsOnLayer(SdrLayerID nLayerNo, const SdrMarkList &rMark)
Definition: drawsh2.cxx:509
void ExecuteAreaDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:524
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:556
void GetState(SfxItemSet &rSet)
Definition: drawsh2.cxx:87
void ExecDrawAttr(SfxRequest &rReq)
Definition: drawsh.cxx:177
void StateFormatPaintbrush(SfxItemSet &rSet)
Definition: drawsh5.cxx:669
DECL_LINK(NameObjectHdl, AbstractSvxObjectNameDialog &, bool)
void ExecuteLineDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:486
void ExecuteMacroAssign(SdrObject *pObj, weld::Window *pWin)
Definition: drawsh.cxx:432
void GetFormTextState(SfxItemSet &rSet)
Definition: drawsh4.cxx:27
void ExecuteMeasureDlg(SfxRequest &rReq)
Definition: drawsh.cxx:583
#define SFX_DECL_INTERFACE(nId)