1*b16fc349SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*b16fc349SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*b16fc349SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*b16fc349SAndrew Rist * distributed with this work for additional information 6*b16fc349SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*b16fc349SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*b16fc349SAndrew Rist * "License"); you may not use this file except in compliance 9*b16fc349SAndrew Rist * with the License. You may obtain a copy of the License at 10*b16fc349SAndrew Rist * 11*b16fc349SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*b16fc349SAndrew Rist * 13*b16fc349SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*b16fc349SAndrew Rist * software distributed under the License is distributed on an 15*b16fc349SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b16fc349SAndrew Rist * KIND, either express or implied. See the License for the 17*b16fc349SAndrew Rist * specific language governing permissions and limitations 18*b16fc349SAndrew Rist * under the License. 19*b16fc349SAndrew Rist * 20*b16fc349SAndrew Rist *************************************************************/ 21*b16fc349SAndrew Rist 22*b16fc349SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef UUI_MASTERPASSCRTDLG_HXX 25cdf0e10cSrcweir #define UUI_MASTERPASSCRTDLG_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _COM_SUN_STAR_TASK_PASSWORDREQUESTMODE_HPP 28cdf0e10cSrcweir #include <com/sun/star/task/PasswordRequestMode.hpp> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir #include <svtools/stdctrl.hxx> 31cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX 32cdf0e10cSrcweir #include <vcl/button.hxx> 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir #include <vcl/dialog.hxx> 35cdf0e10cSrcweir #include <vcl/edit.hxx> 36cdf0e10cSrcweir #include <vcl/group.hxx> 37cdf0e10cSrcweir #include <vcl/fixed.hxx> 38cdf0e10cSrcweir 39cdf0e10cSrcweir //============================================================================ 40cdf0e10cSrcweir class MasterPasswordCreateDialog : public ModalDialog 41cdf0e10cSrcweir { 42cdf0e10cSrcweir private: 43cdf0e10cSrcweir FixedText aFTInfoText; 44cdf0e10cSrcweir FixedLine aFLInfoText; 45cdf0e10cSrcweir 46cdf0e10cSrcweir FixedText aFTMasterPasswordCrt; 47cdf0e10cSrcweir Edit aEDMasterPasswordCrt; 48cdf0e10cSrcweir FixedText aFTMasterPasswordRepeat; 49cdf0e10cSrcweir Edit aEDMasterPasswordRepeat; 50cdf0e10cSrcweir 51cdf0e10cSrcweir FixedText aFTCautionText; 52cdf0e10cSrcweir FixedLine aFLCautionText; 53cdf0e10cSrcweir 54cdf0e10cSrcweir FixedText aFTMasterPasswordWarning; 55cdf0e10cSrcweir FixedLine aFL; 56cdf0e10cSrcweir OKButton aOKBtn; 57cdf0e10cSrcweir CancelButton aCancelBtn; 58cdf0e10cSrcweir HelpButton aHelpBtn; 59cdf0e10cSrcweir 60cdf0e10cSrcweir 61cdf0e10cSrcweir DECL_LINK( OKHdl_Impl, OKButton * ); 62cdf0e10cSrcweir DECL_LINK( EditHdl_Impl, Edit * ); 63cdf0e10cSrcweir 64cdf0e10cSrcweir public: 65cdf0e10cSrcweir MasterPasswordCreateDialog( Window* pParent, ResMgr * pResMgr ); 66cdf0e10cSrcweir GetMasterPassword() const67cdf0e10cSrcweir String GetMasterPassword() const { return aEDMasterPasswordCrt.GetText(); } 68cdf0e10cSrcweir 69cdf0e10cSrcweir private: 70cdf0e10cSrcweir ResMgr* pResourceMgr; 71cdf0e10cSrcweir sal_uInt16 nMinLen; 72cdf0e10cSrcweir 73cdf0e10cSrcweir void CalculateTextHeight(); 74cdf0e10cSrcweir }; 75cdf0e10cSrcweir 76cdf0e10cSrcweir #endif // UUI_MASTERPASSCRTDLG_HXX 77