Bump for 3.6-28
[LibreOffice.git] / autodoc / source / ary / idl / i_reposypart.cxx
blob62bb4fee6cf787d34056ed9cf73961d9c93fc37f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include <precomp.h>
30 #include "i_reposypart.hxx"
33 // NOT FULLY DEFINED SERVICES
34 #include <ary/idl/i_namelookup.hxx>
35 #include <idl_internalgate.hxx>
36 #include "ia_ce.hxx"
37 #include "ia_type.hxx"
38 #include "i2s_calculator.hxx"
39 #include "is_ce.hxx"
40 #include "is_type.hxx"
45 namespace ary
47 namespace idl
51 DYN InternalGate &
52 InternalGate::Create_Partition_(RepositoryCenter & i_center)
54 return *new RepositoryPartition(i_center);
59 RepositoryPartition::RepositoryPartition( RepositoryCenter & i_repository )
60 : pCenter(&i_repository),
61 pCes(0),
62 pTypes(0),
63 pNamesDictionary(new NameLookup)
65 pTypes = new TypeAdmin;
66 pCes = new CeAdmin(*pNamesDictionary, *pTypes);
69 RepositoryPartition::~RepositoryPartition()
73 void
74 RepositoryPartition::Calculate_AllSecondaryInformation(
75 const String & i_devman_reffilepath )
77 // KORR_FUTURE
78 // Forward the options from here.
80 SecondariesCalculator
81 secalc(*pCes,*pTypes);
83 secalc.CheckAllInterfaceBases();
84 secalc.Connect_Types2Ces();
85 secalc.Gather_CrossReferences();
87 if ( NOT i_devman_reffilepath.empty() )
89 secalc.Make_Links2DeveloperManual(i_devman_reffilepath);
93 const CePilot &
94 RepositoryPartition::Ces() const
96 return *pCes;
99 const TypePilot &
100 RepositoryPartition::Types() const
102 return *pTypes;
105 CePilot &
106 RepositoryPartition::Ces()
108 return *pCes;
111 TypePilot &
112 RepositoryPartition::Types()
114 return *pTypes;
119 } // namespace idl
120 } // namespace ary
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */