xref: /trunk/main/sfx2/inc/sfx2/dinfedt.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
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 _SFX_DINFEDT_HXX
24 #define _SFX_DINFEDT_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 #ifndef _SV_BUTTON_HXX
29 #include <vcl/button.hxx>
30 #endif
31 #include <vcl/dialog.hxx>
32 #include <vcl/edit.hxx>
33 #include <vcl/fixed.hxx>
34 
35 // class InfoEdit_Impl ---------------------------------------------------
36 
37 class InfoEdit_Impl : public Edit
38 {
39 public:
InfoEdit_Impl(Window * pParent,const ResId & rResId)40     InfoEdit_Impl( Window* pParent, const ResId& rResId ) :
41         Edit( pParent, rResId ) {}
42 
43     virtual void    KeyInput( const KeyEvent& rKEvent );
44 };
45 
46 // class SfxDocInfoEditDlg -----------------------------------------------
47 
48 class SfxDocInfoEditDlg : public ModalDialog
49 {
50 private:
51     FixedLine       aInfoFL;
52     InfoEdit_Impl   aInfo1ED;
53     InfoEdit_Impl   aInfo2ED;
54     InfoEdit_Impl   aInfo3ED;
55     InfoEdit_Impl   aInfo4ED;
56     OKButton        aOkBT;
57     CancelButton    aCancelBT;
58     HelpButton      aHelpBtn;
59 
60 public:
61     SfxDocInfoEditDlg( Window* pParent );
62 
SetText1(const String & rStr)63     void    SetText1( const String &rStr) { aInfo1ED.SetText( rStr ); }
SetText2(const String & rStr)64     void    SetText2( const String &rStr) { aInfo2ED.SetText( rStr ); }
SetText3(const String & rStr)65     void    SetText3( const String &rStr) { aInfo3ED.SetText( rStr ); }
SetText4(const String & rStr)66     void    SetText4( const String &rStr) { aInfo4ED.SetText( rStr ); }
67 
GetText1() const68     String  GetText1() const { return aInfo1ED.GetText(); }
GetText2() const69     String  GetText2() const { return aInfo2ED.GetText(); }
GetText3() const70     String  GetText3() const { return aInfo3ED.GetText(); }
GetText4() const71     String  GetText4() const { return aInfo4ED.GetText(); }
72 };
73 
74 #endif
75