1 #ifndef _CUI_TBXFORM_HXX 2 #define _CUI_TBXFORM_HXX 3 4 #include <sfx2/tbxctrl.hxx> 5 #include <vcl/field.hxx> 6 #include <vcl/dialog.hxx> 7 8 #ifndef _SV_BUTTON_HXX //autogen 9 #include <vcl/button.hxx> 10 #endif 11 12 //======================================================================== 13 14 class FmInputRecordNoDialog : public ModalDialog 15 { 16 public: 17 FixedText m_aLabel; 18 NumericField m_aRecordNo; 19 OKButton m_aOk; 20 CancelButton m_aCancel; 21 22 public: 23 FmInputRecordNoDialog(Window * pParent); 24 25 void SetValue(long dNew) { m_aRecordNo.SetValue(dNew); } 26 long GetValue() const { return static_cast<long>(m_aRecordNo.GetValue()); } 27 }; 28 29 #endif 30