Update ooo320-m1
[ooovba.git] / sw / source / ui / web / wolesh.cxx
blobcc5bdb73d8adf0833a643effe5c5d600f36c811c
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: wolesh.cxx,v $
10 * $Revision: 1.8 $
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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sw.hxx"
35 #include <sfx2/msg.hxx>
36 #include <sfx2/app.hxx>
37 #include <sfx2/objface.hxx>
38 #include <svx/srchitem.hxx>
40 #include "wrtsh.hxx"
41 #include "view.hxx"
42 #include "helpid.h"
43 #include "globals.hrc"
44 #include "web.hrc"
45 #include "popup.hrc"
46 #include "shells.hrc"
47 #include "wolesh.hxx"
48 #include "cmdid.h"
50 #define SwWebOleShell
51 #include "swslots.hxx"
53 SFX_IMPL_INTERFACE(SwWebOleShell, SwOleShell, SW_RES(STR_SHELLNAME_OBJECT))
55 SFX_POPUPMENU_REGISTRATION(SW_RES(MN_OLE_POPUPMENU));
56 SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBOLE_TOOLBOX));
59 SwWebOleShell::SwWebOleShell(SwView &_rView) :
60 SwOleShell(_rView)
63 SetName(String::CreateFromAscii("Object"));
64 SetHelpId(SW_OLESHELL);
67 __EXPORT SwWebOleShell::~SwWebOleShell()