LCOV - code coverage report
Current view: top level - libreoffice/reportdesign/source/ui/inc - ReportController.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 9 0.0 %
Date: 2012-12-27 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef RPTUI_REPORTCONTROLLER_HXX
      20             : #define RPTUI_REPORTCONTROLLER_HXX
      21             : 
      22             : #include "DesignView.hxx"
      23             : #include "ModuleHelper.hxx"
      24             : #include "ReportControllerObserver.hxx"
      25             : #include "RptDef.hxx"
      26             : 
      27             : #include <com/sun/star/beans/PropertyValue.hpp>
      28             : #include <com/sun/star/beans/XPropertyChangeListener.hpp>
      29             : #include <com/sun/star/beans/XPropertySet.hpp>
      30             : #include <com/sun/star/embed/XVisualObject.hpp>
      31             : #include <com/sun/star/frame/XDesktop2.hpp>
      32             : #include <com/sun/star/frame/XFrame.hpp>
      33             : #include <com/sun/star/io/XObjectInputStream.hpp>
      34             : #include <com/sun/star/io/XObjectOutputStream.hpp>
      35             : #include <com/sun/star/report/XReportControlModel.hpp>
      36             : #include <com/sun/star/report/XReportDefinition.hpp>
      37             : #include <com/sun/star/report/XReportEngine.hpp>
      38             : #include <com/sun/star/report/XSection.hpp>
      39             : #include <com/sun/star/sdbc/XConnection.hpp>
      40             : #include <com/sun/star/sdbc/XRowSet.hpp>
      41             : #include <com/sun/star/uno/Sequence.hxx>
      42             : #include <com/sun/star/uno/XComponentContext.hpp>
      43             : #include <com/sun/star/util/XModeSelector.hpp>
      44             : #include <com/sun/star/util/XNumberFormatter.hpp>
      45             : #include <com/sun/star/view/XSelectionSupplier.hpp>
      46             : 
      47             : #include <comphelper/implementationreference.hxx>
      48             : #include <comphelper/proparrhlp.hxx>
      49             : #include <comphelper/propertystatecontainer.hxx>
      50             : #include <comphelper/uno3.hxx>
      51             : #include <cppuhelper/implbase5.hxx>
      52             : #include <dbaccess/dbsubcomponentcontroller.hxx>
      53             : #include <svl/lstner.hxx>
      54             : #include <svtools/transfer.hxx>
      55             : #include <svx/svdedtv.hxx>
      56             : #include <sfx2/zoomitem.hxx>
      57             : 
      58             : #include <boost/noncopyable.hpp>
      59             : #include <boost/shared_ptr.hpp>
      60             : #include <functional>
      61             : 
      62             : class TransferableClipboardListener;
      63             : class VclWindowEvent;
      64             : class SfxUndoManager;
      65             : namespace rptui
      66             : {
      67             :     class OGroupsSortingDialog;
      68             :     class OReportModel;
      69             :     class OSectionView;
      70             :     class OAddFieldWindow;
      71             :     class OSectionWindow;
      72             : 
      73             :     typedef ::dbaui::DBSubComponentController   OReportController_BASE;
      74             :     typedef ::cppu::ImplHelper5 <   ::com::sun::star::container::XContainerListener
      75             :                                 ,   ::com::sun::star::beans::XPropertyChangeListener
      76             :                                 ,   ::com::sun::star::view::XSelectionSupplier
      77             :                                 ,   ::com::sun::star::util::XModeSelector
      78             :                                 ,   ::com::sun::star::embed::XVisualObject
      79             :                                 >   OReportController_Listener;
      80             : 
      81             :     class OReportController :    public OReportController_BASE
      82             :                                 ,public OReportController_Listener
      83             :                                 ,public SfxListener
      84             :                                 ,public ::comphelper::OPropertyStateContainer
      85             :                                 ,public ::comphelper::OPropertyArrayUsageHelper < OReportController_BASE >
      86             :                                 ,public ::boost::noncopyable
      87             :     {
      88             :     private:
      89             :         OModuleClient           m_aModuleClient;
      90             :         ::cppu::OInterfaceContainerHelper
      91             :                                 m_aSelectionListeners;
      92             :         ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>
      93             :                                 m_aCollapsedSections;
      94             :         TransferableDataHelper  m_aSystemClipboard;     // content of the clipboard
      95             :         TransferableClipboardListener*
      96             :                                 m_pClipbordNotifier;    /// notifier for changes in the clipboard
      97             :         OGroupsSortingDialog*   m_pGroupsFloater;
      98             : 
      99             :         OXReportControllerObserver* m_pReportControllerObserver;
     100             : 
     101           0 :         ODesignView*  getDesignView() const   { return static_cast< ODesignView* >( getView() ); }
     102             : 
     103             :         ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition >         m_xReportDefinition;
     104             :         ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportEngine >             m_xReportEngine;
     105             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDesktop2 >                  m_xFrameLoader;
     106             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >            m_xContext;
     107             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >                     m_xRowSet;
     108             :         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >    m_xRowSetMediator;
     109             :         ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >            m_xFormatter;   // a number formatter working with the report's NumberFormatsSupplier
     110             :         mutable ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >          m_xHoldAlive;
     111             :         mutable ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >    m_xColumns;
     112             :         ::com::sun::star::awt::Size                                                             m_aVisualAreaSize;
     113             : 
     114             :         ::boost::shared_ptr<rptui::OReportModel>
     115             :                                 m_aReportModel;
     116             :         ::rtl::OUString         m_sName;                /// name for the report definition
     117             :         ::rtl::OUString         m_sLastActivePage;      /// last active property browser page
     118             :         ::rtl::OUString         m_sMode;                /// the current mode of the controller
     119             :         sal_Int32               m_nSplitPos;            /// the position of the splitter
     120             :         sal_Int32               m_nPageNum;             /// the page number from the restoreView call
     121             :         sal_Int32               m_nSelectionCount;
     122             :         ::sal_Int64             m_nAspect;
     123             :         sal_Int16               m_nZoomValue;
     124             :         SvxZoomType             m_eZoomType;
     125             :         sal_Bool                m_bShowRuler;
     126             :         sal_Bool                m_bGridVisible;
     127             :         sal_Bool                m_bGridUse;
     128             :         sal_Bool                m_bShowProperties;
     129             :         sal_Bool                m_bGroupFloaterWasVisible;
     130             :         sal_Bool                m_bHelplinesMove;
     131             :         bool                    m_bChartEnabled;
     132             :         bool                    m_bChartEnabledAsked;
     133             :         bool                    m_bInGeneratePreview;
     134             : 
     135             :         /** creates a formatted field in the given section with the given formula as data field
     136             :         *
     137             :         * \param _aArgs
     138             :         * \param _xSection the section where to create the formatted field
     139             :         * \param _sFunction the function which will be set at the data field.
     140             :         */
     141             :         void createControl(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _aArgs,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xSection,const ::rtl::OUString& _sFunction ,sal_uInt16 _nObjectId = OBJ_DLG_FORMATTEDFIELD);
     142             :         /** switch the report header/footer sectionon off with undo or without depending on the given id.
     143             :         *
     144             :         * \param _nId   Can either be SID_REPORTHEADER_WITHOUT_UNDO or SID_REPORTFOOTER_WITHOUT_UNDO or SID_REPORTHEADERFOOTER.
     145             :         */
     146             :         void switchReportSection(const sal_Int16 _nId);
     147             : 
     148             :         /** switch the report header/footer sectionon off with undo or without depending on the given id.
     149             :         *
     150             :         * \param _nId   Can either be SID_PAGEHEADER_WITHOUT_UNDO or SID_PAGEFOOTER_WITHOUT_UNDO or SID_PAGEHEADERFOOTER.
     151             :         */
     152             :         void switchPageSection(const sal_Int16 _nId);
     153             : 
     154             :         /** append a new group or remove it with undo.
     155             :         *
     156             :         * \param _bAppend
     157             :         * \param _aArgs The args which contains a element named PROPERTY_GROUP of type report::XGroup.
     158             :         */
     159             :         void modifyGroup(const bool _bAppend, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _aArgs);
     160             : 
     161             :         /** creates a group section.
     162             :         *
     163             :         * \param _bUndo true when undo action should be created
     164             :         * \param _bHeader true when it is a header otherwise it is a footer
     165             :         * \param _aArgs The args which contains a element named PROPERTY_GROUP of type report::XGroup.
     166             :         */
     167             :         void createGroupSection(const bool _bUndo,const bool _bHeader,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >&_aArgs);
     168             : 
     169             :         /** add or remove me as listener at the report definition
     170             :         *
     171             :         * \param _bAdd
     172             :         */
     173             :         void listen(const bool _bAdd);
     174             : 
     175             :         /** opens the common page dialog
     176             :         */
     177             :         void openPageDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xSection);
     178             : 
     179             :         /** opens or hides the sorting and grouping dialog
     180             :         */
     181             :         void openSortingAndGroupingDialog();
     182             : 
     183             :         /** opens the zoom dialog
     184             :         */
     185             :         void openZoomDialog();
     186             : 
     187             :         /** returns the position of the group inside the groups collection
     188             :         */
     189             :         sal_Int32 getGroupPosition(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup >& _xGroup);
     190             : 
     191             :         /** calls propertyChanged when the header or footer is really turned on.
     192             :             @param  _rEvent the group
     193             :             @param  _bShow  when <TRUE/> the header and footer will be shown otherwise not
     194             :         */
     195             :         void notifyGroupSections(const ::com::sun::star::container::ContainerEvent& _rEvent
     196             :                                 ,bool _bShow);
     197             : 
     198             :         /** change the sections for a group
     199             :             @param  _sPropName  the header or footer
     200             :             @param  _xGroup the group
     201             :             @param  _nGroupPos  the position of the group inside the groups collection or the previous index when it was removed
     202             :             @param  _bShow  when <TRUE/> the header and footer will be shown otherwise not
     203             :         */
     204             :         void groupChange( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup>& _xGroup
     205             :                          ,const ::rtl::OUString& _sPropName
     206             :                          ,sal_Int32 _nGroupPos
     207             :                          ,bool _bShow);
     208             : 
     209             :         void executeMethodWithUndo(sal_uInt16 _nUndoStrId,const ::std::mem_fun_t<void,ODesignView>& _pMemfun);
     210             :         void alignControlsWithUndo(sal_uInt16 _nUndoStrId,sal_Int32 _nControlModification,bool _bAlignAtSection = false);
     211             : 
     212             :         // open the help agent of report designer at start time
     213             :         void doOpenHelpAgent();
     214             : 
     215             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getXFrame();
     216             : 
     217             :         /** shrink a section
     218             :         @param _nUndoStrId the string id of the string which is shown in undo menu
     219             :         @param _nShrinkId  ID of what you would like to shrink.
     220             :         */
     221             :         void shrinkSectionBottom(::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > _xSection);
     222             :         void shrinkSectionTop(::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > _xSection);
     223             : 
     224             :     public:
     225             :         void shrinkSection(sal_uInt16 _nUndoStrId, ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > _xSection, sal_Int32 _nShrinkId);
     226             : 
     227             :         /** opens the file open dialog to allow the user to select a image which will be
     228             :         * bound to a newly created image button.
     229             :         */
     230             :         void insertGraphic();
     231             : 
     232             :         /** resets the floater
     233             :         */
     234             :         void updateFloater();
     235             : 
     236             :         /** creates a new function in the given value context
     237             :         *
     238             :         * \param _aValue contains a XNameContainer
     239             :         */
     240             :         void createNewFunction(const ::com::sun::star::uno::Any& _aValue);
     241             : 
     242             :         /** inserts a label - field pair into the current selected section
     243             :         *
     244             :         * \param aArgs
     245             :         */
     246             :         void addPairControls(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs);
     247             : 
     248             :         /** inserts a label - field combination to show the page number and/or page count
     249             :         *
     250             :         * \param _aArgs
     251             :         */
     252             :         void createPageNumber(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _aArgs);
     253             : 
     254             :         /** creates a formatted filed with TODAY() function and if set also an NOW() function
     255             :         *
     256             :         * \param _aArgs
     257             :         */
     258             :         void createDateTime(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _aArgs);
     259             : 
     260             :         /** gets the current section (SdrView)
     261             :         *
     262             :         * \return the currently selected section or <NULL/> if noone is selected
     263             :         */
     264             :         OSectionView* getCurrentSectionView() const;
     265             : 
     266             :         /**change the ZOrder of a current select object.
     267             :         *
     268             :         * \param _nId The command ID about what to do.
     269             :         */
     270             :         void changeZOrder(sal_Int32 _nId);
     271             : 
     272             :         /** marks the next or previous section, when the first/last section was already selected then the report will be selected.
     273             :         *
     274             :         * \param _bNext
     275             :         */
     276             :         void markSection(const bool _bNext);
     277             : 
     278             :         /** collapse or expand the currently selected section.
     279             :         *
     280             :         * \param _bCollapse collapse if sal_True otherwise expand
     281             :         */
     282             :         void collapseSection(const bool _bCollapse);
     283             : 
     284             :         /** fills the member that chart is enabled or not
     285             :         *
     286             :         */
     287             :         void checkChartEnabled();
     288             : 
     289             :         /** set the zoom factor at the design view
     290             :         */
     291             :         void impl_zoom_nothrow();
     292             : 
     293             :         virtual void impl_onModifyChanged();
     294             : 
     295             :         virtual void onLoadedMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager >& _xLayoutManager );
     296             :         virtual void impl_initialize( );
     297             :         bool isUiVisible() const;
     298             : 
     299             :         /** creates a new default control for the currently set type when the modifier KEY_MOD1 was pressed
     300             :         * \param _aArgs must contain a properyvalue with name "KeyModifier" and value KEY_MOD1 when control should be created.
     301             :         */
     302             :         void createDefaultControl(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& _aArgs);
     303             : 
     304             :         /** fills the state for the feture request.
     305             :             @param  _sProperty  the property which should be filled in the value
     306             :             @param  _rState     the state to fill
     307             :         */
     308             :         void impl_fillState_nothrow(const ::rtl::OUString& _sProperty,dbaui::FeatureState& _rState) const;
     309             :         void impl_fillCustomShapeState_nothrow(const char* _pCustomShapeType,dbaui::FeatureState& _rState) const;
     310             : 
     311             :         /** set the property at all selected controls.
     312             :             @return <TRUE/> when the selection is not empty
     313             :         */
     314             :         bool impl_setPropertyAtControls_throw(const sal_uInt16 _nUndoResId
     315             :             ,const ::rtl::OUString& _sProperty
     316             :             ,const ::com::sun::star::uno::Any& _aValue
     317             :             ,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _aArgs);
     318             : 
     319             :         void OnInvalidateClipboard();
     320             :         DECL_LINK( OnClipboardChanged, void* );
     321             :         DECL_LINK( OnExecuteReport, void* );
     322             :         DECL_LINK( OnOpenHelpAgent, void* );
     323             :         short saveModified();
     324             :         // all the features which should be handled by this class
     325             :         virtual void            describeSupportedFeatures();
     326             :         // state of a feature. 'feature' may be the handle of a ::com::sun::star::util::URL somebody requested a dispatch interface for OR a toolbar slot.
     327             :         virtual dbaui::FeatureState GetState(sal_uInt16 nId) const;
     328             :         // execute a feature
     329             :         virtual void Execute(sal_uInt16 nId, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs);
     330             : 
     331             :         virtual void getPropertyDefaultByHandle( sal_Int32 _nHandle, ::com::sun::star::uno::Any& _rDefault ) const;
     332             :         virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const ::com::sun::star::uno::Any& rValue) throw (::com::sun::star::uno::Exception);
     333             : 
     334             :     private:
     335             :         virtual ~OReportController();
     336             : 
     337             :     public:
     338             :         OReportController(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context);
     339             : 
     340             :         DECL_LINK( EventLstHdl, VclWindowEvent* );
     341             :         DECL_LINK( OnCreateHdl, OAddFieldWindow*);
     342             : 
     343             :         DECLARE_XINTERFACE( )
     344             :         DECLARE_XTYPEPROVIDER( )
     345             : 
     346             :         // SfxListener
     347             :         virtual void Notify(SfxBroadcaster & rBc, SfxHint const & rHint);
     348             : 
     349             :         /** returns <TRUE/> when the command is enbaled
     350             :             @param  _nCommand   the command id
     351             :             @param  _xControlFormat the report control format
     352             :         */
     353             :         sal_Bool                            isFormatCommandEnabled(sal_uInt16 _nCommand
     354             :                                                 ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportControlFormat>& _xControlFormat) const;
     355             : 
     356             :         virtual sal_Bool                    Construct(Window* pParent);
     357             :         // XEventListener
     358             :         virtual void SAL_CALL               disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
     359             : 
     360             :         // ::com::sun::star::frame::XController
     361             :         virtual sal_Bool SAL_CALL           suspend(sal_Bool bSuspend) throw( ::com::sun::star::uno::RuntimeException );
     362             : 
     363             :         // ::com::sun::star::lang::XComponent
     364             :         virtual void        SAL_CALL disposing();
     365             : 
     366             :         // XServiceInfo
     367             :         virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
     368             :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
     369             :         // need by registration
     370             :         static ::rtl::OUString getImplementationName_Static() throw( ::com::sun::star::uno::RuntimeException );
     371             :         static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
     372             :         static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
     373             :             create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
     374             : 
     375             :         // ::com::sun::star::container::XContainerListener
     376             :         virtual void SAL_CALL elementInserted(const ::com::sun::star::container::ContainerEvent& Event) throw( ::com::sun::star::uno::RuntimeException );
     377             :         virtual void SAL_CALL elementRemoved(const ::com::sun::star::container::ContainerEvent& Event) throw( ::com::sun::star::uno::RuntimeException );
     378             :         virtual void SAL_CALL elementReplaced(const ::com::sun::star::container::ContainerEvent& Event) throw( ::com::sun::star::uno::RuntimeException );
     379             : 
     380             :         // XPropertyChangeListener
     381             :         virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException);
     382             : 
     383             :         // XSelectionSupplier
     384             :         virtual ::sal_Bool SAL_CALL select( const ::com::sun::star::uno::Any& xSelection ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
     385             :         virtual ::com::sun::star::uno::Any SAL_CALL getSelection(  ) throw (::com::sun::star::uno::RuntimeException);
     386             :         virtual void SAL_CALL addSelectionChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     387             :         virtual void SAL_CALL removeSelectionChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     388             : 
     389             :         // ::com::sun::star::frame::XController
     390             :         virtual sal_Bool SAL_CALL attachModel(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xModel) throw( ::com::sun::star::uno::RuntimeException );
     391             :         virtual ::com::sun::star::uno::Any SAL_CALL getViewData(void) throw( ::com::sun::star::uno::RuntimeException );
     392             :         virtual void SAL_CALL restoreViewData(const ::com::sun::star::uno::Any& Data) throw( ::com::sun::star::uno::RuntimeException );
     393             : 
     394             :         /** gives access to the report definition
     395             :         * \return the report definition object, may be <NULL/>
     396             :         */
     397           0 :         inline ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition> getReportDefinition() const { return m_xReportDefinition; }
     398             : 
     399             :         // ::com::sun::star::frame::XController
     400             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >  SAL_CALL getModel(void) throw( ::com::sun::star::uno::RuntimeException );
     401             : 
     402             :         // XTitle
     403             :         virtual ::rtl::OUString SAL_CALL getTitle(  ) throw (::com::sun::star::uno::RuntimeException);
     404             : 
     405             :         // XModeSelector
     406             :         virtual void SAL_CALL setMode( const ::rtl::OUString& aMode ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException) ;
     407             :         virtual ::rtl::OUString SAL_CALL getMode(  ) throw (::com::sun::star::uno::RuntimeException) ;
     408             :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedModes(  ) throw (::com::sun::star::uno::RuntimeException) ;
     409             :         virtual ::sal_Bool SAL_CALL supportsMode( const ::rtl::OUString& aMode ) throw (::com::sun::star::uno::RuntimeException) ;
     410             : 
     411             :         // XVisualObject
     412             :         virtual void SAL_CALL setVisualAreaSize( ::sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
     413             :         virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( ::sal_Int64 nAspect ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
     414             :         virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
     415             :         virtual ::sal_Int32 SAL_CALL getMapUnit( ::sal_Int64 nAspect ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
     416             : 
     417             : 
     418             :         /** returns the current position of the splitter
     419             :         *
     420             :         * \return
     421             :         */
     422           0 :         inline sal_Int32    getSplitPos() const { return m_nSplitPos;}
     423           0 :         inline void         setSplitPos(sal_Int32 _nSplitPos)       { m_nSplitPos = _nSplitPos;}
     424             : 
     425             :         /** creates a new report from the report definition.
     426             :          *
     427             :          * \return The model or <NULL/> if the model could not be created.
     428             :          */
     429             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel> executeReport();
     430             : 
     431             :         /** returns the RowSet which reflects the current settings of the report definition
     432             : 
     433             :             The caller is allowed to hold a reference to the RowSet - it is kept alive as long
     434             :             as the controller lives, and it's settings will follow the report definition's settings.
     435             :         */
     436             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > getRowSet();
     437             : 
     438             :         /** returns the number formatter
     439             :         */
     440             :         ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >    getReportNumberFormatter() const;
     441             : 
     442             :         /** return the SdrModel of the real model
     443             :         *
     444             :         * \return
     445             :         */
     446             :         ::boost::shared_ptr<rptui::OReportModel> getSdrModel() const;
     447             : 
     448           0 :         inline ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >  getContext() const { return m_xContext; }
     449           0 :         inline sal_Int16   getZoomValue() const     { return m_nZoomValue; }
     450           0 :         inline void         resetZoomType()         { m_eZoomType = SVX_ZOOM_PERCENT; }
     451             : 
     452             :         // com::sun::star::beans::XPropertySet
     453           0 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException)
     454             :         {
     455           0 :             return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
     456             :         }
     457             :         // comphelper::OPropertyArrayUsageHelper
     458             :         virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
     459             : 
     460             :     // cppu::OPropertySetHelper
     461             :         virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
     462             : 
     463             :         ::boost::shared_ptr<OSectionWindow> getSectionWindow(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xSection) const;
     464             : 
     465             :         ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > getColumns() const;
     466             :         ::rtl::OUString getColumnLabel_throw(const ::rtl::OUString& i_sColumnName) const;
     467             : 
     468             :         SfxUndoManager& getUndoManager() const;
     469             :         void            clearUndoManager() const;
     470             :         void            addUndoAction( SfxUndoAction* i_pAction );
     471             :     };
     472             : }
     473             : #endif // RPTUI_REPORTCONTROLLER_HXX
     474             : 
     475             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10