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 ************************************************************************/
30 #include "hi_linkhelper.hxx"
33 // NOT FULLY DEFINED SERVICES
34 #include <ary/idl/i_module.hxx>
39 const ary::idl::Module
*
40 LinkHelper::Search_CurModule() const
42 return Search_Module( rEnv
.CurPosition().RelatedNode() );
45 const ary::idl::Module
*
46 LinkHelper::Search_Module( output::Node
& i_node
) const
48 static StringVector aNames_
;
50 output::Node::relative_id
51 nId
= i_node
.RelatedNameRoom();
54 csv::erase_container(aNames_
);
55 i_node
.Get_Chain(aNames_
);
56 const ary::idl::Module
* pModule
=
57 rEnv
.Data().Search_Module(aNames_
);
60 nId
= static_cast<output::Node::relative_id
>(pModule
->Id());
61 rEnv
.CurPosition().RelatedNode().Set_RelatedNameRoom(nId
);
64 return & rEnv
.Data().Find_Module( ary::idl::Ce_id(nId
) );
69 const String
C_sXrefsSuffix("-xref");
73 LinkHelper::OutPosition
74 LinkHelper::PositionOf_CurXRefs( const String
& i_ceName
) const
77 return OutPosition( rEnv
.CurPosition(),
85 LinkHelper::XrefsSuffix() const
87 return C_sXrefsSuffix
;
92 nameChainLinker( SAL_UNUSED_PARAMETER
const char * )
95 sModuleFileName_( output::ModuleFileName() );
96 return sModuleFileName_
;
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */