Update to m13
[ooovba.git] / sw / inc / SwAppletImpl.hxx
blob22292df316a8cf12a4e75f666b64bb0807bfccf2
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: SwAppletImpl.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 _SW_APPLET_IMPL_HXX
32 #define _SW_APPLET_IMPL_HXX
34 #define SWHTML_OPTTYPE_IGNORE 0
35 #define SWHTML_OPTTYPE_TAG 1
36 #define SWHTML_OPTTYPE_PARAM 2
37 #define SWHTML_OPTTYPE_SIZE 3
39 #include <com/sun/star/embed/XEmbeddedObject.hpp>
42 #include <tools/string.hxx>
43 #include <svtools/htmlkywd.hxx>
44 #include <sfx2/frmhtml.hxx>
45 #include <sfx2/frmhtmlw.hxx>
46 #ifndef _WRKWIN_HXX //autogen
47 #include <vcl/wrkwin.hxx>
48 #endif
49 #include <sot/storage.hxx>
50 #include <svtools/itemset.hxx>
52 #include <svtools/ownlist.hxx>
54 class SfxItemSet;
56 #define sHTML_O_archive "ARCHIVE"
58 #define sHTML_O_Hidden "HIDDEN"
59 #define sHTML_O_Hidden_False "FALSE"
60 #define sHTML_O_Archives "ARCHIVES"
61 #define sHTML_O_Object "OBJECT"
63 class SwApplet_Impl
65 com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > xApplet;
66 SvCommandList aCommandList; // und die szugehorige Command-List
67 SfxItemSet aItemSet;
68 String sAlt;
70 public:
71 static USHORT GetOptionType( const String& rName, BOOL bApplet );
72 SwApplet_Impl( SfxItemPool& rPool, USHORT nWhich1, USHORT nWhich2 );
73 SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
74 ~SwApplet_Impl();
75 void CreateApplet( const String& rCode, const String& rName,
76 BOOL bMayScript, const String& rCodeBase,
77 const String& rBaseURL );
78 #ifdef SOLAR_JAVA
79 sal_Bool CreateApplet( const String& rBaseURL );
80 void AppendParam( const String& rName, const String& rValue );
81 #endif
82 void FinishApplet();
83 com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetApplet() { return xApplet; }
84 SfxItemSet& GetItemSet() { return aItemSet; }
85 const String& GetAltText() { return sAlt; }
86 void SetAltText( const String& rAlt ) {sAlt = rAlt;}
88 #endif