xref: /aoo42x/main/sfx2/source/sidebar/ToolBox.hxx (revision 49b39f76)
122de8995SAndre Fischer /**************************************************************
222de8995SAndre Fischer  *
322de8995SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
422de8995SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
522de8995SAndre Fischer  * distributed with this work for additional information
622de8995SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
722de8995SAndre Fischer  * to you under the Apache License, Version 2.0 (the
822de8995SAndre Fischer  * "License"); you may not use this file except in compliance
922de8995SAndre Fischer  * with the License.  You may obtain a copy of the License at
1022de8995SAndre Fischer  *
1122de8995SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
1222de8995SAndre Fischer  *
1322de8995SAndre Fischer  * Unless required by applicable law or agreed to in writing,
1422de8995SAndre Fischer  * software distributed under the License is distributed on an
1522de8995SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1622de8995SAndre Fischer  * KIND, either express or implied.  See the License for the
1722de8995SAndre Fischer  * specific language governing permissions and limitations
1822de8995SAndre Fischer  * under the License.
1922de8995SAndre Fischer  *
2022de8995SAndre Fischer  *************************************************************/
2122de8995SAndre Fischer 
22*7a32b0c8SAndre Fischer #ifndef SFX_SIDEBAR_TOOLBOX_HXX
23*7a32b0c8SAndre Fischer #define SFX_SIDEBAR_TOOLBOX_HXX
2422de8995SAndre Fischer 
25*7a32b0c8SAndre Fischer #include "vcl/toolbox.hxx"
2622de8995SAndre Fischer 
2722de8995SAndre Fischer 
28*7a32b0c8SAndre Fischer namespace sfx2 { namespace sidebar {
2922de8995SAndre Fischer 
30*7a32b0c8SAndre Fischer class ToolBox
31*7a32b0c8SAndre Fischer     : public ::ToolBox
3222de8995SAndre Fischer {
3322de8995SAndre 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;
5122de8995SAndre Fischer };
5222de8995SAndre Fischer 
5322de8995SAndre Fischer 
54*7a32b0c8SAndre Fischer } } // end of namespace sfx2::sidebar
5522de8995SAndre Fischer 
5622de8995SAndre Fischer #endif
57