]> git.lyx.org Git - lyx.git/blob - src/frontends/WorkAreaManager.cpp
710dfa13e4b455b2e410628d197d1c7d96884916
[lyx.git] / src / frontends / WorkAreaManager.cpp
1 // -*- C++ -*-
2 /**
3  * \file WorkAreaManager.cpp
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14 #include "WorkArea.h"
15
16 #include "WorkAreaManager.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 void WorkAreaManager::registerWorkArea(WorkArea * wa)
22 {
23         work_areas_.push_back(wa);
24 }
25
26 void WorkAreaManager::changed()
27 {
28         for (size_t i = 0; i != work_areas_.size(); ++i)
29                 work_areas_[i]->redraw();
30 }
31
32 void WorkAreaManager::closing()
33 {
34         for (size_t i = 0; i != work_areas_.size(); ++i)
35                 work_areas_[i]->close();
36 }
37
38 } // namespace frontend
39 } // namespace lyx
40