User: vg Date: 2008-08-19 10:10:54+0000 Modified: dba/reportdesign/source/ui/inc/ReportController.hxx
Log: INTEGRATION: CWS dba31a (1.8.10); FILE MERGED 2008/07/15 08:38:55 fs 1.8.10.4: remove unused code Issue number: #i91592# Submitted by: [EMAIL PROTECTED] Reviewed by: [EMAIL PROTECTED] 2008/07/02 09:19:20 oj 1.8.10.3: RESYNC: (1.8-1.10); FILE MERGED 2008/07/01 07:02:11 oj 1.8.10.2: #i77916# impl zoom and move config data into ext 2008/06/26 14:26:32 oj 1.8.10.1: #i77916# impl zooming in report builder File Changes: Directory: /dba/reportdesign/source/ui/inc/ =========================================== File [changed]: ReportController.hxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/inc/ReportController.hxx?r1=1.10&r2=1.11 Delta lines: +28 -9 -------------------- --- ReportController.hxx 2008-06-26 09:02:23+0000 1.10 +++ ReportController.hxx 2008-08-19 10:10:50+0000 1.11 @@ -33,7 +33,6 @@ #include <dbaccess/singledoccontroller.hxx> #include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/beans/PropertyValue.hpp> -#include <cppuhelper/implbase3.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/sdbc/XConnection.hpp> #include <com/sun/star/sdbc/XRowSet.hpp> @@ -51,12 +50,16 @@ #include <com/sun/star/report/XSection.hpp> #include <com/sun/star/view/XSelectionSupplier.hpp> #include <cppuhelper/implbase4.hxx> -#include <comphelper/uno3.hxx> #include <svtools/transfer.hxx> #include <svtools/lstner.hxx> #include <svx/svdedtv.hxx> #include "ModuleHelper.hxx" + +#include <comphelper/uno3.hxx> #include <comphelper/implementationreference.hxx> +#include <comphelper/proparrhlp.hxx> +#include <comphelper/propertystatecontainer.hxx> + #include "RptDef.hxx" #include <functional> #include <boost/shared_ptr.hpp> @@ -84,6 +87,8 @@ class OReportController : public OReportController_BASE ,public OReportController_Listener ,public SfxListener + ,public ::comphelper::OPropertyStateContainer + ,public ::comphelper::OPropertyArrayUsageHelper < OReportController_BASE > { private: OModuleClient m_aModuleClient; @@ -112,6 +117,7 @@ sal_Int32 m_nSplitPos; /// the position of the splitter sal_Int32 m_nPageNum; /// the page number from the restoreView call //sal_Int32 m_nExecuteReportEvent; + sal_Int16 m_nZoomValue; sal_Bool m_bShowRuler; sal_Bool m_bGridVisible; sal_Bool m_bGridUse; @@ -251,6 +257,10 @@ */ void checkChartEnabled(); + /** set the zoom factor at the design view + */ + void impl_zoom_nothrow(); + OReportController(OReportController const&); OReportController& operator =(OReportController const&); @@ -293,6 +303,9 @@ virtual void losingConnection( ); + virtual void getPropertyDefaultByHandle( sal_Int32 _nHandle, ::com::sun::star::uno::Any& _rDefault ) const; + virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const ::com::sun::star::uno::Any& rValue) throw (::com::sun::star::uno::Exception); + virtual ~OReportController(); public: OReportController(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context); @@ -395,12 +408,6 @@ */ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > getRowSet(); - /** hides or display all design floaters - * - * \param _bShow If <TRUE/> show floaters otherwise hide them. - */ - void displayDesignFloater(sal_Bool _bShow); - /** returns the number formatter */ ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > getReportNumberFormatter() const; @@ -412,6 +419,18 @@ ::boost::shared_ptr<rptui::OReportModel> getSdrModel(); inline ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getContext() const { return m_xContext; } + inline sal_Int16 getZoomValue() const { return m_nZoomValue; } + + // com::sun::star::beans::XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException) + { + return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); + } + // comphelper::OPropertyArrayUsageHelper + virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; + + // cppu::OPropertySetHelper + virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); private: virtual void onLoadedMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager >& _xLayoutManager ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]