LibreOffice Module svx (master)
1
svx
source
sidebar
nbdtmgfact.cxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
20
#include <
svx/nbdtmgfact.hxx
>
21
22
namespace
svx::sidebar::NBOutlineTypeMgrFact
23
{
24
NBOTypeMgrBase
*
CreateInstance
(
const
NBOType
aType)
25
{
26
if
(aType ==
NBOType::Bullets
)
27
{
28
return
&
BulletsTypeMgr::GetInstance
();
29
}
30
else
if
(aType ==
NBOType::Numbering
)
31
{
32
return
&
NumberingTypeMgr::GetInstance
();
33
}
34
else
if
(aType ==
NBOType::Outline
)
35
{
36
return
&
OutlineTypeMgr::GetInstance
();
37
}
38
return
nullptr
;
39
}
40
}
41
42
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx::sidebar::BulletsTypeMgr::GetInstance
static BulletsTypeMgr & GetInstance()
Definition:
nbdtmg.cxx:256
svx::sidebar::NBOTypeMgrBase
Definition:
nbdtmg.hxx:111
svx::sidebar::NumberingTypeMgr::GetInstance
static NumberingTypeMgr & GetInstance()
Definition:
nbdtmg.cxx:401
svx::sidebar::OutlineTypeMgr::GetInstance
static OutlineTypeMgr & GetInstance()
Definition:
nbdtmg.cxx:570
svx::sidebar::NBOutlineTypeMgrFact
Definition:
nbdtmgfact.cxx:23
svx::sidebar::NBOutlineTypeMgrFact::CreateInstance
NBOTypeMgrBase * CreateInstance(const NBOType aType)
Definition:
nbdtmgfact.cxx:24
svx::sidebar::NBOType
NBOType
Definition:
nbdtmg.hxx:34
svx::sidebar::NBOType::Bullets
@ Bullets
svx::sidebar::NBOType::Numbering
@ Numbering
svx::sidebar::NBOType::Outline
@ Outline
nbdtmgfact.hxx
Generated on Sun Jul 30 2023 04:28:15 for LibreOffice Module svx (master) by
1.9.3