bump product version to 6.4.0.3
[LibreOffice.git] / vcl / source / image / ImageTree.cxx
blob83e2962cbf8e863a64f64f9c829ad243cf60933d
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 bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle,
38 BitmapEx & rBitmap, bool bLocalized,
39 sal_Int32 nScalePercentage,
40 const ImageLoadFlags eFlags)
42 return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags, nScalePercentage);
45 bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle,
46 BitmapEx & rBitmap, bool bLocalized,
47 const ImageLoadFlags eFlags)
49 return loadImage(rName, rStyle, rBitmap, bLocalized, -1, eFlags);
52 css::uno::Reference<css::container::XNameAccess> const & ImageTree::getNameAccess()
54 return mpImplImageTree->getNameAccess();
57 void ImageTree::shutdown()
59 mpImplImageTree->shutdown();
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */