calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / vcl / inc / NotebookbarPopup.hxx
blob424a96ca4426a3efffffad7e3f22462d4ad12ec2
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 #ifndef INCLUDED_SFX2_NOTEBOOKBAR_NOTEBOOKBARPOPUP_HXX
21 #define INCLUDED_SFX2_NOTEBOOKBAR_NOTEBOOKBARPOPUP_HXX
23 #include <vcl/layout.hxx>
24 #include <vcl/toolkit/floatwin.hxx>
27 * Popup - shows hidden content, controls are moved to this popup
28 * and after close moved to the original parent
31 class NotebookbarPopup final : public FloatingWindow
33 private:
34 VclPtr<VclHBox> m_pBox;
35 ScopedVclPtr<VclHBox> m_pParent;
37 public:
38 explicit NotebookbarPopup(const VclPtr<VclHBox>& pParent);
40 virtual ~NotebookbarPopup() override;
42 VclHBox* getBox();
44 virtual void PopupModeEnd() override;
46 void hideSeparators(bool bHide);
48 void dispose() override;
50 void ApplyBackground(vcl::Window* pWindow);
52 void RemoveBackground(vcl::Window* pWindow);
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */