1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef RPTUI_RULER_HXX 24 #define RPTUI_RULER_HXX 25 26 #include <vcl/window.hxx> 27 #include <com/sun/star/report/XSection.hpp> 28 29 namespace rptui 30 { 31 class OReportSection; 32 class OReportWindow; 33 class OReportRuler : public Window 34 { 35 OReportSection* m_pSection; 36 OReportWindow* m_pParent; 37 sal_Bool m_bShow; 38 OReportRuler(OReportRuler&); 39 void operator =(OReportRuler&); 40 public: 41 OReportRuler(Window* _pParent,OReportWindow* _pReportWindowt,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection); 42 virtual ~OReportRuler(); 43 44 // windows overloads 45 virtual void Resize(); 46 getSection() const47 inline OReportSection* getSection() const { return m_pSection; } getView() const48 inline OReportWindow* getView() const { return m_pParent; } 49 50 /** makes the grid visible 51 * 52 * \param _bVisible when <TRUE/> the grid is made visible 53 */ 54 void SetGridVisible(sal_Bool _bVisible); 55 }; 56 //============================================================================== 57 } // rptui 58 //============================================================================== 59 #endif // RPTUI_RULER_HXX 60