1*46dbaceeSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*46dbaceeSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*46dbaceeSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*46dbaceeSAndrew Rist  * distributed with this work for additional information
6*46dbaceeSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*46dbaceeSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*46dbaceeSAndrew Rist  * "License"); you may not use this file except in compliance
9*46dbaceeSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*46dbaceeSAndrew Rist  *
11*46dbaceeSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*46dbaceeSAndrew Rist  *
13*46dbaceeSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*46dbaceeSAndrew Rist  * software distributed under the License is distributed on an
15*46dbaceeSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*46dbaceeSAndrew Rist  * KIND, either express or implied.  See the License for the
17*46dbaceeSAndrew Rist  * specific language governing permissions and limitations
18*46dbaceeSAndrew Rist  * under the License.
19*46dbaceeSAndrew Rist  *
20*46dbaceeSAndrew Rist  *************************************************************/
21*46dbaceeSAndrew Rist 
22*46dbaceeSAndrew Rist 
23cdf0e10cSrcweir #ifndef INSPECTORHELPWINDOW_HXX
24cdf0e10cSrcweir #define INSPECTORHELPWINDOW_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir /** === begin UNO includes === **/
27cdf0e10cSrcweir /** === end UNO includes === **/
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <vcl/fixed.hxx>
30cdf0e10cSrcweir #include <svtools/svmedit.hxx>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir //........................................................................
33cdf0e10cSrcweir namespace pcr
34cdf0e10cSrcweir {
35cdf0e10cSrcweir //........................................................................
36cdf0e10cSrcweir 
37cdf0e10cSrcweir 	//====================================================================
38cdf0e10cSrcweir 	//= InspectorHelpWindow
39cdf0e10cSrcweir 	//====================================================================
40cdf0e10cSrcweir     class InspectorHelpWindow : public Window
41cdf0e10cSrcweir 	{
42cdf0e10cSrcweir     private:
43cdf0e10cSrcweir         FixedLine       m_aSeparator;
44cdf0e10cSrcweir         MultiLineEdit   m_aHelpText;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir         sal_Int32       m_nMinLines;
47cdf0e10cSrcweir         sal_Int32       m_nMaxLines;
48cdf0e10cSrcweir 
49cdf0e10cSrcweir     public:
50cdf0e10cSrcweir         InspectorHelpWindow( Window* _pParent );
51cdf0e10cSrcweir 
52cdf0e10cSrcweir         virtual void    SetText( const XubString& rStr );
53cdf0e10cSrcweir 
54cdf0e10cSrcweir         void            SetLimits( sal_Int32 _nMinLines, sal_Int32 _nMaxLines );
55cdf0e10cSrcweir         long            GetMinimalHeightPixel();
56cdf0e10cSrcweir         long            GetOptimalHeightPixel();
57cdf0e10cSrcweir 
58cdf0e10cSrcweir     protected:
59cdf0e10cSrcweir         // Window overridables
60cdf0e10cSrcweir         virtual void    Resize();
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     private:
63cdf0e10cSrcweir         long            impl_getMinimalTextWindowHeight();
64cdf0e10cSrcweir         long            impl_getMaximalTextWindowHeight();
65cdf0e10cSrcweir         long            impl_getHelpTextBorderHeight();
66cdf0e10cSrcweir         long            impl_getSpaceAboveTextWindow();
67cdf0e10cSrcweir 	};
68cdf0e10cSrcweir 
69cdf0e10cSrcweir //........................................................................
70cdf0e10cSrcweir } // namespace pcr
71cdf0e10cSrcweir //........................................................................
72cdf0e10cSrcweir 
73cdf0e10cSrcweir #endif // HELPWINDOW_HXX
74cdf0e10cSrcweir 
75