1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
23 #include <sfx2/shell.hxx>
24 #include "shellids.hxx"
25 #include <sfx2/module.hxx>
26 #include <svx/svdmark.hxx>
27 #include <tools/link.hxx>
28 #include <rtl/ref.hxx>
30 class AbstractSvxNameDialog
;
33 namespace svx
{ namespace sidebar
{
34 class SelectionChangeHandler
;
37 class ScDrawShell
: public SfxShell
39 ScViewData
* pViewData
;
40 ::rtl::Reference
<svx::sidebar::SelectionChangeHandler
> mpSelectionChangeHandler
;
42 DECL_LINK( NameObjectHdl
, AbstractSvxNameDialog
* );
44 void SetHlinkForObject( SdrObject
* pObj
, const OUString
& rHlnk
);
47 virtual void Activate(sal_Bool bMDI
);
48 ScViewData
* GetViewData() { return pViewData
; }
52 SFX_DECL_INTERFACE(SCID_DRAW_SHELL
)
54 ScDrawShell(ScViewData
* pData
);
57 void StateDisableItems( SfxItemSet
&rSet
);
59 void ExecDrawAttr(SfxRequest
& rReq
);
60 void GetDrawAttrState(SfxItemSet
&rSet
);
61 void GetAttrFuncState(SfxItemSet
&rSet
);
63 void ExecDrawFunc(SfxRequest
& rReq
);
64 void GetDrawFuncState(SfxItemSet
&rSet
);
65 void GetState(SfxItemSet
&rSet
);
67 void ExecFormText(SfxRequest
& rReq
); // StarFontWork
68 void GetFormTextState(SfxItemSet
& rSet
);
70 void ExecuteHLink(SfxRequest
& rReq
); // Hyperlink
71 void GetHLinkState(SfxItemSet
& rSet
);
73 void ExecFormatPaintbrush(SfxRequest
& rReq
);
74 void StateFormatPaintbrush(SfxItemSet
& rSet
);
76 void ExecuteMacroAssign( SdrObject
* pObj
, Window
* pWin
);
77 void ExecuteLineDlg( SfxRequest
& rReq
, sal_uInt16 nTabPage
= 0xffff );
78 void ExecuteAreaDlg( SfxRequest
& rReq
, sal_uInt16 nTabPage
= 0xffff );
79 void ExecuteTextAttrDlg( SfxRequest
& rReq
, sal_uInt16 nTabPage
= 0xffff );
81 ScDrawView
* GetDrawView();
83 sal_Bool
AreAllObjectsOnLayer(sal_uInt16 nLayerNo
,const SdrMarkList
& rMark
);
85 void GetDrawAttrStateForIFBX( SfxItemSet
& rSet
);
86 ::rtl::OUString
GetSidebarContextName (void);
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */