xref: /trunk/main/sw/inc/SwAppletImpl.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SW_APPLET_IMPL_HXX
25cdf0e10cSrcweir #define _SW_APPLET_IMPL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #define SWHTML_OPTTYPE_IGNORE 0
28cdf0e10cSrcweir #define SWHTML_OPTTYPE_TAG 1
29cdf0e10cSrcweir #define SWHTML_OPTTYPE_PARAM 2
30cdf0e10cSrcweir #define SWHTML_OPTTYPE_SIZE 3
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir 
35cdf0e10cSrcweir #include <tools/string.hxx>
36cdf0e10cSrcweir #include <sfx2/frmhtml.hxx>
37cdf0e10cSrcweir #include <sfx2/frmhtmlw.hxx>
38cdf0e10cSrcweir #ifndef _WRKWIN_HXX //autogen
39cdf0e10cSrcweir #include <vcl/wrkwin.hxx>
40cdf0e10cSrcweir #endif
41cdf0e10cSrcweir #include <sot/storage.hxx>
42cdf0e10cSrcweir #include <svl/itemset.hxx>
43cdf0e10cSrcweir 
44cdf0e10cSrcweir #include <svl/ownlist.hxx>
45cdf0e10cSrcweir 
46cdf0e10cSrcweir class SfxItemSet;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
49cdf0e10cSrcweir 
50cdf0e10cSrcweir class SwApplet_Impl
51cdf0e10cSrcweir {
52cdf0e10cSrcweir     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > xApplet;
53cdf0e10cSrcweir     SvCommandList     aCommandList; // und die szugehorige Command-List
54cdf0e10cSrcweir     SfxItemSet        aItemSet;
55cdf0e10cSrcweir     String            sAlt;
56cdf0e10cSrcweir 
57cdf0e10cSrcweir public:
58cdf0e10cSrcweir     static sal_uInt16 GetOptionType( const String& rName, sal_Bool bApplet );
59cdf0e10cSrcweir     SwApplet_Impl( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhich2 );
SwApplet_Impl(SfxItemSet & rSet)60cdf0e10cSrcweir     SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
61cdf0e10cSrcweir     ~SwApplet_Impl();
62cdf0e10cSrcweir     void CreateApplet( const String& rCode, const String& rName,
63cdf0e10cSrcweir                        sal_Bool bMayScript, const String& rCodeBase,
64cdf0e10cSrcweir                        const String& rBaseURL );
65cdf0e10cSrcweir #ifdef SOLAR_JAVA
66cdf0e10cSrcweir     sal_Bool CreateApplet( const String& rBaseURL );
67cdf0e10cSrcweir     void AppendParam( const String& rName, const String& rValue );
68cdf0e10cSrcweir #endif
69cdf0e10cSrcweir     void FinishApplet();
GetApplet()70cdf0e10cSrcweir     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetApplet() { return xApplet; }
GetItemSet()71cdf0e10cSrcweir     SfxItemSet& GetItemSet() { return aItemSet; }
GetAltText()72cdf0e10cSrcweir     const String& GetAltText() { return sAlt; }
SetAltText(const String & rAlt)73cdf0e10cSrcweir     void          SetAltText( const String& rAlt ) {sAlt = rAlt;}
74cdf0e10cSrcweir };
75cdf0e10cSrcweir #endif
76