1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
20 #define _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
22 #include "hltpbase.hxx"
24 /*************************************************************************
26 |* Tabpage : Hyperlink - New Document
28 \************************************************************************/
30 class SvxHyperlinkNewDocTp
: public SvxHyperlinkTabPageBase
33 FixedLine maGrpNewDoc
;
34 RadioButton maRbtEditNow
;
35 RadioButton maRbtEditLater
;
37 SvxHyperURLBox maCbbPath
;
38 ImageButton maBtCreate
;
39 FixedText maFtDocTypes
;
42 sal_Bool
ImplGetURLObject( const String
& rPath
, const String
& rBase
, INetURLObject
& aURLObject
) const;
43 void FillDocumentList ();
45 DECL_LINK (ClickNewHdl_Impl
, void * );
47 Image
GetImage( sal_uInt16 nId
);
50 void FillDlgFields ( String
& aStrURL
);
51 void GetCurentItemData ( String
& aStrURL
, String
& aStrName
,
52 String
& aStrIntName
, String
& aStrFrame
,
53 SvxLinkInsertMode
& eMode
);
56 SvxHyperlinkNewDocTp ( Window
*pParent
, const SfxItemSet
& rItemSet
);
57 ~SvxHyperlinkNewDocTp ();
59 static IconChoicePage
* Create( Window
* pWindow
, const SfxItemSet
& rItemSet
);
61 virtual sal_Bool
AskApply ();
62 virtual void DoApply ();
64 virtual void SetInitFocus();
68 #endif // _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */