17a32b0c8SAndre Fischer /**************************************************************
27a32b0c8SAndre Fischer *
37a32b0c8SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one
47a32b0c8SAndre Fischer * or more contributor license agreements. See the NOTICE file
57a32b0c8SAndre Fischer * distributed with this work for additional information
67a32b0c8SAndre Fischer * regarding copyright ownership. The ASF licenses this file
77a32b0c8SAndre Fischer * to you under the Apache License, Version 2.0 (the
87a32b0c8SAndre Fischer * "License"); you may not use this file except in compliance
97a32b0c8SAndre Fischer * with the License. You may obtain a copy of the License at
107a32b0c8SAndre Fischer *
117a32b0c8SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0
127a32b0c8SAndre Fischer *
137a32b0c8SAndre Fischer * Unless required by applicable law or agreed to in writing,
147a32b0c8SAndre Fischer * software distributed under the License is distributed on an
157a32b0c8SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167a32b0c8SAndre Fischer * KIND, either express or implied. See the License for the
177a32b0c8SAndre Fischer * specific language governing permissions and limitations
187a32b0c8SAndre Fischer * under the License.
197a32b0c8SAndre Fischer *
207a32b0c8SAndre Fischer *************************************************************/
217a32b0c8SAndre Fischer
227a32b0c8SAndre Fischer #include "precompiled_sd.hxx"
237a32b0c8SAndre Fischer
247a32b0c8SAndre Fischer #include "SlideTransitionPanel.hxx"
257a32b0c8SAndre Fischer
267a32b0c8SAndre Fischer #include "ViewShellBase.hxx"
277a32b0c8SAndre Fischer
287a32b0c8SAndre Fischer
297a32b0c8SAndre Fischer namespace sd {
307a32b0c8SAndre Fischer extern ::Window* createSlideTransitionPanel (::Window* pParent, ViewShellBase& rBase);
317a32b0c8SAndre Fischer extern sal_Int32 getSlideTransitionPanelMinimumHeight (::Window* pParent);
327a32b0c8SAndre Fischer }
337a32b0c8SAndre Fischer
347a32b0c8SAndre Fischer
357a32b0c8SAndre Fischer
367a32b0c8SAndre Fischer
377a32b0c8SAndre Fischer namespace sd { namespace sidebar {
387a32b0c8SAndre Fischer
397a32b0c8SAndre Fischer
SlideTransitionPanel(::Window * pParentWindow,ViewShellBase & rViewShellBase)407a32b0c8SAndre Fischer SlideTransitionPanel::SlideTransitionPanel (
417a32b0c8SAndre Fischer ::Window* pParentWindow,
427a32b0c8SAndre Fischer ViewShellBase& rViewShellBase)
437a32b0c8SAndre Fischer : PanelBase(pParentWindow, rViewShellBase)
447a32b0c8SAndre Fischer {
457a32b0c8SAndre Fischer #ifdef DEBUG
467a32b0c8SAndre Fischer SetText(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sd:SlideTransitionPanel")));
477a32b0c8SAndre Fischer #endif
487a32b0c8SAndre Fischer }
497a32b0c8SAndre Fischer
507a32b0c8SAndre Fischer
517a32b0c8SAndre Fischer
527a32b0c8SAndre Fischer
~SlideTransitionPanel(void)537a32b0c8SAndre Fischer SlideTransitionPanel::~SlideTransitionPanel (void)
547a32b0c8SAndre Fischer {
557a32b0c8SAndre Fischer }
567a32b0c8SAndre Fischer
577a32b0c8SAndre Fischer
587a32b0c8SAndre Fischer
597a32b0c8SAndre Fischer
CreateWrappedControl(::Window * pParentWindow,ViewShellBase & rViewShellBase)607a32b0c8SAndre Fischer ::Window* SlideTransitionPanel::CreateWrappedControl (
617a32b0c8SAndre Fischer ::Window* pParentWindow,
627a32b0c8SAndre Fischer ViewShellBase& rViewShellBase)
637a32b0c8SAndre Fischer {
647a32b0c8SAndre Fischer return createSlideTransitionPanel(pParentWindow, rViewShellBase);
657a32b0c8SAndre Fischer }
667a32b0c8SAndre Fischer
677a32b0c8SAndre Fischer
687a32b0c8SAndre Fischer
697a32b0c8SAndre Fischer
GetHeightForWidth(const sal_Int32 nWidth)707a32b0c8SAndre Fischer css::ui::LayoutSize SlideTransitionPanel::GetHeightForWidth (const sal_Int32 nWidth)
717a32b0c8SAndre Fischer {
727a32b0c8SAndre Fischer const sal_Int32 nMinimumHeight(getSlideTransitionPanelMinimumHeight(mpWrappedControl.get()));
737a32b0c8SAndre Fischer return css::ui::LayoutSize(nMinimumHeight,-1, nMinimumHeight);
747a32b0c8SAndre Fischer }
757a32b0c8SAndre Fischer
767a32b0c8SAndre Fischer } } // end of namespace sd::sidebar
77