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:
15 #include <cppuhelper/implbase.hxx>
16 #include <cppuhelper/supportsservice.hxx>
17 #include <comphelper/servicehelper.hxx>
19 #include <com/sun/star/util/XBinaryDataContainer.hpp>
20 #include <com/sun/star/lang/XUnoTunnel.hpp>
21 #include <com/sun/star/uno/XComponentContext.hpp>
24 #include <vcl/BinaryDataContainer.hxx>
26 class UnoBinaryDataContainer final
27 : public cppu::WeakImplHelper
<css::util::XBinaryDataContainer
, css::lang::XUnoTunnel
>
30 BinaryDataContainer maBinaryDataContainer
;
33 UnoBinaryDataContainer(BinaryDataContainer aBinaryDataContainer
)
34 : maBinaryDataContainer(std::move(aBinaryDataContainer
))
38 BinaryDataContainer
const& getBinaryDataContainer() const { return maBinaryDataContainer
; }
40 // XBinaryDataContainer
41 css::uno::Sequence
<sal_Int8
> SAL_CALL
getCopyAsByteSequence() override
;
43 UNO3_GETIMPLEMENTATION_DECL(UnoBinaryDataContainer
)
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */