sync master with lastest vba changes
[ooovba.git] / reportdesign / source / ui / inc / ReportRuler.hxx
blobe904c040cd687f6b5596dde21379121c77eb9f2a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ReportRuler.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef RPTUI_RULER_HXX
31 #define RPTUI_RULER_HXX
33 #include <vcl/window.hxx>
34 #include <com/sun/star/report/XSection.hpp>
36 namespace rptui
38 class OReportSection;
39 class OReportWindow;
40 class OReportRuler : public Window
42 OReportSection* m_pSection;
43 OReportWindow* m_pParent;
44 sal_Bool m_bShow;
45 OReportRuler(OReportRuler&);
46 void operator =(OReportRuler&);
47 public:
48 OReportRuler(Window* _pParent,OReportWindow* _pReportWindowt,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection);
49 virtual ~OReportRuler();
51 // windows overloads
52 virtual void Resize();
54 inline OReportSection* getSection() const { return m_pSection; }
55 inline OReportWindow* getView() const { return m_pParent; }
57 /** makes the grid visible
59 * \param _bVisible when <TRUE/> the grid is made visible
61 void SetGridVisible(BOOL _bVisible);
63 //==============================================================================
64 } // rptui
65 //==============================================================================
66 #endif // RPTUI_RULER_HXX