A manager for output elements. More...
#include <IWORKOutputManager.h>
Public Member Functions | |
| IWORKOutputManager () | |
| ~IWORKOutputManager () | |
| void | push () |
| Push a new output element onto the stack. | |
| void | pop () |
| Pop a output element from the stack. | |
| IWORKOutputID_t | save () |
| Save the current output element. | |
| IWORKOutputElements & | get (IWORKOutputID_t id) |
Get output element with ID id. | |
| const IWORKOutputElements & | get (IWORKOutputID_t id) const |
Get output element with ID id. | |
| IWORKOutputElements & | getCurrent () |
| Get the current output element. | |
| const IWORKOutputElements & | getCurrent () const |
| Get the current output element. | |
Private Types | |
| typedef std::deque< IWORKOutputElements > | OutputList_t |
| typedef std::stack< IWORKOutputElements > | OutputStack_t |
Private Member Functions | |
| IWORKOutputManager (const IWORKOutputManager &) | |
| IWORKOutputManager & | operator= (const IWORKOutputManager &) |
Private Attributes | |
| OutputStack_t | m_active |
| OutputList_t | m_saved |
A manager for output elements.
It keeps a stack of currently opened output elements and a list of saved output elements.
There is always at least one output element on the stack.
|
private |
|
private |
|
private |
Referenced by get(), getCurrent(), IWORKOutputManager(), and operator=().
| libetonyek::IWORKOutputManager::IWORKOutputManager | ( | ) |
| libetonyek::IWORKOutputManager::~IWORKOutputManager | ( | ) |
| IWORKOutputElements & libetonyek::IWORKOutputManager::get | ( | IWORKOutputID_t | id | ) |
Get output element with ID id.
Referenced by get(), and libetonyek::PAGCollector::writePageGroupsObjects().
| const IWORKOutputElements & libetonyek::IWORKOutputManager::get | ( | IWORKOutputID_t | id | ) | const |
Get output element with ID id.
| IWORKOutputElements & libetonyek::IWORKOutputManager::getCurrent | ( | ) |
Get the current output element.
Referenced by libetonyek::KEYCollector::drawMedia(), libetonyek::NUMCollector::drawMedia(), libetonyek::PAGCollector::drawMedia(), libetonyek::PAGCollector::drawTable(), libetonyek::NUMCollector::endDocument(), libetonyek::NUMCollector::endWorkSpace(), and getCurrent().
| const IWORKOutputElements & libetonyek::IWORKOutputManager::getCurrent | ( | ) | const |
Get the current output element.
|
private |
| void libetonyek::IWORKOutputManager::pop | ( | ) |
Pop a output element from the stack.
Referenced by libetonyek::PAGCollector::closePageGroup(), libetonyek::KEYCollector::endLayer(), libetonyek::NUMCollector::endWorkSpace(), and ~IWORKOutputManager().
| void libetonyek::IWORKOutputManager::push | ( | ) |
Push a new output element onto the stack.
Referenced by IWORKOutputManager(), libetonyek::PAGCollector::openPageGroup(), libetonyek::KEYCollector::startLayer(), and libetonyek::NUMCollector::startWorkSpace().
| IWORKOutputID_t libetonyek::IWORKOutputManager::save | ( | ) |
Save the current output element.
It remains on the stack.
Referenced by libetonyek::PAGCollector::closePageGroup(), and libetonyek::KEYCollector::collectLayer().
|
private |
Referenced by getCurrent(), IWORKOutputManager(), pop(), push(), save(), and ~IWORKOutputManager().
|
private |
Referenced by get(), IWORKOutputManager(), and save().