android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / inc / SwAppletImpl.hxx
blobea30a104ce696ce6573c4714cdcc83a8d651f477
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_java.h>
25 #include <svl/itemset.hxx>
26 #include <svl/ownlist.hxx>
27 #include <utility>
29 namespace com::sun::star::embed { class XEmbeddedObject; }
31 enum class SwHtmlOptType {
32 IGNORE = 0,
33 TAG = 1,
34 PARAM = 2,
35 SIZE = 3
38 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
40 class SwApplet_Impl
42 css::uno::Reference < css::embed::XEmbeddedObject > m_xApplet;
43 SvCommandList m_aCommandList;
44 SfxItemSet m_aItemSet;
45 OUString m_sAlt;
47 public:
48 static SwHtmlOptType GetOptionType( std::u16string_view rName, bool bApplet );
49 SwApplet_Impl( SfxItemPool& rPool );
50 SwApplet_Impl( SfxItemSet aSet ): m_aItemSet (std::move(aSet)) {}
51 ~SwApplet_Impl();
52 void CreateApplet( const OUString& rCode, const OUString& rName,
53 bool bMayScript, const OUString& rCodeBase,
54 std::u16string_view rBaseURL );
55 #if HAVE_FEATURE_JAVA
56 bool CreateApplet( std::u16string_view rBaseURL );
57 void AppendParam( const OUString& rName, const OUString& rValue );
58 #endif
59 void FinishApplet();
60 const css::uno::Reference < css::embed::XEmbeddedObject >& GetApplet() const { return m_xApplet; }
61 SfxItemSet& GetItemSet() { return m_aItemSet; }
62 const OUString& GetAltText() const { return m_sAlt; }
63 void SetAltText( const OUString& rAlt ) {m_sAlt = rAlt;}
65 #endif
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */