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 protected:
47  virtual void Activate(bool bMDI) override;
49 
50 public:
52 
53 private:
56 
57 public:
58  ScDrawShell(ScViewData& rData);
59  virtual ~ScDrawShell() override;
60 
61  static void StateDisableItems( SfxItemSet &rSet );
62 
63  void ExecDrawAttr(SfxRequest& rReq);
64  void GetDrawAttrState(SfxItemSet &rSet);
65  void GetAttrFuncState(SfxItemSet &rSet);
66 
67  void ExecDrawFunc(SfxRequest& rReq);
68  void GetDrawFuncState(SfxItemSet &rSet);
69  void GetState(SfxItemSet &rSet);
70 
71  void ExecFormText(const SfxRequest& rReq); // StarFontWork
72  void GetFormTextState(SfxItemSet& rSet);
73 
74  void ExecuteHLink(const SfxRequest& rReq); // Hyperlink
75  void GetHLinkState(SfxItemSet& rSet);
76 
77  void ExecFormatPaintbrush(const SfxRequest& rReq);
79 
80  void ExecuteMacroAssign(SdrObject* pObj, weld::Window* pWin);
81  void ExecuteLineDlg( const SfxRequest& rReq );
82  void ExecuteAreaDlg( const SfxRequest& rReq );
83  void ExecuteTextAttrDlg( SfxRequest& rReq );
84  void ExecuteMeasureDlg( SfxRequest& rReq );
85 
87 
88  static bool AreAllObjectsOnLayer(SdrLayerID nLayerNo,const SdrMarkList& rMark);
89 
90  void GetDrawAttrStateForIFBX( SfxItemSet& rSet );
91  OUString const & GetSidebarContextName();
92 
93  void setModified();
94 };
95 
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void GetAttrFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:463
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:48
void GetDrawAttrStateForIFBX(SfxItemSet &rSet)
Definition: drawsh2.cxx:530
::rtl::Reference< svx::sidebar::SelectionChangeHandler > mpSelectionChangeHandler
Definition: drawsh.hxx:42
void ExecuteHLink(const SfxRequest &rReq)
Definition: drawsh5.cxx:131
ScDrawView * GetDrawView()
Definition: drawsh5.cxx:681
void GetDrawFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:146
OUString const & GetSidebarContextName()
Definition: drawsh2.cxx:550
virtual void Activate(bool bMDI) override
Definition: drawsh2.cxx:542
void GetDrawAttrState(SfxItemSet &rSet)
Definition: drawsh2.cxx:384
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:511
#define static
Definition: arraysum.hxx:27
void setModified()
Definition: drawsh.cxx:156
void ExecuteAreaDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:542
static void InitInterface_Impl()
SfxInterface initializer.
Definition: drawsh.cxx:131
static void StateDisableItems(SfxItemSet &rSet)
Definition: drawsh.cxx:144
void ExecuteTextAttrDlg(SfxRequest &rReq)
Definition: drawsh.cxx:574
void GetState(SfxItemSet &rSet)
Definition: drawsh2.cxx:87
void ExecDrawAttr(SfxRequest &rReq)
Definition: drawsh.cxx:181
void StateFormatPaintbrush(SfxItemSet &rSet)
Definition: drawsh5.cxx:669
DECL_LINK(NameObjectHdl, AbstractSvxObjectNameDialog &, bool)
void ExecuteLineDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:504
void ExecuteMacroAssign(SdrObject *pObj, weld::Window *pWin)
Definition: drawsh.cxx:450
void GetFormTextState(SfxItemSet &rSet)
Definition: drawsh4.cxx:27
void ExecuteMeasureDlg(SfxRequest &rReq)
Definition: drawsh.cxx:601
#define SFX_DECL_INTERFACE(nId)