1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #include <precomp.h>
29 #include <ary/ary_disp.hxx>
30 
31 
32 // NOT FULLY DECLARED SERVICES
33 #include <ary/cpp/c_ce.hxx>
34 #include <ary/cpp/c_gate.hxx>
35 #include <ary/cpp/cp_ce.hxx>
36 
37 
38 
39 namespace ary
40 {
41 
42 void
43 Display::DisplaySlot_Rid( ary::Rid i_nId )
44 {
45     const cpp::Gate *
46         pGate = Get_ReFinder();
47     if (pGate != 0)
48     {
49      	const  ary::cpp::CodeEntity *
50      	    pRE = pGate->Ces().Search_Ce( cpp::Ce_id(i_nId) );
51         if (pRE != 0)
52         {
53          	pRE->Accept( *this );
54             return;
55         }
56     }
57 
58     do_DisplaySlot_Rid( i_nId );
59 }
60 
61 
62 void
63 Display::DisplaySlot_LocalCe( ary::cpp::Ce_id   i_nId,
64 							  const String  &	i_sName )
65 {
66     const cpp::Gate *
67         pGate = Get_ReFinder();
68     if (pGate != 0)
69     {
70      	const ary::cpp::CodeEntity *
71      	    pRE = pGate->Ces().Search_Ce(i_nId);
72         if (pRE != 0)
73         {
74          	pRE->Accept( *this );
75             return;
76         }
77     }
78 
79     do_DisplaySlot_LocalCe( i_nId, i_sName );
80 }
81 
82 
83 
84 // Dummy implementations for class Display
85 
86 void
87 Display::do_StartSlot()
88 {
89 }
90 
91 void
92 Display::do_FinishSlot()
93 {
94 }
95 
96 void
97 Display::do_DisplaySlot_Rid( ary::Rid )
98 {
99 }
100 
101 void
102 Display::do_DisplaySlot_LocalCe( ary::cpp::Ce_id    ,
103 							     const String  &	)
104 {
105 }
106 
107 
108 }   // namespace ary
109