xref: /AOO41X/main/svx/source/sidebar/nbdtmgfact.cxx (revision 716654a10e4780bb561bb4ee2b7d785f00148e2b)
11ff378efSZheng Fan /**************************************************************
2766ce4d0SZheng Fan  *
31ff378efSZheng Fan  * Licensed to the Apache Software Foundation (ASF) under one
41ff378efSZheng Fan  * or more contributor license agreements.  See the NOTICE file
51ff378efSZheng Fan  * distributed with this work for additional information
61ff378efSZheng Fan  * regarding copyright ownership.  The ASF licenses this file
71ff378efSZheng Fan  * to you under the Apache License, Version 2.0 (the
81ff378efSZheng Fan  * "License"); you may not use this file except in compliance
91ff378efSZheng Fan  * with the License.  You may obtain a copy of the License at
10766ce4d0SZheng Fan  *
111ff378efSZheng Fan  *   http://www.apache.org/licenses/LICENSE-2.0
12766ce4d0SZheng Fan  *
131ff378efSZheng Fan  * Unless required by applicable law or agreed to in writing,
141ff378efSZheng Fan  * software distributed under the License is distributed on an
151ff378efSZheng Fan  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161ff378efSZheng Fan  * KIND, either express or implied.  See the License for the
171ff378efSZheng Fan  * specific language governing permissions and limitations
181ff378efSZheng Fan  * under the License.
19766ce4d0SZheng Fan  *
201ff378efSZheng Fan  *************************************************************/
21766ce4d0SZheng Fan 
22*3dd97e55Smseidel 
23*3dd97e55Smseidel 
24766ce4d0SZheng Fan #ifndef _NBDTMGFACT_HXX
25766ce4d0SZheng Fan #include <svx/nbdtmgfact.hxx>
26766ce4d0SZheng Fan #endif
27766ce4d0SZheng Fan namespace svx { namespace sidebar {
NBOutlineTypeMgrFact()28766ce4d0SZheng Fan NBOutlineTypeMgrFact::NBOutlineTypeMgrFact()
29766ce4d0SZheng Fan {
30766ce4d0SZheng Fan }
31766ce4d0SZheng Fan 
CreateInstance(const NBOType aType)32766ce4d0SZheng Fan NBOTypeMgrBase* NBOutlineTypeMgrFact::CreateInstance(const NBOType aType)
33766ce4d0SZheng Fan {
34766ce4d0SZheng Fan 	//NBOTypeMgrBase* pRet= 0;
35766ce4d0SZheng Fan 	if ( aType == eNBOType::BULLETS )
36766ce4d0SZheng Fan 	{
37766ce4d0SZheng Fan 		return BulletsTypeMgr::GetInstance();
38766ce4d0SZheng Fan 	}else if ( aType == eNBOType::GRAPHICBULLETS )
39766ce4d0SZheng Fan 	{
40*3dd97e55Smseidel 		return GraphicBulletsTypeMgr::GetInstance();
41766ce4d0SZheng Fan 	}else if ( aType == eNBOType::MIXBULLETS )
42766ce4d0SZheng Fan 	{
43766ce4d0SZheng Fan 		return MixBulletsTypeMgr::GetInstance();
44766ce4d0SZheng Fan 	}else if ( aType == eNBOType::NUMBERING )
45766ce4d0SZheng Fan 	{
46766ce4d0SZheng Fan 		return NumberingTypeMgr::GetInstance();
47766ce4d0SZheng Fan 	}else if ( aType == eNBOType::OUTLINE )
48766ce4d0SZheng Fan 	{
49766ce4d0SZheng Fan 		return OutlineTypeMgr::GetInstance();
50766ce4d0SZheng Fan 	}
51d51d93c2SPavel Janík 
52d51d93c2SPavel Janík 	return NULL;
53766ce4d0SZheng Fan }
54766ce4d0SZheng Fan }}
55766ce4d0SZheng Fan 
56*3dd97e55Smseidel /* vim: set noet sw=4 ts=4: */
57