Files
loongoffice/vcl/source/image/ImageTree.cxx
Tomaž Vajngerl bf5f6df9e4 vcl: separate ImplImageTree - ImageTree singleton and public iface
ImplImageTree was used outside of VCL which is not consistent with
the name and the header also contains a lot of implementation
detail. This separates the implementation to ImplImageTree and
the public interface and singleton to ImageTree only.

Change-Id: I3a26444f0f6971a6b1d83472e9cef19c93192d3e
Reviewed-on: https://gerrit.libreoffice.org/32134
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-12-19 07:26:24 +00:00

57 lines
1.6 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#include <vcl/ImageTree.hxx>
#include "implimagetree.hxx"
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
ImageTree & ImageTree::get() {
static ImageTree s_ImageTree;
return s_ImageTree;
}
ImageTree::ImageTree()
: mpImplImageTree(new ImplImageTree)
{
}
OUString ImageTree::getImageUrl(OUString const & rName, OUString const & rStyle, OUString const & rLang)
{
return mpImplImageTree->getImageUrl(rName, rStyle, rLang);
}
bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle,
BitmapEx & rBitmap, bool bLocalized,
const ImageLoadFlags eFlags)
{
return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags);
}
bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap,
const ImageLoadFlags eFlags)
{
return mpImplImageTree->loadDefaultImage(rStyle, rBitmap, eFlags);
}
css::uno::Reference<css::container::XNameAccess> ImageTree::getNameAccess()
{
return mpImplImageTree->getNameAccess();
}
void ImageTree::shutdown()
{
mpImplImageTree->shutdown();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */