xref: /aoo41x/main/sw/source/ui/docvw/romenu.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _ROMENU_HXX
24 #define _ROMENU_HXX
25 
26 
27 #ifndef _GRAPH_HXX //autogen
28 #include <vcl/graph.hxx>
29 #endif
30 #include <tools/list.hxx>
31 #ifndef _MENU_HXX //autogen
32 #include <vcl/menu.hxx>
33 #endif
34 
35 class SwView;
36 class SfxDispatcher;
37 class SvxBrushItem;
38 class ImageMap;
39 class INetImage;
40 
41 class SwReadOnlyPopup : public PopupMenu
42 {
43 		  SwView &rView;
44 	const SvxBrushItem *pItem;
45 	const Point &rDocPos;
46 				Graphic aGraphic;
47 	String		sURL,
48 				sTargetFrameName,
49 				sDescription,
50 				sGrfName;
51 	List		aThemeList;
52 	sal_Bool 		bGrfToGalleryAsLnk;
53 	ImageMap*	pImageMap;
54 	INetImage*	pTargetURL;
55 
56 	void Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher &rDis );
57 	String SaveGraphic( sal_uInt16 nId );
58 
59     using PopupMenu::Execute;
60 
61 public:
62 	SwReadOnlyPopup( const Point &rDPos, SwView &rV );
63 	~SwReadOnlyPopup();
64 
65 	void Execute( Window* pWin, const Point &rPPos );
66     void Execute( Window* pWin, sal_uInt16 nId );
67 };
68 
69 
70 #endif
71 
72