Branch libreoffice-5-0-4
[LibreOffice.git] / sw / inc / SwAppletImpl.hxx
blob5a668be8227f3c21622d1347f26f6792cb60b1dd
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 INCLUDED_SW_INC_SWAPPLETIMPL_HXX
21 #define INCLUDED_SW_INC_SWAPPLETIMPL_HXX
23 #include <config_features.h>
25 enum class SwHtmlOptType {
26 IGNORE = 0,
27 TAG = 1,
28 PARAM = 2,
29 SIZE = 3
32 #include <com/sun/star/embed/XEmbeddedObject.hpp>
34 #include <sfx2/frmhtml.hxx>
35 #include <sfx2/frmhtmlw.hxx>
36 #include <vcl/wrkwin.hxx>
37 #include <sot/storage.hxx>
38 #include <svl/itemset.hxx>
40 #include <svl/ownlist.hxx>
42 class SfxItemSet;
44 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
46 class SwApplet_Impl
48 com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > xApplet;
49 SvCommandList aCommandList;
50 SfxItemSet aItemSet;
51 OUString sAlt;
53 public:
54 static SwHtmlOptType GetOptionType( const OUString& rName, bool bApplet );
55 SwApplet_Impl( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhich2 );
56 SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
57 ~SwApplet_Impl();
58 void CreateApplet( const OUString& rCode, const OUString& rName,
59 bool bMayScript, const OUString& rCodeBase,
60 const OUString& rBaseURL );
61 #if HAVE_FEATURE_JAVA
62 bool CreateApplet( const OUString& rBaseURL );
63 void AppendParam( const OUString& rName, const OUString& rValue );
64 #endif
65 void FinishApplet();
66 com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetApplet() { return xApplet; }
67 SfxItemSet& GetItemSet() { return aItemSet; }
68 const OUString& GetAltText() const { return sAlt; }
69 void SetAltText( const OUString& rAlt ) {sAlt = rAlt;}
71 #endif
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */