Mark some Calc slots as inactive in readonly mode
[LibreOffice.git] / vcl / inc / IPrioritable.hxx
blob0b8dec9ec09552259e1d1976a7bbaf9d2a5f055c
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 #pragma once
12 #include <vcl/dllapi.h>
14 #define VCL_PRIORITY_DEFAULT -1
16 namespace vcl
19 class VCL_DLLPUBLIC SAL_LOPLUGIN_ANNOTATE("crosscast") IPrioritable
21 protected:
22 IPrioritable() : m_nPriority(VCL_PRIORITY_DEFAULT)
26 public:
27 virtual ~IPrioritable()
31 int GetPriority() const
33 return m_nPriority;
36 void SetPriority(int nPriority)
38 m_nPriority = nPriority;
41 virtual void HideContent() = 0;
42 virtual void ShowContent() = 0;
43 virtual bool IsHidden() = 0;
45 private:
46 int m_nPriority;
49 } // namespace vcl
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */