LibreOffice Module vcl (master)  1
BinaryDataContainerTools.cxx
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  */
10 
13 
14 namespace vcl
15 {
17  const css::uno::Reference<css::util::XBinaryDataContainer>& rxBinaryDataContainer)
18 {
19  BinaryDataContainer aBinaryDataContainer;
20  UnoBinaryDataContainer* pUnoBinaryDataContainer
21  = comphelper::getUnoTunnelImplementation<UnoBinaryDataContainer>(rxBinaryDataContainer);
22  if (pUnoBinaryDataContainer)
23  aBinaryDataContainer = pUnoBinaryDataContainer->getBinaryDataContainer();
24  return aBinaryDataContainer;
25 }
26 }
27 
28 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Container for the binary data, whose responsibility is to manage the make it as simple as possible to...
BinaryDataContainer convertUnoBinaryDataContainer(const css::uno::Reference< css::util::XBinaryDataContainer > &rxBinaryDataContainer)
BinaryDataContainer const & getBinaryDataContainer() const