xref: /aoo4110/main/sw/source/ui/vba/vbatable.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #ifndef SW_VBA_TABLE_HXX
23 #define SW_VBA_TABLE_HXX
24 #include <vbahelper/vbahelperinterface.hxx>
25 #include <com/sun/star/text/XTextDocument.hpp>
26 #include <com/sun/star/text/XTextTable.hpp>
27 #include <ooo/vba/word/XRange.hpp>
28 #include <ooo/vba/word/XTable.hpp>
29 
30 typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XTable > SwVbaTable_BASE;
31 
32 class SwVbaTable : public SwVbaTable_BASE
33 {
34     css::uno::Reference< css::text::XTextDocument > mxTextDocument;
35     css::uno::Reference< css::text::XTextTable > mxTextTable;
36 public:
37     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);
getDocument()38     css::uno::Reference< css::text::XTextDocument > getDocument() { return mxTextDocument; };
39     virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL Range(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
40     virtual void SAL_CALL Select(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
41     virtual void SAL_CALL Delete(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
42     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);
43     virtual rtl::OUString SAL_CALL getName( ) throw (css::uno::RuntimeException);
44     virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
45     // XHelperInterface
46     virtual rtl::OUString& getServiceImplName();
47     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
48 };
49 #endif
50