update dev300-m58
[ooovba.git] / sc / source / ui / inc / drawsh.hxx
blob058f92a532d1fc818d50272765995580db37051a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: drawsh.hxx,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_DRAWSH_HXX
32 #define SC_DRAWSH_HXX
34 #include <sfx2/shell.hxx>
35 #include "shellids.hxx"
36 #include <sfx2/module.hxx>
37 #include <svx/svdmark.hxx>
38 #include <tools/link.hxx>
40 class AbstractSvxNameDialog; //CHINA001 class SvxNameDialog;
41 class ScViewData;
42 class ScDrawView;
44 class ScDrawShell : public SfxShell
46 ScViewData* pViewData;
48 DECL_LINK( NameObjectHdl, AbstractSvxNameDialog* );
50 void SetHlinkForObject( SdrObject* pObj, const rtl::OUString& rHlnk );
52 protected:
53 ScViewData* GetViewData() { return pViewData; }
55 public:
56 TYPEINFO();
57 SFX_DECL_INTERFACE(SCID_DRAW_SHELL)
59 ScDrawShell(ScViewData* pData);
60 ~ScDrawShell();
62 void StateDisableItems( SfxItemSet &rSet );
64 void ExecDrawAttr(SfxRequest& rReq);
65 void GetDrawAttrState(SfxItemSet &rSet);
66 void GetAttrFuncState(SfxItemSet &rSet);
68 void ExecDrawFunc(SfxRequest& rReq);
69 void GetDrawFuncState(SfxItemSet &rSet);
70 void GetState(SfxItemSet &rSet);
72 void ExecFormText(SfxRequest& rReq); // StarFontWork
73 void GetFormTextState(SfxItemSet& rSet);
75 void ExecuteHLink(SfxRequest& rReq); // Hyperlink
76 void GetHLinkState(SfxItemSet& rSet);
78 void ExecFormatPaintbrush(SfxRequest& rReq);
79 void StateFormatPaintbrush(SfxItemSet& rSet);
81 void ExecuteMacroAssign( SdrObject* pObj, Window* pWin );
82 void ExecuteLineDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff );
83 void ExecuteAreaDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff );
84 void ExecuteTextAttrDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff );
86 ScDrawView* GetDrawView();
88 BOOL AreAllObjectsOnLayer(USHORT nLayerNo,const SdrMarkList& rMark);
93 #endif