Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 :
10 : #include <outdevstatestack.hxx>
11 :
12 1326362 : bool OutDevStateStack::empty() const
13 : {
14 1326362 : return maData.empty();
15 : }
16 :
17 0 : size_t OutDevStateStack::size() const
18 : {
19 0 : return maData.size();
20 : }
21 :
22 907009 : void OutDevStateStack::push_back( OutDevState* p )
23 : {
24 907009 : maData.push_back(p);
25 907009 : }
26 :
27 907009 : void OutDevStateStack::pop_back()
28 : {
29 907009 : maData.pop_back();
30 907009 : }
31 :
32 907009 : OutDevState& OutDevStateStack::back()
33 : {
34 907009 : return maData.back();
35 : }
36 :
37 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|