1*5d39f272SZheng Fan /**************************************************************
2*5d39f272SZheng Fan  *
3*5d39f272SZheng Fan  * Licensed to the Apache Software Foundation (ASF) under one
4*5d39f272SZheng Fan  * or more contributor license agreements.  See the NOTICE file
5*5d39f272SZheng Fan  * distributed with this work for additional information
6*5d39f272SZheng Fan  * regarding copyright ownership.  The ASF licenses this file
7*5d39f272SZheng Fan  * to you under the Apache License, Version 2.0 (the
8*5d39f272SZheng Fan  * "License"); you may not use this file except in compliance
9*5d39f272SZheng Fan  * with the License.  You may obtain a copy of the License at
10*5d39f272SZheng Fan  *
11*5d39f272SZheng Fan  *   http://www.apache.org/licenses/LICENSE-2.0
12*5d39f272SZheng Fan  *
13*5d39f272SZheng Fan  * Unless required by applicable law or agreed to in writing,
14*5d39f272SZheng Fan  * software distributed under the License is distributed on an
15*5d39f272SZheng Fan  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*5d39f272SZheng Fan  * KIND, either express or implied.  See the License for the
17*5d39f272SZheng Fan  * specific language governing permissions and limitations
18*5d39f272SZheng Fan  * under the License.
19*5d39f272SZheng Fan  *
20*5d39f272SZheng Fan  *************************************************************/
21*5d39f272SZheng Fan 
22*5d39f272SZheng Fan #ifndef SVX_SIDEBAR_DEBUG_CONTEXT_PANEL_HXX
23*5d39f272SZheng Fan #define SVX_SIDEBAR_DEBUG_CONTEXT_PANEL_HXX
24*5d39f272SZheng Fan 
25*5d39f272SZheng Fan #include <sfx2/sidebar/IContextChangeReceiver.hxx>
26*5d39f272SZheng Fan #include <vcl/window.hxx>
27*5d39f272SZheng Fan #include <vcl/fixed.hxx>
28*5d39f272SZheng Fan 
29*5d39f272SZheng Fan 
30*5d39f272SZheng Fan namespace svx { namespace sidebar {
31*5d39f272SZheng Fan 
32*5d39f272SZheng Fan 
33*5d39f272SZheng Fan /** Display the current context.
34*5d39f272SZheng Fan */
35*5d39f272SZheng Fan class ContextPanel
36*5d39f272SZheng Fan     : public Window,
37*5d39f272SZheng Fan       public sfx2::sidebar::IContextChangeReceiver
38*5d39f272SZheng Fan {
39*5d39f272SZheng Fan public:
40*5d39f272SZheng Fan     ContextPanel (::Window* pParent);
41*5d39f272SZheng Fan     virtual ~ContextPanel (void);
42*5d39f272SZheng Fan 
43*5d39f272SZheng Fan     // From Window
44*5d39f272SZheng Fan     sal_Int32 GetPreferredHeight (sal_Int32 nWidth);
45*5d39f272SZheng Fan 
46*5d39f272SZheng Fan     // From IContextChangeReceiverInterface
47*5d39f272SZheng Fan     virtual void HandleContextChange (const ::sfx2::sidebar::EnumContext aContext);
48*5d39f272SZheng Fan 
49*5d39f272SZheng Fan private:
50*5d39f272SZheng Fan     FixedText maApplicationName;
51*5d39f272SZheng Fan     FixedText maContextName;
52*5d39f272SZheng Fan };
53*5d39f272SZheng Fan 
54*5d39f272SZheng Fan } } // end of namespace ::svx::sidebar
55*5d39f272SZheng Fan 
56*5d39f272SZheng Fan #endif
57