3 * \file WorkAreaManager.cpp
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
16 #include "WorkAreaManager.h"
26 void WorkAreaManager::add(WorkArea * wa)
28 work_areas_.push_back(wa);
32 void WorkAreaManager::remove(WorkArea * wa)
34 work_areas_.remove(wa);
38 void WorkAreaManager::redrawAll()
40 for (list<WorkArea *>::iterator it = work_areas_.begin();
41 it != work_areas_.end(); ) {
48 void WorkAreaManager::closeAll()
50 while (!work_areas_.empty())
51 // WorkArea is de-registering itself.
52 (*work_areas_.begin())->close();
55 } // namespace frontend