122de8995SAndre Fischer /************************************************************** 222de8995SAndre Fischer * 322de8995SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 422de8995SAndre Fischer * or more contributor license agreements. See the NOTICE file 522de8995SAndre Fischer * distributed with this work for additional information 622de8995SAndre Fischer * regarding copyright ownership. The ASF licenses this file 722de8995SAndre Fischer * to you under the Apache License, Version 2.0 (the 822de8995SAndre Fischer * "License"); you may not use this file except in compliance 922de8995SAndre Fischer * with the License. You may obtain a copy of the License at 1022de8995SAndre Fischer * 1122de8995SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 1222de8995SAndre Fischer * 1322de8995SAndre Fischer * Unless required by applicable law or agreed to in writing, 1422de8995SAndre Fischer * software distributed under the License is distributed on an 1522de8995SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1622de8995SAndre Fischer * KIND, either express or implied. See the License for the 1722de8995SAndre Fischer * specific language governing permissions and limitations 1822de8995SAndre Fischer * under the License. 1922de8995SAndre Fischer * 2022de8995SAndre Fischer *************************************************************/ 2122de8995SAndre Fischer 2222de8995SAndre Fischer #include "precompiled_sfx2.hxx" 2322de8995SAndre Fischer 2422de8995SAndre Fischer #include "Sidebar.hxx" 25*ff12d537SAndre Fischer #include "ResourceManager.hxx" 2622de8995SAndre Fischer 2722de8995SAndre Fischer using namespace css; 2822de8995SAndre Fischer using namespace cssu; 2922de8995SAndre Fischer 30*ff12d537SAndre Fischer namespace sfx2 { namespace sidebar { 3122de8995SAndre Fischer 3222de8995SAndre Fischer Sidebar::Sidebar( 3322de8995SAndre Fischer Window& rParentWindow, 3422de8995SAndre Fischer const Reference<frame::XFrame>& rxDocumentFrame) 3522de8995SAndre Fischer : Window(&rParentWindow, WB_DIALOGCONTROL) 3622de8995SAndre Fischer { 3722de8995SAndre Fischer ContentPanelManager::Instance(); 3822de8995SAndre Fischer } 3922de8995SAndre Fischer 4022de8995SAndre Fischer 4122de8995SAndre Fischer 4222de8995SAndre Fischer 4322de8995SAndre Fischer Sidebar::~Sidebar (void) 4422de8995SAndre Fischer { 4522de8995SAndre Fischer } 4622de8995SAndre Fischer 4722de8995SAndre Fischer 4822de8995SAndre Fischer 4922de8995SAndre Fischer 5022de8995SAndre Fischer void Sidebar::Resize (void) 5122de8995SAndre Fischer { 5222de8995SAndre Fischer Window::Resize(); 5322de8995SAndre Fischer // m_pImpl->OnResize(); 5422de8995SAndre Fischer } 5522de8995SAndre Fischer 5622de8995SAndre Fischer 5722de8995SAndre Fischer 5822de8995SAndre Fischer 5922de8995SAndre Fischer void Sidebar::GetFocus (void) 6022de8995SAndre Fischer { 6122de8995SAndre Fischer Window::GetFocus(); 6222de8995SAndre Fischer // m_pImpl->OnGetFocus(); 6322de8995SAndre Fischer } 6422de8995SAndre Fischer 6522de8995SAndre Fischer 66*ff12d537SAndre Fischer 67*ff12d537SAndre Fischer 68*ff12d537SAndre Fischer void Sidebar::DataChanged (const DataChangedEvent& rDataChangedEvent) 69*ff12d537SAndre Fischer { 70*ff12d537SAndre Fischer if (rDataChangedEvent.GetType() == DATACHANGED_SETTINGS 71*ff12d537SAndre Fischer && (rDataChangedEvent.GetFlags() & SETTINGS_STYLE)!= 0) 72*ff12d537SAndre Fischer { 73*ff12d537SAndre Fischer Invalidate(); 74*ff12d537SAndre Fischer } 75*ff12d537SAndre Fischer else 76*ff12d537SAndre Fischer Window::DataChanged(rDataChangedEvent); 77*ff12d537SAndre Fischer } 78*ff12d537SAndre Fischer 79*ff12d537SAndre Fischer 80*ff12d537SAndre Fischer 81*ff12d537SAndre Fischer } } // end of namespace sfx2::sidebar 82