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 2202c50d82SAndre Fischer #ifndef SFX_SIDEBAR_LAYOUTABLE_WINDOW_INTERFACE_HXX 2302c50d82SAndre Fischer #define SFX_SIDEBAR_LAYOUTABLE_WINDOW_INTERFACE_HXX 2422de8995SAndre Fischer 25*3fc59d38SAndre Fischer #include "sfx2/dllapi.h" 267a32b0c8SAndre Fischer #include <tools/gen.hxx> 277a32b0c8SAndre Fischer #include <sal/types.h> 2822de8995SAndre Fischer 297a32b0c8SAndre Fischer #include <com/sun/star/ui/LayoutSize.hpp> 3022de8995SAndre Fischer 317a32b0c8SAndre Fischer class Window; 327a32b0c8SAndre Fischer 3302c50d82SAndre Fischer namespace sfx2 { namespace sidebar { 347a32b0c8SAndre Fischer 357a32b0c8SAndre Fischer 36*3fc59d38SAndre Fischer class SFX2_DLLPUBLIC ILayoutableWindow 3722de8995SAndre Fischer { 3822de8995SAndre Fischer public: 39*3fc59d38SAndre Fischer virtual ~ILayoutableWindow (void); 40*3fc59d38SAndre Fischer 417a32b0c8SAndre Fischer /** Return the preferred height with the constraint, that the 427a32b0c8SAndre Fischer window will be set to the given width. 437a32b0c8SAndre Fischer */ 447a32b0c8SAndre Fischer virtual ::com::sun::star::ui::LayoutSize GetHeightForWidth (const sal_Int32 nWidth) = 0; 4522de8995SAndre Fischer }; 4622de8995SAndre Fischer 4722de8995SAndre Fischer 487a32b0c8SAndre Fischer } } // end of namespace ::sd::sidebar 4922de8995SAndre Fischer 5022de8995SAndre Fischer #endif 51