1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dsply_cl.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include "dsply_cl.hxx"
35 // NOT FULLY DEFINED SERVICES
36 #include <ary/cpp/c_class.hxx>
37 #include <ary/cpp/c_gate.hxx>
38 #include "dsply_da.hxx"
39 #include "dsply_op.hxx"
41 #include "opageenv.hxx"
42 #include "pagemake.hxx"
47 ClassDisplayer::ClassDisplayer( OuputPage_Environment
& io_rEnv
)
52 ClassDisplayer::~ClassDisplayer()
57 ClassDisplayer::DisplayFiles_InClass( const ary::cpp::Class
& i_rData
,
58 PageDisplay
& io_rPageMaker
)
61 ClassDisplayer
aClassDisplayer( Env() );
62 DisplaySlot( aClassDisplayer
, i_rData
, ary::cpp::Class::SLOT_NestedClasses
);
65 DisplaySlot( io_rPageMaker
, i_rData
, ary::cpp::Class::SLOT_Enums
);
68 DisplaySlot( io_rPageMaker
, i_rData
, ary::cpp::Class::SLOT_Typedefs
);
71 OperationsDisplay
aOperationsDisplayer( Env() );
73 aOperationsDisplayer
.PrepareForStdMembers();
74 DisplaySlot( aOperationsDisplayer
, i_rData
, ary::cpp::Class::SLOT_Operations
);
76 aOperationsDisplayer
.PrepareForStaticMembers();
77 DisplaySlot( aOperationsDisplayer
, i_rData
, ary::cpp::Class::SLOT_StaticOperations
);
79 aOperationsDisplayer
.Create_Files();
82 DataDisplay
aDataDisplayer( Env() );
84 aDataDisplayer
.PrepareForStdMembers();
85 DisplaySlot( aDataDisplayer
, i_rData
, ary::cpp::Class::SLOT_Data
);
87 aDataDisplayer
.PrepareForStaticMembers();
88 DisplaySlot( aDataDisplayer
, i_rData
, ary::cpp::Class::SLOT_StaticData
);
90 aDataDisplayer
.Create_Files();
94 ClassDisplayer::do_Process( const ary::cpp::Class
& i_rData
)
96 if ( Ce_IsInternal(i_rData
) )
99 PageDisplay
aPageMaker( Env() );
100 aPageMaker
.Process(i_rData
);
102 Env().MoveDir_Down2( i_rData
);
103 DisplayFiles_InClass( i_rData
, aPageMaker
);
107 const ary::cpp::Gate
*
108 ClassDisplayer::inq_Get_ReFinder() const
110 return & pEnv
->Gate();