1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
{
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>
44 #define OOO_STRING_SW_HTML_O_Hidden "HIDDEN"
48 com::sun::star::uno::Reference
< com::sun::star::embed::XEmbeddedObject
> xApplet
;
49 SvCommandList aCommandList
;
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
) {}
58 void CreateApplet( const OUString
& rCode
, const OUString
& rName
,
59 bool bMayScript
, const OUString
& rCodeBase
,
60 const OUString
& rBaseURL
);
62 bool CreateApplet( const OUString
& rBaseURL
);
63 void AppendParam( const OUString
& rName
, const OUString
& rValue
);
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
;}
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */