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 iterator it = work_areas_.begin();
37 iterator const en = work_areas_.end();
38 for (; it != en; ++it)
39 (*it)->redraw(update_metrics);
43 void WorkAreaManager::closeAll()
45 while (!work_areas_.empty())
46 // WorkArea is de-registering itself.
47 (*work_areas_.begin())->close();
51 void WorkAreaManager::updateTitles()
53 iterator it = work_areas_.begin();
54 iterator const en = work_areas_.end();
55 for (; it != en; ++it)
56 (*it)->updateWindowTitle();
59 } // namespace frontend