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
29class ScViewData;
30class ScDrawView;
31class SdrMarkList;
32class SfxModule;
33class SdrObject;
34
35namespace weld { class Window; }
36
37namespace svx::sidebar { class SelectionChangeHandler; }
38
39class ScDrawShell : public SfxShell
40{
43
44 DECL_LINK( NameObjectHdl, AbstractSvxObjectNameDialog&, bool );
45
46protected:
47 virtual void Activate(bool bMDI) override;
49
50public:
52
53private:
55 static void InitInterface_Impl();
56
57public:
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
91 OUString const & GetSidebarContextName();
92
93 void setModified();
94};
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void ExecuteLineDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:473
void ExecDrawAttr(SfxRequest &rReq)
Definition: drawsh.cxx:142
DECL_LINK(NameObjectHdl, AbstractSvxObjectNameDialog &, bool)
OUString const & GetSidebarContextName()
Definition: drawsh2.cxx:557
void GetAttrFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:470
virtual void Activate(bool bMDI) override
Definition: drawsh2.cxx:549
ScDrawShell(ScViewData &rData)
Definition: drawsh2.cxx:62
void GetDrawAttrStateForIFBX(SfxItemSet &rSet)
Definition: drawsh2.cxx:537
void StateFormatPaintbrush(SfxItemSet &rSet)
Definition: drawsh5.cxx:707
ScDrawView * GetDrawView()
Definition: drawsh5.cxx:719
void GetState(SfxItemSet &rSet)
Definition: drawsh2.cxx:87
ScViewData & GetViewData()
Definition: drawsh.hxx:48
void ExecuteAreaDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:511
void ExecuteTextAttrDlg(SfxRequest &rReq)
Definition: drawsh.cxx:543
void ExecuteMacroAssign(SdrObject *pObj, weld::Window *pWin)
Definition: drawsh.cxx:419
void GetHLinkState(SfxItemSet &rSet)
Definition: drawsh5.cxx:56
void ExecFormText(const SfxRequest &rReq)
Definition: drawsh5.cxx:667
static bool AreAllObjectsOnLayer(SdrLayerID nLayerNo, const SdrMarkList &rMark)
Definition: drawsh2.cxx:518
void ExecuteHLink(const SfxRequest &rReq)
Definition: drawsh5.cxx:132
static void InitInterface_Impl()
SfxInterface initializer.
Definition: drawsh.cxx:92
ScViewData & rViewData
Definition: drawsh.hxx:41
void ExecuteMeasureDlg(SfxRequest &rReq)
Definition: drawsh.cxx:570
void GetDrawAttrState(SfxItemSet &rSet)
Definition: drawsh2.cxx:391
::rtl::Reference< svx::sidebar::SelectionChangeHandler > mpSelectionChangeHandler
Definition: drawsh.hxx:42
void ExecDrawFunc(SfxRequest &rReq)
Definition: drawsh5.cxx:228
void GetDrawFuncState(SfxItemSet &rSet)
Definition: drawsh2.cxx:146
void setModified()
Definition: drawsh.cxx:117
static void StateDisableItems(SfxItemSet &rSet)
Definition: drawsh.cxx:105
virtual ~ScDrawShell() override
Definition: drawsh2.cxx:82
void ExecFormatPaintbrush(const SfxRequest &rReq)
Definition: drawsh5.cxx:683
void GetFormTextState(SfxItemSet &rSet)
Definition: drawsh4.cxx:27
#define SFX_DECL_INTERFACE(nId)
#define SCID_DRAW_SHELL
Definition: shellids.hxx:28