1*859212d1SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*859212d1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*859212d1SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*859212d1SAndrew Rist * distributed with this work for additional information 6*859212d1SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*859212d1SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*859212d1SAndrew Rist * "License"); you may not use this file except in compliance 9*859212d1SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*859212d1SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*859212d1SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*859212d1SAndrew Rist * software distributed under the License is distributed on an 15*859212d1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*859212d1SAndrew Rist * KIND, either express or implied. See the License for the 17*859212d1SAndrew Rist * specific language governing permissions and limitations 18*859212d1SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*859212d1SAndrew Rist *************************************************************/ 21*859212d1SAndrew Rist 22*859212d1SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include "ids.hrc" 25cdf0e10cSrcweir #include "lockfailed.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <vcl/button.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir LockFailedQueryBox::LockFailedQueryBox( Window* pParent, ResMgr* pResMgr ) : 30cdf0e10cSrcweir MessBox(pParent, 0, 31cdf0e10cSrcweir String( ResId( STR_LOCKFAILED_TITLE, *pResMgr ) ), 32cdf0e10cSrcweir String::EmptyString() ) 33cdf0e10cSrcweir { 34cdf0e10cSrcweir SetImage( ErrorBox::GetStandardImage() ); 35cdf0e10cSrcweir 36cdf0e10cSrcweir AddButton( BUTTON_OK, RET_OK, BUTTONDIALOG_OKBUTTON ); 37cdf0e10cSrcweir AddButton( BUTTON_CANCEL, RET_CANCEL, BUTTONDIALOG_CANCELBUTTON ); 38cdf0e10cSrcweir 39cdf0e10cSrcweir SetMessText( String( ResId( STR_LOCKFAILED_MSG, *pResMgr ) ) ); 40cdf0e10cSrcweir SetCheckBoxText( String( ResId( STR_LOCKFAILED_DONTSHOWAGAIN, *pResMgr ) ) ); 41cdf0e10cSrcweir } 42cdf0e10cSrcweir 43cdf0e10cSrcweir LockFailedQueryBox::~LockFailedQueryBox() 44cdf0e10cSrcweir { 45cdf0e10cSrcweir } 46cdf0e10cSrcweir 47