bump product version to 4.1.6.2
[LibreOffice.git] / sfx2 / source / sidebar / Sidebar.cxx
blobaf3797a2b49a8c2606f0d6d1c2e540dc124cff5e
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 #include "precompiled_sfx2.hxx"
20 #include "Sidebar.hxx"
21 #include "ResourceManager.hxx"
23 using namespace css;
24 using namespace cssu;
26 namespace sfx2 { namespace sidebar {
28 Sidebar::Sidebar(
29 Window& rParentWindow,
30 const Reference<frame::XFrame>& rxDocumentFrame)
31 : Window(&rParentWindow, WB_DIALOGCONTROL)
33 ContentPanelManager::Instance();
39 Sidebar::~Sidebar (void)
46 void Sidebar::Resize (void)
48 Window::Resize();
49 // m_pImpl->OnResize();
55 void Sidebar::GetFocus (void)
57 Window::GetFocus();
58 // m_pImpl->OnGetFocus();
64 void Sidebar::DataChanged (const DataChangedEvent& rDataChangedEvent)
66 if (rDataChangedEvent.GetType() == DATACHANGED_SETTINGS
67 && (rDataChangedEvent.GetFlags() & SETTINGS_STYLE)!= 0)
69 Invalidate();
71 else
72 Window::DataChanged(rDataChangedEvent);
77 } } // end of namespace sfx2::sidebar