update dev300-m58
[ooovba.git] / svx / source / cui / hldocntp.hxx
blobe005e5819289cabe6179a36ef05d6a7aa327987d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: hldocntp.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
31 #define _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
33 #include "hltpbase.hxx"
35 /*************************************************************************
37 |* Tabpage : Hyperlink - New Document
39 \************************************************************************/
41 class SvxHyperlinkNewDocTp : public SvxHyperlinkTabPageBase
43 private:
44 FixedLine maGrpNewDoc;
45 RadioButton maRbtEditNow;
46 RadioButton maRbtEditLater;
47 FixedText maFtPath;
48 SvxHyperURLBox maCbbPath;
49 ImageButton maBtCreate;
50 FixedText maFtDocTypes;
51 ListBox maLbDocTypes;
53 sal_Bool ImplGetURLObject( const String& rPath, const String& rBase, INetURLObject& aURLObject ) const;
54 void FillDocumentList ();
56 DECL_LINK (ClickNewHdl_Impl , void * ); // Button : New
58 Image GetImage( USHORT nId );
59 void ReadURLFile( const String& rFile, String& rTitle, String& rURL, sal_Int32& rIconId, BOOL* pShowAsFolder);//, String* pFrame, String* pOpenAs, String* pDefTempl, String* pDefURL );
60 //String ReadURL_Impl( Config& rURLFile, const DirEntry& rFile );
62 protected:
63 void FillDlgFields ( String& aStrURL );
64 void GetCurentItemData ( String& aStrURL, String& aStrName,
65 String& aStrIntName, String& aStrFrame,
66 SvxLinkInsertMode& eMode );
68 public:
69 SvxHyperlinkNewDocTp ( Window *pParent, const SfxItemSet& rItemSet);
70 ~SvxHyperlinkNewDocTp ();
72 static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
74 virtual BOOL AskApply ();
75 virtual void DoApply ();
77 virtual void SetInitFocus();
81 #endif // _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX