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: out_position.hxx,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 ************************************************************************/
31 #ifndef ADC_DISPLAY_OUT_POSITION_HXX
32 #define ADC_DISPLAY_OUT_POSITION_HXX
38 #include <toolkit/out_node.hxx>
55 const String
& i_file
= String::Null_() );
57 const Position
& i_directory
,
58 const String
& i_rDifferentFile
);
64 Position
& operator+=(
65 const String
& i_nodeName
);
66 Position
& operator-=(
70 bool IsValid() const { return pDirectory
->Depth() >= 0; }
71 const String
& Name() const { return pDirectory
->Name(); }
72 const String
& File() const { return sFile
; }
73 intt
Depth() const { return pDirectory
->Depth(); }
76 StringVector
& o_result
) const
77 { pDirectory
->Get_Chain(o_result
); }
79 const String
& i_localLabel
= String::Null_() ) const;
83 const Position
& i_destination
,
84 const String
& i_localLabel
= String::Null_() ) const;
87 const String
& i_localLabel
= String::Null_() ) const;
89 static char Delimiter() { return '/'; }
92 Node
& RelatedNode() const { return *pDirectory
; }
96 const String
& i_file
= String::Null_() );
98 const String
& i_file
);
107 /// @return No delimiter at start, with delimiter at end.
108 const char * get_UpLink(
115 Position::Set_File( const String
& i_file
)
118 } // namespace output