xref: /AOO41X/main/cui/source/inc/hldocntp.hxx (revision c4eee24dc018e70cce741d2c2ecfc43b06c69c41)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
24 #define _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
25 
26 #include "hltpbase.hxx"
27 
28 /*************************************************************************
29 |*
30 |* Tabpage : Hyperlink - New Document
31 |*
32 \************************************************************************/
33 
34 class SvxHyperlinkNewDocTp : public SvxHyperlinkTabPageBase
35 {
36 private:
37     FixedLine           maGrpNewDoc;
38     RadioButton         maRbtEditNow;
39     RadioButton         maRbtEditLater;
40     FixedText           maFtPath;
41     SvxHyperURLBox      maCbbPath;
42     ImageButton         maBtCreate;
43     FixedText           maFtDocTypes;
44     ListBox             maLbDocTypes;
45 
46     sal_Bool            ImplGetURLObject( const String& rPath, const String& rBase, INetURLObject& aURLObject ) const;
47     void                FillDocumentList ();
48 
49     DECL_LINK (ClickNewHdl_Impl          , void * );        // Button : New
50 
51     Image GetImage( sal_uInt16 nId );
52 
53 protected:
54     void FillDlgFields     ( String& aStrURL );
55     void GetCurentItemData ( String& aStrURL, String& aStrName,
56                              String& aStrIntName, String& aStrFrame,
57                              SvxLinkInsertMode& eMode );
58 
59 public:
60     SvxHyperlinkNewDocTp ( Window *pParent, const SfxItemSet& rItemSet);
61     ~SvxHyperlinkNewDocTp ();
62 
63     static  IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
64 
65     virtual sal_Bool        AskApply ();
66     virtual void        DoApply ();
67 
68     virtual void        SetInitFocus();
69 };
70 
71 
72 #endif // _SVX_TABPAGE_DOCNEW_HYPERLINK_HXX
73