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