merge the formfield patch from ooo-build
[ooovba.git] / sw / source / ui / vba / vbadocuments.hxx
blobe27a3c605916abefbc9aa907bb8643b65905c507
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile:
10 * $Revision:
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SW_VBA_DOCUMENTS_HXX
31 #define SW_VBA_DOCUMENTS_HXX
34 #include <vbahelper/vbacollectionimpl.hxx>
35 #include <ooo/vba/word/XDocuments.hpp>
36 #include <com/sun/star/container/XEnumerationAccess.hpp>
37 #include <vbahelper/vbadocumentsbase.hxx>
38 #include "wordvbahelper.hxx"
41 typedef cppu::ImplInheritanceHelper1< VbaDocumentsBase, ov::word::XDocuments > SwVbaDocuments_BASE;
43 class SwVbaDocuments : public SwVbaDocuments_BASE
45 public:
46 SwVbaDocuments( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext );
47 virtual ~SwVbaDocuments() {}
49 // XEnumerationAccess
50 virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
51 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException);
53 // SwVbaDocuments_BASE
54 virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource );
55 virtual rtl::OUString& getServiceImplName();
56 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
58 // Methods
59 virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Template, const css::uno::Any& NewTemplate, const css::uno::Any& DocumentType, const css::uno::Any& Visible ) throw (css::uno::RuntimeException);
60 virtual css::uno::Any SAL_CALL Open( const ::rtl::OUString& Filename, const css::uno::Any& ConfirmConversions, const css::uno::Any& ReadOnly, const css::uno::Any& AddToRecentFiles, const css::uno::Any& PasswordDocument, const css::uno::Any& PasswordTemplate, const css::uno::Any& Revert, const css::uno::Any& WritePasswordDocument, const css::uno::Any& WritePasswordTemplate, const css::uno::Any& Format, const css::uno::Any& Encoding, const css::uno::Any& Visible, const css::uno::Any& OpenAndRepair, const css::uno::Any& DocumentDirection, const css::uno::Any& NoEncodingDialog, const css::uno::Any& XMLTransform ) throw (css::uno::RuntimeException);
61 virtual void SAL_CALL Close( const css::uno::Any& SaveChanges, const css::uno::Any& OriginalFormat, const css::uno::Any& RouteDocument ) throw (css::uno::RuntimeException);
65 #endif /* SW_VBA_DOCUMENTS_HXX */