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: hlmarkwn.hxx,v $
10 * $Revision: 1.7.216.1 $
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 _SVX_BKWND_HYPERLINK_HXX
32 #define _SVX_BKWND_HYPERLINK_HXX
34 #include <com/sun/star/container/XNameAccess.hpp>
35 #include <vcl/dialog.hxx>
36 #ifndef _SV_BUTTON_HXX
37 #include <vcl/button.hxx>
39 #include <svtools/svtreebx.hxx>
41 #include "hlmarkwn_def.hxx" //ADD CHINA001
42 class SvxHyperlinkTabPageBase
;
44 //########################################################################
48 //########################################################################
50 class SvxHlinkDlgMarkWnd
;
52 class SvxHlmarkTreeLBox
: public SvTreeListBox
55 SvxHlinkDlgMarkWnd
* mpParentWnd
;
58 SvxHlmarkTreeLBox( Window
* pParent
, const ResId
& rResId
);
60 virtual void Paint( const Rectangle
& rRect
);
63 //########################################################################
67 //########################################################################
69 class SvxHlinkDlgMarkWnd
: public ModalDialog
//FloatingWindow
72 friend class SvxHlmarkTreeLBox
;
76 //SvTreeListBox maLbTree;
77 SvxHlmarkTreeLBox maLbTree
;
82 SvxHyperlinkTabPageBase
* mpParent
;
89 BOOL
RefreshFromDoc( ::rtl::OUString aURL
);
91 SvLBoxEntry
* FindEntry ( String aStrName
);
93 int FillTree( ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> xLinks
, SvLBoxEntry
* pParentEntry
=NULL
);
97 DECL_LINK (ClickApplyHdl_Impl
, void * );
98 DECL_LINK (ClickCloseHdl_Impl
, void * );
101 SvxHlinkDlgMarkWnd (SvxHyperlinkTabPageBase
*pParent
);
102 ~SvxHlinkDlgMarkWnd();
104 BOOL
MoveTo ( Point aNewPos
);
105 void RefreshTree ( String aStrURL
);
106 void SelectEntry ( String aStrMark
);
108 BOOL
ConnectToDialog( BOOL bDoit
= TRUE
);
110 USHORT
SetError( USHORT nError
);
114 #endif // _SVX_BKWND_HYPERLINK_HXX