1*353d8f4dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*353d8f4dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*353d8f4dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*353d8f4dSAndrew Rist * distributed with this work for additional information 6*353d8f4dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*353d8f4dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*353d8f4dSAndrew Rist * "License"); you may not use this file except in compliance 9*353d8f4dSAndrew Rist * with the License. You may obtain a copy of the License at 10*353d8f4dSAndrew Rist * 11*353d8f4dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*353d8f4dSAndrew Rist * 13*353d8f4dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*353d8f4dSAndrew Rist * software distributed under the License is distributed on an 15*353d8f4dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*353d8f4dSAndrew Rist * KIND, either express or implied. See the License for the 17*353d8f4dSAndrew Rist * specific language governing permissions and limitations 18*353d8f4dSAndrew Rist * under the License. 19*353d8f4dSAndrew Rist * 20*353d8f4dSAndrew Rist *************************************************************/ 21*353d8f4dSAndrew Rist 22*353d8f4dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SFX_DINFEDT_HXX 24cdf0e10cSrcweir #define _SFX_DINFEDT_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir // include --------------------------------------------------------------- 27cdf0e10cSrcweir 28cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX 29cdf0e10cSrcweir #include <vcl/button.hxx> 30cdf0e10cSrcweir #endif 31cdf0e10cSrcweir #include <vcl/dialog.hxx> 32cdf0e10cSrcweir #include <vcl/edit.hxx> 33cdf0e10cSrcweir #include <vcl/fixed.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir // class InfoEdit_Impl --------------------------------------------------- 36cdf0e10cSrcweir 37cdf0e10cSrcweir class InfoEdit_Impl : public Edit 38cdf0e10cSrcweir { 39cdf0e10cSrcweir public: InfoEdit_Impl(Window * pParent,const ResId & rResId)40cdf0e10cSrcweir InfoEdit_Impl( Window* pParent, const ResId& rResId ) : 41cdf0e10cSrcweir Edit( pParent, rResId ) {} 42cdf0e10cSrcweir 43cdf0e10cSrcweir virtual void KeyInput( const KeyEvent& rKEvent ); 44cdf0e10cSrcweir }; 45cdf0e10cSrcweir 46cdf0e10cSrcweir // class SfxDocInfoEditDlg ----------------------------------------------- 47cdf0e10cSrcweir 48cdf0e10cSrcweir class SfxDocInfoEditDlg : public ModalDialog 49cdf0e10cSrcweir { 50cdf0e10cSrcweir private: 51cdf0e10cSrcweir FixedLine aInfoFL; 52cdf0e10cSrcweir InfoEdit_Impl aInfo1ED; 53cdf0e10cSrcweir InfoEdit_Impl aInfo2ED; 54cdf0e10cSrcweir InfoEdit_Impl aInfo3ED; 55cdf0e10cSrcweir InfoEdit_Impl aInfo4ED; 56cdf0e10cSrcweir OKButton aOkBT; 57cdf0e10cSrcweir CancelButton aCancelBT; 58cdf0e10cSrcweir HelpButton aHelpBtn; 59cdf0e10cSrcweir 60cdf0e10cSrcweir public: 61cdf0e10cSrcweir SfxDocInfoEditDlg( Window* pParent ); 62cdf0e10cSrcweir SetText1(const String & rStr)63cdf0e10cSrcweir void SetText1( const String &rStr) { aInfo1ED.SetText( rStr ); } SetText2(const String & rStr)64cdf0e10cSrcweir void SetText2( const String &rStr) { aInfo2ED.SetText( rStr ); } SetText3(const String & rStr)65cdf0e10cSrcweir void SetText3( const String &rStr) { aInfo3ED.SetText( rStr ); } SetText4(const String & rStr)66cdf0e10cSrcweir void SetText4( const String &rStr) { aInfo4ED.SetText( rStr ); } 67cdf0e10cSrcweir GetText1() const68cdf0e10cSrcweir String GetText1() const { return aInfo1ED.GetText(); } GetText2() const69cdf0e10cSrcweir String GetText2() const { return aInfo2ED.GetText(); } GetText3() const70cdf0e10cSrcweir String GetText3() const { return aInfo3ED.GetText(); } GetText4() const71cdf0e10cSrcweir String GetText4() const { return aInfo4ED.GetText(); } 72cdf0e10cSrcweir }; 73cdf0e10cSrcweir 74cdf0e10cSrcweir #endif 75cdf0e10cSrcweir 76