xref: /aoo42x/main/sw/inc/SwAppletImpl.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 
24 #ifndef _SW_APPLET_IMPL_HXX
25 #define _SW_APPLET_IMPL_HXX
26 
27 #define SWHTML_OPTTYPE_IGNORE 0
28 #define SWHTML_OPTTYPE_TAG 1
29 #define SWHTML_OPTTYPE_PARAM 2
30 #define SWHTML_OPTTYPE_SIZE 3
31 
32 #include <com/sun/star/embed/XEmbeddedObject.hpp>
33 
34 
35 #include <tools/string.hxx>
36 #include <sfx2/frmhtml.hxx>
37 #include <sfx2/frmhtmlw.hxx>
38 #ifndef _WRKWIN_HXX //autogen
39 #include <vcl/wrkwin.hxx>
40 #endif
41 #include <sot/storage.hxx>
42 #include <svl/itemset.hxx>
43 
44 #include <svl/ownlist.hxx>
45 
46 class SfxItemSet;
47 
48 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
49 
50 class SwApplet_Impl
51 {
52     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > xApplet;
53     SvCommandList     aCommandList; // und die szugehorige Command-List
54 	SfxItemSet 		  aItemSet;
55 	String			  sAlt;
56 
57 public:
58 	static sal_uInt16 GetOptionType( const String& rName, sal_Bool bApplet );
59 	SwApplet_Impl( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhich2 );
SwApplet_Impl(SfxItemSet & rSet)60 	SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
61 	~SwApplet_Impl();
62 	void CreateApplet( const String& rCode, const String& rName,
63                        sal_Bool bMayScript, const String& rCodeBase,
64                        const String& rBaseURL );
65 #ifdef SOLAR_JAVA
66 	sal_Bool CreateApplet( const String& rBaseURL );
67 	void AppendParam( const String& rName, const String& rValue );
68 #endif
69 	void FinishApplet();
GetApplet()70     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetApplet() { return xApplet; }
GetItemSet()71 	SfxItemSet& GetItemSet() { return aItemSet; }
GetAltText()72     const String& GetAltText() { return sAlt; }
SetAltText(const String & rAlt)73     void          SetAltText( const String& rAlt ) {sAlt = rAlt;}
74 };
75 #endif
76