xref: /AOO41X/main/sfx2/source/sidebar/ToolBox.hxx (revision ca62e2c2083b5d0995f1245bad6c2edfb455fbec)
1*7a32b0c8SAndre Fischer /**************************************************************
2*7a32b0c8SAndre Fischer  *
3*7a32b0c8SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
4*7a32b0c8SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
5*7a32b0c8SAndre Fischer  * distributed with this work for additional information
6*7a32b0c8SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
7*7a32b0c8SAndre Fischer  * to you under the Apache License, Version 2.0 (the
8*7a32b0c8SAndre Fischer  * "License"); you may not use this file except in compliance
9*7a32b0c8SAndre Fischer  * with the License.  You may obtain a copy of the License at
10*7a32b0c8SAndre Fischer  *
11*7a32b0c8SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
12*7a32b0c8SAndre Fischer  *
13*7a32b0c8SAndre Fischer  * Unless required by applicable law or agreed to in writing,
14*7a32b0c8SAndre Fischer  * software distributed under the License is distributed on an
15*7a32b0c8SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7a32b0c8SAndre Fischer  * KIND, either express or implied.  See the License for the
17*7a32b0c8SAndre Fischer  * specific language governing permissions and limitations
18*7a32b0c8SAndre Fischer  * under the License.
19*7a32b0c8SAndre Fischer  *
20*7a32b0c8SAndre Fischer  *************************************************************/
21*7a32b0c8SAndre Fischer 
22*7a32b0c8SAndre Fischer #ifndef SFX_SIDEBAR_TOOLBOX_HXX
23*7a32b0c8SAndre Fischer #define SFX_SIDEBAR_TOOLBOX_HXX
24*7a32b0c8SAndre Fischer 
25*7a32b0c8SAndre Fischer #include "vcl/toolbox.hxx"
26*7a32b0c8SAndre Fischer 
27*7a32b0c8SAndre Fischer 
28*7a32b0c8SAndre Fischer namespace sfx2 { namespace sidebar {
29*7a32b0c8SAndre Fischer 
30*7a32b0c8SAndre Fischer class ToolBox
31*7a32b0c8SAndre Fischer     : public ::ToolBox
32*7a32b0c8SAndre Fischer {
33*7a32b0c8SAndre Fischer public:
34*7a32b0c8SAndre Fischer     MenuButton (Window* pParentWindow);
35*7a32b0c8SAndre Fischer     virtual ~MenuButton (void);
36*7a32b0c8SAndre Fischer 
37*7a32b0c8SAndre Fischer     virtual void Paint (const Rectangle& rUpdateArea);
38*7a32b0c8SAndre Fischer     virtual void MouseMove (const MouseEvent& rEvent);
39*7a32b0c8SAndre Fischer     virtual void MouseButtonDown (const MouseEvent& rMouseEvent);
40*7a32b0c8SAndre Fischer     virtual void MouseButtonUp (const MouseEvent& rMouseEvent);
41*7a32b0c8SAndre Fischer 
42*7a32b0c8SAndre Fischer protected:
43*7a32b0c8SAndre Fischer     using CheckBox::FillLayoutData;
44*7a32b0c8SAndre Fischer 
45*7a32b0c8SAndre Fischer private:
46*7a32b0c8SAndre Fischer     bool mbIsLeftButtonDown;
47*7a32b0c8SAndre Fischer     enum PaintType {
48*7a32b0c8SAndre Fischer         PT_Native,
49*7a32b0c8SAndre Fischer         PT_Theme
50*7a32b0c8SAndre Fischer     } mePaintType;
51*7a32b0c8SAndre Fischer };
52*7a32b0c8SAndre Fischer 
53*7a32b0c8SAndre Fischer 
54*7a32b0c8SAndre Fischer } } // end of namespace sfx2::sidebar
55*7a32b0c8SAndre Fischer 
56*7a32b0c8SAndre Fischer #endif
57