make VectorOfOutDevStates a class and refactor this a little

This commit is contained in:
Caolán McNamara
2011-12-29 15:36:54 +00:00
parent 91894d52b6
commit 2669d048bc
3 changed files with 254 additions and 242 deletions

View File

@@ -69,7 +69,17 @@ namespace cppcanvas
// state stack of OutputDevice, to correctly handle
// push/pop actions
typedef ::std::vector< OutDevState > VectorOfOutDevStates;
class VectorOfOutDevStates
{
public:
OutDevState& getState();
const OutDevState& getState() const;
void pushState(sal_uInt16 nFlags);
void popState();
void clearStateStack();
private:
::std::vector< OutDevState > m_aStates;
};
// EMF+
// TODO: replace?