xref: /trunk/main/svx/source/sidebar/nbdtmgfact.cxx (revision 766ce4d0)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright IBM Corporation 2009.
6  * Copyright 2009. by Sun Microsystems, Inc.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * $RCSfile: nbdtmgfact.cxx,v $
11  * $Revision: 1.00.00.0 $
12  *
13  * This file is part of OpenOffice.org.
14  *
15  * OpenOffice.org is free software: you can redistribute it and/or modify
16  * it under the terms of the GNU Lesser General Public License version 3
17  * only, as published by the Free Software Foundation.
18  *
19  * OpenOffice.org is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU Lesser General Public License version 3 for more details
23  * (a copy is included in the LICENSE file that accompanied this code).
24  *
25  * You should have received a copy of the GNU Lesser General Public License
26  * version 3 along with OpenOffice.org.  If not, see
27  * <http://www.openoffice.org/license.html>
28  * for a copy of the LGPLv3 License.
29  *
30  ************************************************************************/
31 
32 /********************************************************************************
33  *
34  *	Tool to Visualize Internal Data Structure for Productive Development
35  *	It is a developer's tool from Lotus Symphony Documents Editor Team
36  *
37  *	This file implements the base abstract exporter and 2 inherited sub-classes for
38  *	the internal data structure tracer.
39  *
40  *	Date: 05/25/2009
41  *
42  ********************************************************************************/
43 
44 #ifndef _NBDTMGFACT_HXX
45 #include <svx/nbdtmgfact.hxx>
46 #endif
47 namespace svx { namespace sidebar {
48 NBOutlineTypeMgrFact::NBOutlineTypeMgrFact()
49 {
50 }
51 
52 NBOTypeMgrBase* NBOutlineTypeMgrFact::CreateInstance(const NBOType aType)
53 {
54 	//NBOTypeMgrBase* pRet= 0;
55 	if ( aType == eNBOType::BULLETS )
56 	{
57 		return BulletsTypeMgr::GetInstance();
58 	}else if ( aType == eNBOType::GRAPHICBULLETS )
59 	{
60 		return GraphyicBulletsTypeMgr::GetInstance();
61 	}else if ( aType == eNBOType::MIXBULLETS )
62 	{
63 		return MixBulletsTypeMgr::GetInstance();
64 	}else if ( aType == eNBOType::NUMBERING )
65 	{
66 		return NumberingTypeMgr::GetInstance();
67 	}else if ( aType == eNBOType::OUTLINE )
68 	{
69 		return OutlineTypeMgr::GetInstance();
70 	}
71 }
72 }}
73 
74