2010-10-12 08:53:47 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2008-03-07 05:26:51 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 10:30:41 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
2008-04-10 10:30:41 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
2008-04-10 10:30:41 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
2008-04-10 10:30:41 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
2008-04-10 10:30:41 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
2008-04-10 10:30:41 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2008-03-07 05:26:51 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include "ids.hrc"
|
|
|
|
#include "openlocked.hxx"
|
|
|
|
|
|
|
|
OpenLockedQueryBox::OpenLockedQueryBox( Window* pParent, ResMgr* pResMgr, const String& aMessage ) :
|
|
|
|
MessBox(pParent, 0,
|
|
|
|
String( ResId( STR_OPENLOCKED_TITLE, *pResMgr ) ),
|
|
|
|
aMessage )
|
|
|
|
{
|
|
|
|
SetImage( QueryBox::GetStandardImage() );
|
|
|
|
|
|
|
|
AddButton( String( ResId( STR_OPENLOCKED_OPENREADONLY_BTN, *pResMgr ) ), RET_YES,
|
|
|
|
BUTTONDIALOG_DEFBUTTON | BUTTONDIALOG_OKBUTTON | BUTTONDIALOG_FOCUSBUTTON);
|
|
|
|
|
|
|
|
AddButton( String( ResId( STR_OPENLOCKED_OPENCOPY_BTN, *pResMgr ) ), RET_NO, 0);
|
|
|
|
|
|
|
|
AddButton( BUTTON_CANCEL, RET_CANCEL, BUTTONDIALOG_CANCELBUTTON );
|
|
|
|
SetButtonHelpText( RET_YES, String() );
|
|
|
|
SetButtonHelpText( RET_NO, String() );
|
2011-04-06 08:21:30 -05:00
|
|
|
|
|
|
|
#ifdef WNT
|
|
|
|
// bnc#656566
|
|
|
|
// Yes, it is silly to do this only for this dialog but not the
|
|
|
|
// other similar ones. But hey, it was about this dialog that the
|
|
|
|
// customer complained. You who read this and feel the itch, feel
|
|
|
|
// free to fix the problem in a better way.
|
|
|
|
EnableAlwaysOnTop( true );
|
|
|
|
#endif
|
2008-03-07 05:26:51 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
OpenLockedQueryBox::~OpenLockedQueryBox()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-12 08:53:47 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|