/src/libreoffice/sw/inc/SwAppletImpl.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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/. |
8 | | * |
9 | | * This file incorporates work covered by the following license notice: |
10 | | * |
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 . |
18 | | */ |
19 | | #pragma once |
20 | | |
21 | | #include <config_java.h> |
22 | | |
23 | | #include <svl/itemset.hxx> |
24 | | #include <svl/ownlist.hxx> |
25 | | #include <utility> |
26 | | |
27 | | namespace com::sun::star::embed { class XEmbeddedObject; } |
28 | | |
29 | | enum class SwHtmlOptType { |
30 | | IGNORE = 0, |
31 | | TAG = 1, |
32 | | PARAM = 2, |
33 | | SIZE = 3 |
34 | | }; |
35 | | |
36 | 4.61k | #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN" |
37 | | |
38 | | class SwApplet_Impl |
39 | | { |
40 | | css::uno::Reference < css::embed::XEmbeddedObject > m_xApplet; |
41 | | SvCommandList m_aCommandList; |
42 | | SfxItemSet m_aItemSet; |
43 | | OUString m_sAlt; |
44 | | |
45 | | public: |
46 | | static SwHtmlOptType GetOptionType( std::u16string_view rName, bool bApplet ); |
47 | | SwApplet_Impl( SfxItemPool& rPool ); |
48 | 0 | SwApplet_Impl( SfxItemSet aSet ): m_aItemSet (std::move(aSet)) {} |
49 | | ~SwApplet_Impl(); |
50 | | void CreateApplet( const OUString& rCode, const OUString& rName, |
51 | | bool bMayScript, const OUString& rCodeBase, |
52 | | std::u16string_view rBaseURL ); |
53 | | #if HAVE_FEATURE_JAVA |
54 | | bool CreateApplet( std::u16string_view rBaseURL ); |
55 | | void AppendParam( const OUString& rName, const OUString& rValue ); |
56 | | #endif |
57 | | void FinishApplet(); |
58 | 0 | const css::uno::Reference < css::embed::XEmbeddedObject >& GetApplet() const { return m_xApplet; } |
59 | 0 | SfxItemSet& GetItemSet() { return m_aItemSet; } |
60 | 0 | const OUString& GetAltText() const { return m_sAlt; } |
61 | 0 | void SetAltText( const OUString& rAlt ) {m_sAlt = rAlt;} |
62 | | }; |
63 | | |
64 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |