merge the formfield patch from ooo-build
[ooovba.git] / sw / source / ui / vba / vbatables.hxx
blob79df2f90b7ac97c5e00edfa1fd95cd3ac4409656
1 #ifndef SW_VBA_TABLES_HXX
2 #define SW_VBA_TABLES_HXX
4 #include <ooo/vba/word/XTables.hpp>
5 #include <vbahelper/vbacollectionimpl.hxx>
8 typedef CollTestImplHelper< ov::word::XTables > SwVbaTables_BASE;
10 class SwVbaTables : public SwVbaTables_BASE
12 css::uno::Reference< css::frame::XModel > mxDocument;
13 public:
14 SwVbaTables( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xDocument );
15 // XTables
16 virtual css::uno::Reference< ov::word::XTable > SAL_CALL Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range, const css::uno::Any& NumRows, const css::uno::Any& NumColumns, const css::uno::Any& DefaultTableBehavior, const css::uno::Any& AutoFitBehavior ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
17 // XEnumerationAccess
18 virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
19 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException);
20 // ScVbaCollectionBaseImpl
21 virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource );
23 // XHelperInterface
24 virtual rtl::OUString& getServiceImplName();
25 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
28 #endif