tdf#164420 Fix unselected Check/Radio buttons not following themes in GTK
[LibreOffice.git] / sd / source / ui / inc / GraphicViewShell.hxx
blobd730c2dd98cf79d98ed7852938eb961b6a4e892d
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include "DrawViewShell.hxx"
24 namespace vcl
26 class Window;
29 namespace sd
31 /** View shell of the Draw application.
33 <p>This class is an example of how not to do it: specialization by
34 inheritance. A graphic view shell is similar to a draw view shell
35 but lacks some of its features. Thus is should be at most a base
36 class of DrawViewShell. There even is special case code in
37 ViewShell that turns off some of the features for GraphicViewShell
38 instances.</p>
40 class SAL_DLLPUBLIC_RTTI GraphicViewShell final : public DrawViewShell
42 public:
43 SFX_DECL_VIEWFACTORY(GraphicViewShell);
44 SFX_DECL_INTERFACE(SD_IF_SDGRAPHICVIEWSHELL)
46 /** Create a new view shell for the Draw application.
47 @param rViewShellBase
48 The new object will be stacked on this view shell base.
49 @param pFrameView
50 The frame view that makes it possible to pass information from
51 one view shell to the next.
53 GraphicViewShell(ViewShellBase& rViewShellBase, vcl::Window* pParentWindow,
54 FrameView* pFrameView);
56 virtual ~GraphicViewShell() override;
58 /** Override this method in order to have the layer mode always active.
60 virtual void ChangeEditMode(EditMode eMode, bool bIsLayerModeActive) override;
62 private:
63 /// SfxInterface initializer.
64 static void InitInterface_Impl();
66 void ConstructGraphicViewShell();
67 virtual void ArrangeGUIElements() override;
70 } // end of namespace sd
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */