tdf#119030: Disable entries if open file read-only is unchecked
[LibreOffice.git] / vcl / inc / outdevstatestack.hxx
blob0d83f5978b18853b92bfa462337fffe41e197f62
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_VCL_OUTDEVSTATESTACK_HXX
11 #define INCLUDED_VCL_OUTDEVSTATESTACK_HXX
13 #include <vcl/outdevstate.hxx>
14 #include <memory>
15 #include <deque>
17 class OutDevStateStack
19 std::deque<std::unique_ptr<OutDevState>> maData;
21 public:
22 bool empty() const;
23 size_t size() const;
24 void push_back( OutDevState* p );
25 void pop_back();
26 OutDevState& back();
29 #endif
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */