LibreOffice Module sw (master)  1
SwAppletImpl.hxx
Go to the documentation of this file.
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 
20 #ifndef INCLUDED_SW_INC_SWAPPLETIMPL_HXX
21 #define INCLUDED_SW_INC_SWAPPLETIMPL_HXX
22 
23 #include <config_java.h>
24 
25 #include <svl/itemset.hxx>
26 #include <svl/ownlist.hxx>
27 
28 namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedObject; } } } }
29 
30 enum class SwHtmlOptType {
31  IGNORE = 0,
32  TAG = 1,
33  PARAM = 2,
34  SIZE = 3
35 };
36 
37 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
38 
40 {
41  css::uno::Reference < css::embed::XEmbeddedObject > xApplet;
44  OUString sAlt;
45 
46 public:
47  static SwHtmlOptType GetOptionType( const OUString& rName, bool bApplet );
48  SwApplet_Impl( SfxItemPool& rPool );
49  SwApplet_Impl( SfxItemSet const & rSet ): aItemSet ( rSet) {}
51  void CreateApplet( const OUString& rCode, const OUString& rName,
52  bool bMayScript, const OUString& rCodeBase,
53  const OUString& rBaseURL );
54 #if HAVE_FEATURE_JAVA
55  bool CreateApplet( const OUString& rBaseURL );
56  void AppendParam( const OUString& rName, const OUString& rValue );
57 #endif
58  void FinishApplet();
59  const css::uno::Reference < css::embed::XEmbeddedObject >& GetApplet() const { return xApplet; }
61  const OUString& GetAltText() const { return sAlt; }
62  void SetAltText( const OUString& rAlt ) {sAlt = rAlt;}
63 };
64 #endif
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const css::uno::Reference< css::embed::XEmbeddedObject > & GetApplet() const
static SwHtmlOptType GetOptionType(const OUString &rName, bool bApplet)
SvCommandList aCommandList
SfxItemSet aItemSet
SfxItemSet & GetItemSet()
SwApplet_Impl(SfxItemPool &rPool)
SwApplet_Impl(SfxItemSet const &rSet)
void CreateApplet(const OUString &rCode, const OUString &rName, bool bMayScript, const OUString &rCodeBase, const OUString &rBaseURL)
void SetAltText(const OUString &rAlt)
const OUString & GetAltText() const
SwHtmlOptType
css::uno::Reference< css::embed::XEmbeddedObject > xApplet