1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: vbasystem.hxx,v $
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_OPTIONS_HXX
31 #define SW_VBA_OPTIONS_HXX
33 #include <ooo/vba/word/XOptions.hpp>
34 #include <vbahelper/vbahelperinterface.hxx>
35 #include <cppuhelper/implbase1.hxx>
36 #include <vbahelper/vbapropvalue.hxx>
37 #include <comphelper/processfactory.hxx>
39 typedef InheritedHelperInterfaceImpl1
< ooo::vba::word::XOptions
> SwVbaOptions_BASE
;
41 class SwVbaOptions
: public SwVbaOptions_BASE
,
45 rtl::OUString msDefaultFilePath
;
46 css::uno::Reference
< css::lang::XMultiServiceFactory
> mxFactory
;
48 SwVbaOptions( css::uno::Reference
< css::uno::XComponentContext
>& m_xContext
) throw ( css::uno::RuntimeException
);
49 virtual ~SwVbaOptions();
52 virtual ::sal_Int32 SAL_CALL
getDefaultBorderLineStyle() throw (css::uno::RuntimeException
);
53 virtual void SAL_CALL
setDefaultBorderLineStyle( ::sal_Int32 _defaultborderlinestyle
) throw (css::uno::RuntimeException
);
54 virtual ::sal_Int32 SAL_CALL
getDefaultBorderLineWidth() throw (css::uno::RuntimeException
);
55 virtual void SAL_CALL
setDefaultBorderLineWidth( ::sal_Int32 _defaultborderlinewidth
) throw (css::uno::RuntimeException
);
56 virtual ::sal_Int32 SAL_CALL
getDefaultBorderColorIndex() throw (css::uno::RuntimeException
);
57 virtual void SAL_CALL
setDefaultBorderColorIndex( ::sal_Int32 _defaultbordercolorindex
) throw (css::uno::RuntimeException
);
58 virtual ::sal_Bool SAL_CALL
getReplaceSelection() throw (css::uno::RuntimeException
);
59 virtual void SAL_CALL
setReplaceSelection( ::sal_Bool _replaceselection
) throw (css::uno::RuntimeException
);
60 virtual ::sal_Bool SAL_CALL
getMapPaperSize() throw (css::uno::RuntimeException
);
61 virtual void SAL_CALL
setMapPaperSize( ::sal_Bool _mappapersize
) throw (css::uno::RuntimeException
);
62 virtual ::sal_Bool SAL_CALL
getAutoFormatAsYouTypeApplyHeadings() throw (css::uno::RuntimeException
);
63 virtual void SAL_CALL
setAutoFormatAsYouTypeApplyHeadings( ::sal_Bool _autoformatasyoutypeapplyheadings
) throw (css::uno::RuntimeException
);
64 virtual ::sal_Bool SAL_CALL
getAutoFormatAsYouTypeApplyBulletedLists() throw (css::uno::RuntimeException
);
65 virtual void SAL_CALL
setAutoFormatAsYouTypeApplyBulletedLists( ::sal_Bool _autoformatasyoutypeapplybulletedlists
) throw (css::uno::RuntimeException
);
66 virtual ::sal_Bool SAL_CALL
getAutoFormatAsYouTypeApplyNumberedLists() throw (css::uno::RuntimeException
);
67 virtual void SAL_CALL
setAutoFormatAsYouTypeApplyNumberedLists( ::sal_Bool _autoformatasyoutypeapplynumberedlists
) throw (css::uno::RuntimeException
);
68 virtual ::sal_Bool SAL_CALL
getAutoFormatAsYouTypeFormatListItemBeginning() throw (css::uno::RuntimeException
);
69 virtual void SAL_CALL
setAutoFormatAsYouTypeFormatListItemBeginning( ::sal_Bool _autoformatasyoutypeformatlistitembeginning
) throw (css::uno::RuntimeException
);
70 virtual ::sal_Bool SAL_CALL
getAutoFormatAsYouTypeDefineStyles() throw (css::uno::RuntimeException
);
71 virtual void SAL_CALL
setAutoFormatAsYouTypeDefineStyles( ::sal_Bool _autoformatasyoutypedefinestyles
) throw (css::uno::RuntimeException
);
72 virtual ::sal_Bool SAL_CALL
getAutoFormatApplyHeadings() throw (css::uno::RuntimeException
);
73 virtual void SAL_CALL
setAutoFormatApplyHeadings( ::sal_Bool _autoformatapplyheadings
) throw (css::uno::RuntimeException
);
74 virtual ::sal_Bool SAL_CALL
getAutoFormatApplyLists() throw (css::uno::RuntimeException
);
75 virtual void SAL_CALL
setAutoFormatApplyLists( ::sal_Bool _autoformatapplylists
) throw (css::uno::RuntimeException
);
76 virtual ::sal_Bool SAL_CALL
getAutoFormatApplyBulletedLists() throw (css::uno::RuntimeException
);
77 virtual void SAL_CALL
setAutoFormatApplyBulletedLists( ::sal_Bool _autoformatapplybulletedlists
) throw (css::uno::RuntimeException
);
80 virtual css::uno::Any SAL_CALL
DefaultFilePath( sal_Int32 _path
) throw ( css::uno::RuntimeException
);
83 virtual void setValueEvent( const css::uno::Any
& value
);
84 virtual css::uno::Any
getValueEvent();
87 virtual rtl::OUString
& getServiceImplName();
88 virtual css::uno::Sequence
<rtl::OUString
> getServiceNames();
90 #endif /* SW_VBA_OPTIONS_HXX */