LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/offapi/com/sun/star/document - XUndoManager.hdl (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 2 50.0 %
Date: 2012-12-27 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_DOCUMENT_XUNDOMANAGER_HDL
       2             : #define INCLUDED_COM_SUN_STAR_DOCUMENT_XUNDOMANAGER_HDL
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/uno/RuntimeException.hdl"
       7             : #include "com/sun/star/document/UndoFailedException.hdl"
       8             : #include "com/sun/star/document/UndoContextNotClosedException.hdl"
       9             : #include "com/sun/star/lang/IllegalArgumentException.hdl"
      10             : namespace com { namespace sun { namespace star { namespace document { class XUndoAction; } } } }
      11             : namespace com { namespace sun { namespace star { namespace document { class XUndoManagerListener; } } } }
      12             : #include "com/sun/star/document/EmptyUndoStackException.hdl"
      13             : #include "com/sun/star/container/XChild.hdl"
      14             : #include "com/sun/star/util/XLockable.hdl"
      15             : #include "com/sun/star/util/InvalidStateException.hdl"
      16             : #include "com/sun/star/uno/Reference.h"
      17             : #include "com/sun/star/uno/Sequence.h"
      18             : #include "cppu/macros.hxx"
      19             : #include "rtl/ustring.hxx"
      20             : #include "sal/types.h"
      21             : 
      22             : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
      23             : 
      24             : namespace com { namespace sun { namespace star { namespace document {
      25             : 
      26           1 : class SAL_NO_VTABLE XUndoManager : public css::util::XLockable, public css::container::XChild
      27             : {
      28             : public:
      29             : 
      30             :     // Methods
      31             :     virtual void SAL_CALL enterUndoContext( const ::rtl::OUString& i_title ) = 0;
      32             :     virtual void SAL_CALL enterHiddenUndoContext() = 0;
      33             :     virtual void SAL_CALL leaveUndoContext() = 0;
      34             :     virtual void SAL_CALL addUndoAction( const ::com::sun::star::uno::Reference< css::document::XUndoAction >& i_action ) = 0;
      35             :     virtual void SAL_CALL undo() = 0;
      36             :     virtual void SAL_CALL redo() = 0;
      37             :     virtual ::sal_Bool SAL_CALL isUndoPossible() = 0;
      38             :     virtual ::sal_Bool SAL_CALL isRedoPossible() = 0;
      39             :     virtual ::rtl::OUString SAL_CALL getCurrentUndoActionTitle() = 0;
      40             :     virtual ::rtl::OUString SAL_CALL getCurrentRedoActionTitle() = 0;
      41             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAllUndoActionTitles() = 0;
      42             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAllRedoActionTitles() = 0;
      43             :     virtual void SAL_CALL clear() = 0;
      44             :     virtual void SAL_CALL clearRedo() = 0;
      45             :     virtual void SAL_CALL reset() = 0;
      46             :     virtual void SAL_CALL addUndoManagerListener( const ::com::sun::star::uno::Reference< css::document::XUndoManagerListener >& i_listener ) = 0;
      47             :     virtual void SAL_CALL removeUndoManagerListener( const ::com::sun::star::uno::Reference< css::document::XUndoManagerListener >& i_listener ) = 0;
      48             : 
      49             :     static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
      50             : 
      51             : protected:
      52           0 :     ~XUndoManager() throw () {} // avoid warnings about virtual members and non-virtual dtor
      53             : };
      54             : 
      55             : 
      56             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::document::XUndoManager const *);
      57             : } } } }
      58             : 
      59             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::document::XUndoManager > *) SAL_THROW(());
      60             : 
      61             : #endif

Generated by: LCOV version 1.10