xref: /trunk/main/desktop/source/deployment/gui/dp_gui_autoscrolledit.hxx (revision ec11f87ab23355e4c8e2c7dc62ff9c677fbd0971)
10a1e2f0eSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
30a1e2f0eSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
40a1e2f0eSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
50a1e2f0eSAndrew Rist  * distributed with this work for additional information
60a1e2f0eSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
70a1e2f0eSAndrew Rist  * to you under the Apache License, Version 2.0 (the
80a1e2f0eSAndrew Rist  * "License"); you may not use this file except in compliance
90a1e2f0eSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
110a1e2f0eSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
130a1e2f0eSAndrew Rist  * Unless required by applicable law or agreed to in writing,
140a1e2f0eSAndrew Rist  * software distributed under the License is distributed on an
150a1e2f0eSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
160a1e2f0eSAndrew Rist  * KIND, either express or implied.  See the License for the
170a1e2f0eSAndrew Rist  * specific language governing permissions and limitations
180a1e2f0eSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
200a1e2f0eSAndrew Rist  *************************************************************/
210a1e2f0eSAndrew Rist 
22cdf0e10cSrcweir #ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_DP_GUI_AUTOSCROLLEDIT_HXX
23cdf0e10cSrcweir #define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_DP_GUI_AUTOSCROLLEDIT_HXX
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #include "svtools/svmedit2.hxx"
26cdf0e10cSrcweir #include "svl/lstner.hxx"
27cdf0e10cSrcweir 
28cdf0e10cSrcweir namespace dp_gui {
29cdf0e10cSrcweir 
30cdf0e10cSrcweir /** This control shows automatically the vertical scroll bar if text is inserted,
31cdf0e10cSrcweir     that does not fit into the text area. In the resource one uses MultiLineEdit
32cdf0e10cSrcweir     and needs to set VScroll = TRUE
33cdf0e10cSrcweir */
34cdf0e10cSrcweir class AutoScrollEdit : public ExtMultiLineEdit, public SfxListener
35cdf0e10cSrcweir {
36cdf0e10cSrcweir public:
37cdf0e10cSrcweir     AutoScrollEdit( Window* pParent, const ResId& rResId );
38cdf0e10cSrcweir     ~AutoScrollEdit();
39cdf0e10cSrcweir 
40cdf0e10cSrcweir     using ExtMultiLineEdit::Notify;
41cdf0e10cSrcweir     virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
42cdf0e10cSrcweir };
43cdf0e10cSrcweir 
44cdf0e10cSrcweir } // namespace dp_gui
45cdf0e10cSrcweir 
46cdf0e10cSrcweir #endif
47*ec11f87aSmseidel 
48*ec11f87aSmseidel /* vim: set noet sw=4 ts=4: */
49