bump product version to 7.6.3.2-android
[LibreOffice.git] / vcl / source / image / ImageTree.cxx
blobfdc47cbfe7003e73134ebbebbed2e19658aaa5c8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 */
11 #include <vcl/ImageTree.hxx>
12 #include <implimagetree.hxx>
13 #include <com/sun/star/uno/Reference.hxx>
14 #include <com/sun/star/container/XNameAccess.hpp>
16 ImageTree & ImageTree::get() {
17 static ImageTree s_ImageTree;
18 return s_ImageTree;
21 ImageTree::ImageTree()
22 : mpImplImageTree(new ImplImageTree)
26 OUString ImageTree::getImageUrl(OUString const & rName, OUString const & rStyle, OUString const & rLang)
29 return mpImplImageTree->getImageUrl(rName, rStyle, rLang);
32 std::shared_ptr<SvMemoryStream> ImageTree::getImageStream(OUString const & rName, OUString const & rStyle, OUString const & rLang)
34 return mpImplImageTree->getImageStream(rName, rStyle, rLang);
37 css::uno::Reference<css::io::XInputStream> ImageTree::getImageXInputStream(OUString const & rName, OUString const & rStyle, OUString const & rLang)
39 return mpImplImageTree->getImageXInputStream(rName, rStyle, rLang);
42 bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle,
43 BitmapEx & rBitmap, bool bLocalized,
44 sal_Int32 nScalePercentage,
45 const ImageLoadFlags eFlags)
47 return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags, nScalePercentage);
50 bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle,
51 BitmapEx & rBitmap, bool bLocalized,
52 const ImageLoadFlags eFlags)
54 return loadImage(rName, rStyle, rBitmap, bLocalized, -1, eFlags);
57 css::uno::Reference<css::container::XNameAccess> const & ImageTree::getNameAccess()
59 return mpImplImageTree->getNameAccess();
62 void ImageTree::shutdown()
64 mpImplImageTree->shutdown();
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */