1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SwAppletImpl.hxx,v $
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 <sfx2/frmhtml.hxx>
44 #include <sfx2/frmhtmlw.hxx>
45 #ifndef _WRKWIN_HXX //autogen
46 #include <vcl/wrkwin.hxx>
48 #include <sot/storage.hxx>
49 #include <svtools/itemset.hxx>
51 #include <svtools/ownlist.hxx>
55 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
59 com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
> xApplet
;
60 SvCommandList aCommandList
; // und die szugehorige Command-List
65 static USHORT
GetOptionType( const String
& rName
, BOOL bApplet
);
66 SwApplet_Impl( SfxItemPool
& rPool
, USHORT nWhich1
, USHORT nWhich2
);
67 SwApplet_Impl( SfxItemSet
& rSet
): aItemSet ( rSet
) {}
69 void CreateApplet( const String
& rCode
, const String
& rName
,
70 BOOL bMayScript
, const String
& rCodeBase
,
71 const String
& rBaseURL
);
73 sal_Bool
CreateApplet( const String
& rBaseURL
);
74 void AppendParam( const String
& rName
, const String
& rValue
);
77 com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
> GetApplet() { return xApplet
; }
78 SfxItemSet
& GetItemSet() { return aItemSet
; }
79 const String
& GetAltText() { return sAlt
; }
80 void SetAltText( const String
& rAlt
) {sAlt
= rAlt
;}