Update ooo320-m1
[ooovba.git] / extensions / source / propctrlr / inspectorhelpwindow.hxx
blob8b1120fb3d8dc7464c5ace6aef0daf83cc151af5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: inspectorhelpwindow.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INSPECTORHELPWINDOW_HXX
31 #define INSPECTORHELPWINDOW_HXX
33 /** === begin UNO includes === **/
34 /** === end UNO includes === **/
36 #include <vcl/fixed.hxx>
37 #include <svtools/svmedit.hxx>
39 //........................................................................
40 namespace pcr
42 //........................................................................
44 //====================================================================
45 //= InspectorHelpWindow
46 //====================================================================
47 class InspectorHelpWindow : public Window
49 private:
50 FixedLine m_aSeparator;
51 MultiLineEdit m_aHelpText;
53 sal_Int32 m_nMinLines;
54 sal_Int32 m_nMaxLines;
56 public:
57 InspectorHelpWindow( Window* _pParent );
59 virtual void SetText( const XubString& rStr );
61 void SetLimits( sal_Int32 _nMinLines, sal_Int32 _nMaxLines );
62 long GetMinimalHeightPixel();
63 long GetOptimalHeightPixel();
65 protected:
66 // Window overridables
67 virtual void Resize();
69 private:
70 long impl_getMinimalTextWindowHeight();
71 long impl_getMaximalTextWindowHeight();
72 long impl_getHelpTextBorderHeight();
73 long impl_getSpaceAboveTextWindow();
76 //........................................................................
77 } // namespace pcr
78 //........................................................................
80 #endif // HELPWINDOW_HXX