1*cdf0e10cSrcweir #ifndef SW_VBA_TABLE_HXX 2*cdf0e10cSrcweir #define SW_VBA_TABLE_HXX 3*cdf0e10cSrcweir #include <vbahelper/vbahelperinterface.hxx> 4*cdf0e10cSrcweir #include <com/sun/star/text/XTextDocument.hpp> 5*cdf0e10cSrcweir #include <com/sun/star/text/XTextTable.hpp> 6*cdf0e10cSrcweir #include <ooo/vba/word/XRange.hpp> 7*cdf0e10cSrcweir #include <ooo/vba/word/XTable.hpp> 8*cdf0e10cSrcweir 9*cdf0e10cSrcweir typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XTable > SwVbaTable_BASE; 10*cdf0e10cSrcweir 11*cdf0e10cSrcweir class SwVbaTable : public SwVbaTable_BASE 12*cdf0e10cSrcweir { 13*cdf0e10cSrcweir css::uno::Reference< css::text::XTextDocument > mxTextDocument; 14*cdf0e10cSrcweir css::uno::Reference< css::text::XTextTable > mxTextTable; 15*cdf0e10cSrcweir public: 16*cdf0e10cSrcweir SwVbaTable( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& rDocument, const css::uno::Reference< css::text::XTextTable >& xTextTable) throw ( css::uno::RuntimeException); 17*cdf0e10cSrcweir css::uno::Reference< css::text::XTextDocument > getDocument() { return mxTextDocument; }; 18*cdf0e10cSrcweir virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL Range( ) throw (css::script::BasicErrorException, css::uno::RuntimeException); 19*cdf0e10cSrcweir virtual void SAL_CALL Select( ) throw (css::script::BasicErrorException, css::uno::RuntimeException); 20*cdf0e10cSrcweir virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException); 21*cdf0e10cSrcweir virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL ConvertToText( const css::uno::Any& Separator, const css::uno::Any& NestedTables ) throw (css::script::BasicErrorException, css::uno::RuntimeException); 22*cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getName( ) throw (css::uno::RuntimeException); 23*cdf0e10cSrcweir virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException); 24*cdf0e10cSrcweir // XHelperInterface 25*cdf0e10cSrcweir virtual rtl::OUString& getServiceImplName(); 26*cdf0e10cSrcweir virtual css::uno::Sequence<rtl::OUString> getServiceNames(); 27*cdf0e10cSrcweir }; 28*cdf0e10cSrcweir #endif 29