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/.
11 #include <vcl/ImageTree.hxx>
12 #include "implimagetree.hxx"
13 #include <com/sun/star/uno/Reference.hxx>
14 #include <com/sun/star/uno/Sequence.hxx>
15 #include <com/sun/star/container/XNameAccess.hpp>
17 ImageTree
& ImageTree::get() {
18 static ImageTree s_ImageTree
;
22 ImageTree::ImageTree()
23 : mpImplImageTree(new ImplImageTree
)
27 OUString
ImageTree::getImageUrl(OUString
const & rName
, OUString
const & rStyle
, OUString
const & rLang
)
30 return mpImplImageTree
->getImageUrl(rName
, rStyle
, rLang
);
33 bool ImageTree::loadImage(OUString
const & rName
, OUString
const & rStyle
,
34 BitmapEx
& rBitmap
, bool bLocalized
,
35 const ImageLoadFlags eFlags
)
37 return mpImplImageTree
->loadImage(rName
, rStyle
, rBitmap
, bLocalized
, eFlags
);
40 bool ImageTree::loadDefaultImage(OUString
const & rStyle
, BitmapEx
& rBitmap
,
41 const ImageLoadFlags eFlags
)
43 return mpImplImageTree
->loadDefaultImage(rStyle
, rBitmap
, eFlags
);
46 css::uno::Reference
<css::container::XNameAccess
> ImageTree::getNameAccess()
48 return mpImplImageTree
->getNameAccess();
51 void ImageTree::shutdown()
53 mpImplImageTree
->shutdown();
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */