summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ResourceManager.cxx
blob: db7ea9d18dda62b92bc31817fc79882382f82a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* -*- 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/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#include "ResourceManager.hxx"

#include <tools/resmgr.hxx>

namespace chart
{

ResMgr * ResourceManager::m_pResourceManager = 0;

ResMgr & ResourceManager::getResourceManager()
{
    // not threadsafe
    if( ! m_pResourceManager )
        m_pResourceManager = ResMgr::CreateResMgr("chartcontroller");
    OSL_ASSERT( m_pResourceManager );
    return *m_pResourceManager;
}

} //  namespace chart

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
='logsubject'>loplugin:salcall vcl builder methodsNoel Grandin these don't need to be SAL_CALL, and the function pointer definition was not annotated SAL_CALL either Change-Id: I3082d3d34c53dc723ad8d2083010fd0de0e89a1e Reviewed-on: https://gerrit.libreoffice.org/46067 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-09-25Rename GetSelectEntryCount -> GetSelectedEntryCountSamuel Mehrbrodt Change-Id: I405b347b404ed0acb3b6a0204e0b914a7698ce25 Reviewed-on: https://gerrit.libreoffice.org/42284 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2017-09-21Rename GetSelectEntryPos -> GetSelectedEntryPosSamuel Mehrbrodt Change-Id: I0bd4cb463575af843c72d9c8aaf91742203532a4 Reviewed-on: https://gerrit.libreoffice.org/42283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2017-07-04loplugin:casttovoid in VCL_BUILDER_DECL_FACTORYStephan Bergmann Change-Id: I4b0dd08963cf50daa41901975c6f92fe21db2048 2017-06-21loplugin:unusedfields in svx part2Noel Grandin Change-Id: Ie9fd55b71a152f428a397d9917918f0e9de39aaf Reviewed-on: https://gerrit.libreoffice.org/39014 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-03-15convert SvxFrameDirection to scoped enumNoel Grandin Based on the casts in chart2/source/view/main/ChartView.cxx and the similarity of naming of values, I conclude that this enum was intended to abstract over css::text::WritingMode2. Added a comment to that effect. Change-Id: I3af8bbe8b6ac8c4a9375f6ccde145b98b9c69a57 Reviewed-on: https://gerrit.libreoffice.org/35164 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2016-03-01loplugin:unuseddefaultparam in svx (part2)Noel Grandin Change-Id: I99e3d6137ec17e3fc782253c85e5fa4f1da4cec4 2016-02-09Remove excess newlinesChris Sherlock A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> 2015-05-15tdf#62475: partial handmade fixesAndrea Gelmini Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4 Reviewed-on: https://gerrit.libreoffice.org/15712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> 2015-05-12Switch VclBuilder constructors to use VclPtr.Michael Meeks Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf 2015-05-11Revert "Switch VclBuilder constructors to use VclPtr."Michael Meeks Behaves oddly; not ready yet. This reverts commit 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c. Change-Id: I30d746eac29d1dbe78d3072b10d2e22c051e3f4e 2015-05-11Switch VclBuilder constructors to use VclPtr.Michael Meeks Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf 2015-05-11tdf#91052 - more macros for 'make' constructors.Michael Meeks Change-Id: Iece86485c52041b66cde91d7fbc772db16d90a93 2015-04-09vcl: VclPtr conversion in svx.Noel Grandin Change-Id: I3a1000baa049b11728c46efbc2f0af0d8f34cf2b Conflicts: include/svx/charmap.hxx include/svx/float3d.hxx include/svx/fontwork.hxx include/svx/galctrl.hxx svx/inc/svdibrow.hxx svx/source/dialog/dlgctl3d.cxx svx/source/dialog/fontwork.cxx svx/source/engine3d/float3d.cxx svx/source/fmcomp/gridctrl.cxx svx/source/gallery2/galbrws1.cxx svx/source/inc/docrecovery.hxx 2014-09-23fdo#82577: Handle WindowNoel Grandin Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a