12503e1a5SAriel Constenla-Haile /************************************************************** 22503e1a5SAriel Constenla-Haile * 32503e1a5SAriel Constenla-Haile * Licensed to the Apache Software Foundation (ASF) under one 42503e1a5SAriel Constenla-Haile * or more contributor license agreements. See the NOTICE file 52503e1a5SAriel Constenla-Haile * distributed with this work for additional information 62503e1a5SAriel Constenla-Haile * regarding copyright ownership. The ASF licenses this file 72503e1a5SAriel Constenla-Haile * to you under the Apache License, Version 2.0 (the 82503e1a5SAriel Constenla-Haile * "License"); you may not use this file except in compliance 92503e1a5SAriel Constenla-Haile * with the License. You may obtain a copy of the License at 102503e1a5SAriel Constenla-Haile * 112503e1a5SAriel Constenla-Haile * http://www.apache.org/licenses/LICENSE-2.0 122503e1a5SAriel Constenla-Haile * 132503e1a5SAriel Constenla-Haile * Unless required by applicable law or agreed to in writing, 142503e1a5SAriel Constenla-Haile * software distributed under the License is distributed on an 152503e1a5SAriel Constenla-Haile * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 162503e1a5SAriel Constenla-Haile * KIND, either express or implied. See the License for the 172503e1a5SAriel Constenla-Haile * specific language governing permissions and limitations 182503e1a5SAriel Constenla-Haile * under the License. 192503e1a5SAriel Constenla-Haile * 202503e1a5SAriel Constenla-Haile *************************************************************/ 212503e1a5SAriel Constenla-Haile 222503e1a5SAriel Constenla-Haile #ifndef __FRAMEWORK_UIELEMENT_GENERICSTATUSBARCONTROLLER_HXX_ 232503e1a5SAriel Constenla-Haile #define __FRAMEWORK_UIELEMENT_GENERICSTATUSBARCONTROLLER_HXX_ 242503e1a5SAriel Constenla-Haile 252503e1a5SAriel Constenla-Haile #include <svtools/statusbarcontroller.hxx> 262503e1a5SAriel Constenla-Haile 272503e1a5SAriel Constenla-Haile #include <com/sun/star/graphic/XGraphic.hpp> 282503e1a5SAriel Constenla-Haile 292503e1a5SAriel Constenla-Haile namespace framework 302503e1a5SAriel Constenla-Haile { 312503e1a5SAriel Constenla-Haile 32*249b2aa3SHerbert Dürr struct AddonStatusbarItemData; 332503e1a5SAriel Constenla-Haile 342503e1a5SAriel Constenla-Haile class GenericStatusbarController : public svt::StatusbarController 352503e1a5SAriel Constenla-Haile { 362503e1a5SAriel Constenla-Haile public: 372503e1a5SAriel Constenla-Haile GenericStatusbarController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager, 382503e1a5SAriel Constenla-Haile const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, 392503e1a5SAriel Constenla-Haile const com::sun::star::uno::Reference< com::sun::star::ui::XStatusbarItem >& rxItem, 402503e1a5SAriel Constenla-Haile AddonStatusbarItemData *pItemData ); 412503e1a5SAriel Constenla-Haile virtual ~GenericStatusbarController(); 422503e1a5SAriel Constenla-Haile 432503e1a5SAriel Constenla-Haile // XComponent 442503e1a5SAriel Constenla-Haile virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException ); 452503e1a5SAriel Constenla-Haile // XStatusListener 462503e1a5SAriel Constenla-Haile virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ); 472503e1a5SAriel Constenla-Haile 482503e1a5SAriel Constenla-Haile virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics, 492503e1a5SAriel Constenla-Haile const ::com::sun::star::awt::Rectangle& rOutputRectangle, 502503e1a5SAriel Constenla-Haile ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException); 512503e1a5SAriel Constenla-Haile 522503e1a5SAriel Constenla-Haile protected: 532503e1a5SAriel Constenla-Haile sal_Bool m_bEnabled; 542503e1a5SAriel Constenla-Haile sal_Bool m_bOwnerDraw; 552503e1a5SAriel Constenla-Haile AddonStatusbarItemData *m_pItemData; 562503e1a5SAriel Constenla-Haile ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > m_xGraphic; 572503e1a5SAriel Constenla-Haile }; 582503e1a5SAriel Constenla-Haile 592503e1a5SAriel Constenla-Haile } 602503e1a5SAriel Constenla-Haile 612503e1a5SAriel Constenla-Haile #endif 62