mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
11474f6b89
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33222 a592a061-630c-0410-9148-cb99ea01b6c8
58 lines
1015 B
C++
58 lines
1015 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file WorkAreaManager.cpp
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "WorkAreaManager.h"
|
|
|
|
#include "WorkArea.h"
|
|
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
void WorkAreaManager::add(WorkArea * wa)
|
|
{
|
|
work_areas_.push_back(wa);
|
|
}
|
|
|
|
|
|
void WorkAreaManager::remove(WorkArea * wa)
|
|
{
|
|
work_areas_.remove(wa);
|
|
}
|
|
|
|
|
|
void WorkAreaManager::redrawAll(bool update_metrics)
|
|
{
|
|
for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
|
|
(*it)->redraw(update_metrics);
|
|
}
|
|
|
|
|
|
void WorkAreaManager::closeAll()
|
|
{
|
|
while (!work_areas_.empty())
|
|
// WorkArea is de-registering itself.
|
|
(*work_areas_.begin())->close();
|
|
}
|
|
|
|
|
|
void WorkAreaManager::updateTitles()
|
|
{
|
|
for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
|
|
(*it)->updateWindowTitle();
|
|
}
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|