mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
f7ba7c8e9f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3806 a592a061-630c-0410-9148-cb99ea01b6c8
65 lines
974 B
C
65 lines
974 B
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2001 The LyX Team.
|
|
*
|
|
* ======================================================
|
|
*
|
|
* \file ControlButtons.C
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "ControlButtons.h"
|
|
#include "ButtonControllerBase.h"
|
|
#include "ViewBase.h"
|
|
#include "lyxrc.h"
|
|
|
|
ControlButtons::ControlButtons()
|
|
: emergency_exit_(false), is_closing_(false)
|
|
{}
|
|
|
|
|
|
void ControlButtons::ApplyButton()
|
|
{
|
|
apply();
|
|
bc().apply();
|
|
}
|
|
|
|
|
|
void ControlButtons::OKButton()
|
|
{
|
|
is_closing_ = true;
|
|
apply();
|
|
is_closing_ = false;
|
|
hide();
|
|
bc().ok();
|
|
}
|
|
|
|
|
|
void ControlButtons::CancelButton()
|
|
{
|
|
hide();
|
|
bc().cancel();
|
|
}
|
|
|
|
|
|
void ControlButtons::RestoreButton()
|
|
{
|
|
update();
|
|
bc().restore();
|
|
}
|
|
|
|
|
|
bool ControlButtons::IconifyWithMain() const
|
|
{
|
|
return lyxrc.dialogs_iconify_with_main;
|
|
}
|