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.
14 #include "WorkAreaManager.h"
22 void WorkAreaManager::add(WorkArea * wa)
24 work_areas_.push_back(wa);
28 void WorkAreaManager::remove(WorkArea * wa)
30 work_areas_.remove(wa);
34 void WorkAreaManager::redrawAll(bool update_metrics)
36 for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
37 (*it)->redraw(update_metrics);
41 void WorkAreaManager::closeAll()
43 while (!work_areas_.empty())
44 // WorkArea is de-registering itself.
45 (*work_areas_.begin())->close();
49 void WorkAreaManager::updateTitles()
51 for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
52 (*it)->updateWindowTitle();
55 } // namespace frontend