xref: /aoo41x/main/sc/source/ui/inc/drawsh.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef SC_DRAWSH_HXX
29 #define SC_DRAWSH_HXX
30 
31 #include <sfx2/shell.hxx>
32 #include "shellids.hxx"
33 #include <sfx2/module.hxx>
34 #include <svx/svdmark.hxx>
35 #include <tools/link.hxx>
36 
37 class AbstractSvxNameDialog; //CHINA001 class SvxNameDialog;
38 class ScViewData;
39 class ScDrawView;
40 
41 class ScDrawShell : public SfxShell
42 {
43 	ScViewData*	pViewData;
44 
45     DECL_LINK( NameObjectHdl, AbstractSvxNameDialog* );
46 
47 #ifdef ISSUE66550_HLINK_FOR_SHAPES
48     void SetHlinkForObject( SdrObject* pObj, const rtl::OUString& rHlnk );
49 #endif
50 
51 protected:
52 	ScViewData*	GetViewData()	{ return pViewData; }
53 
54 public:
55 	TYPEINFO();
56 	SFX_DECL_INTERFACE(SCID_DRAW_SHELL)
57 
58 					ScDrawShell(ScViewData* pData);
59 					~ScDrawShell();
60 
61 	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(SfxRequest& rReq);		// StarFontWork
72 	void	GetFormTextState(SfxItemSet& rSet);
73 
74 	void	ExecuteHLink(SfxRequest& rReq);		// Hyperlink
75 	void	GetHLinkState(SfxItemSet& rSet);
76 
77     void    ExecFormatPaintbrush(SfxRequest& rReq);
78     void    StateFormatPaintbrush(SfxItemSet& rSet);
79 
80     void    ExecuteMacroAssign( SdrObject* pObj, Window* pWin );
81 	void	ExecuteLineDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
82 	void	ExecuteAreaDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
83 	void	ExecuteTextAttrDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
84 
85     ScDrawView* GetDrawView();
86 
87 	sal_Bool	AreAllObjectsOnLayer(sal_uInt16 nLayerNo,const SdrMarkList& rMark);
88 };
89 
90 
91 
92 #endif
93 
94 
95