Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _SW_APPLET_IMPL_HXX
30 : : #define _SW_APPLET_IMPL_HXX
31 : :
32 : : #define SWHTML_OPTTYPE_IGNORE 0
33 : : #define SWHTML_OPTTYPE_TAG 1
34 : : #define SWHTML_OPTTYPE_PARAM 2
35 : : #define SWHTML_OPTTYPE_SIZE 3
36 : :
37 : : #include <com/sun/star/embed/XEmbeddedObject.hpp>
38 : :
39 : :
40 : : #include <sfx2/frmhtml.hxx>
41 : : #include <sfx2/frmhtmlw.hxx>
42 : : #include <vcl/wrkwin.hxx>
43 : : #include <sot/storage.hxx>
44 : : #include <svl/itemset.hxx>
45 : :
46 : : #include <svl/ownlist.hxx>
47 : :
48 : : class SfxItemSet;
49 : :
50 : : #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
51 : :
52 : : class SwApplet_Impl
53 : : {
54 : : com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > xApplet;
55 : : SvCommandList aCommandList;
56 : : SfxItemSet aItemSet;
57 : : ::rtl::OUString sAlt;
58 : :
59 : : public:
60 : : static sal_uInt16 GetOptionType( const ::rtl::OUString& rName, sal_Bool bApplet );
61 : : SwApplet_Impl( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhich2 );
62 [ # # ][ # # ]: 0 : SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
63 : : ~SwApplet_Impl();
64 : : void CreateApplet( const ::rtl::OUString& rCode, const ::rtl::OUString& rName,
65 : : sal_Bool bMayScript, const ::rtl::OUString& rCodeBase,
66 : : const ::rtl::OUString& rBaseURL );
67 : : #ifdef SOLAR_JAVA
68 : : sal_Bool CreateApplet( const ::rtl::OUString& rBaseURL );
69 : : void AppendParam( const ::rtl::OUString& rName, const ::rtl::OUString& rValue );
70 : : #endif
71 : : void FinishApplet();
72 : 0 : com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetApplet() { return xApplet; }
73 : 0 : SfxItemSet& GetItemSet() { return aItemSet; }
74 : 0 : const ::rtl::OUString& GetAltText() const { return sAlt; }
75 : 0 : void SetAltText( const ::rtl::OUString& rAlt ) {sAlt = rAlt;}
76 : : };
77 : : #endif
78 : :
79 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|