1*2503e1a5SAriel Constenla-Haile /************************************************************** 2*2503e1a5SAriel Constenla-Haile * 3*2503e1a5SAriel Constenla-Haile * Licensed to the Apache Software Foundation (ASF) under one 4*2503e1a5SAriel Constenla-Haile * or more contributor license agreements. See the NOTICE file 5*2503e1a5SAriel Constenla-Haile * distributed with this work for additional information 6*2503e1a5SAriel Constenla-Haile * regarding copyright ownership. The ASF licenses this file 7*2503e1a5SAriel Constenla-Haile * to you under the Apache License, Version 2.0 (the 8*2503e1a5SAriel Constenla-Haile * "License"); you may not use this file except in compliance 9*2503e1a5SAriel Constenla-Haile * with the License. You may obtain a copy of the License at 10*2503e1a5SAriel Constenla-Haile * 11*2503e1a5SAriel Constenla-Haile * http://www.apache.org/licenses/LICENSE-2.0 12*2503e1a5SAriel Constenla-Haile * 13*2503e1a5SAriel Constenla-Haile * Unless required by applicable law or agreed to in writing, 14*2503e1a5SAriel Constenla-Haile * software distributed under the License is distributed on an 15*2503e1a5SAriel Constenla-Haile * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2503e1a5SAriel Constenla-Haile * KIND, either express or implied. See the License for the 17*2503e1a5SAriel Constenla-Haile * specific language governing permissions and limitations 18*2503e1a5SAriel Constenla-Haile * under the License. 19*2503e1a5SAriel Constenla-Haile * 20*2503e1a5SAriel Constenla-Haile *************************************************************/ 21*2503e1a5SAriel Constenla-Haile 22*2503e1a5SAriel Constenla-Haile #ifndef __FRAMEWORK_UIELEMENT_GENERICSTATUSBARCONTROLLER_HXX_ 23*2503e1a5SAriel Constenla-Haile #define __FRAMEWORK_UIELEMENT_GENERICSTATUSBARCONTROLLER_HXX_ 24*2503e1a5SAriel Constenla-Haile 25*2503e1a5SAriel Constenla-Haile #include <svtools/statusbarcontroller.hxx> 26*2503e1a5SAriel Constenla-Haile 27*2503e1a5SAriel Constenla-Haile #include <com/sun/star/graphic/XGraphic.hpp> 28*2503e1a5SAriel Constenla-Haile 29*2503e1a5SAriel Constenla-Haile namespace framework 30*2503e1a5SAriel Constenla-Haile { 31*2503e1a5SAriel Constenla-Haile 32*2503e1a5SAriel Constenla-Haile class AddonStatusbarItemData; 33*2503e1a5SAriel Constenla-Haile 34*2503e1a5SAriel Constenla-Haile class GenericStatusbarController : public svt::StatusbarController 35*2503e1a5SAriel Constenla-Haile { 36*2503e1a5SAriel Constenla-Haile public: 37*2503e1a5SAriel Constenla-Haile GenericStatusbarController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager, 38*2503e1a5SAriel Constenla-Haile const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, 39*2503e1a5SAriel Constenla-Haile const com::sun::star::uno::Reference< com::sun::star::ui::XStatusbarItem >& rxItem, 40*2503e1a5SAriel Constenla-Haile AddonStatusbarItemData *pItemData ); 41*2503e1a5SAriel Constenla-Haile virtual ~GenericStatusbarController(); 42*2503e1a5SAriel Constenla-Haile 43*2503e1a5SAriel Constenla-Haile // XComponent 44*2503e1a5SAriel Constenla-Haile virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException ); 45*2503e1a5SAriel Constenla-Haile // XStatusListener 46*2503e1a5SAriel Constenla-Haile virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ); 47*2503e1a5SAriel Constenla-Haile 48*2503e1a5SAriel Constenla-Haile virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics, 49*2503e1a5SAriel Constenla-Haile const ::com::sun::star::awt::Rectangle& rOutputRectangle, 50*2503e1a5SAriel Constenla-Haile ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException); 51*2503e1a5SAriel Constenla-Haile 52*2503e1a5SAriel Constenla-Haile protected: 53*2503e1a5SAriel Constenla-Haile sal_Bool m_bEnabled; 54*2503e1a5SAriel Constenla-Haile sal_Bool m_bOwnerDraw; 55*2503e1a5SAriel Constenla-Haile AddonStatusbarItemData *m_pItemData; 56*2503e1a5SAriel Constenla-Haile ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > m_xGraphic; 57*2503e1a5SAriel Constenla-Haile }; 58*2503e1a5SAriel Constenla-Haile 59*2503e1a5SAriel Constenla-Haile } 60*2503e1a5SAriel Constenla-Haile 61*2503e1a5SAriel Constenla-Haile #endif 62