bump product version to 4.1.6.2
[LibreOffice.git] / sw / inc / SwAppletImpl.hxx
blob70579083fe2a131e711c190709761bbb671f1b2d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _SW_APPLET_IMPL_HXX
21 #define _SW_APPLET_IMPL_HXX
23 #define SWHTML_OPTTYPE_IGNORE 0
24 #define SWHTML_OPTTYPE_TAG 1
25 #define SWHTML_OPTTYPE_PARAM 2
26 #define SWHTML_OPTTYPE_SIZE 3
28 #include <com/sun/star/embed/XEmbeddedObject.hpp>
31 #include <sfx2/frmhtml.hxx>
32 #include <sfx2/frmhtmlw.hxx>
33 #include <vcl/wrkwin.hxx>
34 #include <sot/storage.hxx>
35 #include <svl/itemset.hxx>
37 #include <svl/ownlist.hxx>
39 class SfxItemSet;
41 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
43 class SwApplet_Impl
45 com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > xApplet;
46 SvCommandList aCommandList;
47 SfxItemSet aItemSet;
48 OUString sAlt;
50 public:
51 static sal_uInt16 GetOptionType( const OUString& rName, sal_Bool bApplet );
52 SwApplet_Impl( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhich2 );
53 SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
54 ~SwApplet_Impl();
55 void CreateApplet( const OUString& rCode, const OUString& rName,
56 sal_Bool bMayScript, const OUString& rCodeBase,
57 const OUString& rBaseURL );
58 #ifdef SOLAR_JAVA
59 sal_Bool CreateApplet( const OUString& rBaseURL );
60 void AppendParam( const OUString& rName, const OUString& rValue );
61 #endif
62 void FinishApplet();
63 com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetApplet() { return xApplet; }
64 SfxItemSet& GetItemSet() { return aItemSet; }
65 const OUString& GetAltText() const { return sAlt; }
66 void SetAltText( const OUString& rAlt ) {sAlt = rAlt;}
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */