21#include <ooo/vba/word/WdDefaultFilePath.hpp>
22#include <ooo/vba/word/WdLineStyle.hpp>
23#include <ooo/vba/word/WdLineWidth.hpp>
24#include <ooo/vba/word/WdColorIndex.hpp>
25#include <com/sun/star/util/thePathSettings.hpp>
28#include <osl/file.hxx>
46 case word::WdDefaultFilePath::wdDocumentsPath:
51 case word::WdDefaultFilePath::wdPicturesPath:
56 case word::WdDefaultFilePath::wdUserTemplatesPath:
57 case word::WdDefaultFilePath::wdWorkgroupTemplatesPath:
62 case word::WdDefaultFilePath::wdStartupPath:
67 case word::WdDefaultFilePath::wdUserOptionsPath:
72 case word::WdDefaultFilePath::wdToolsPath:
73 case word::WdDefaultFilePath::wdProgramPath:
78 case word::WdDefaultFilePath::wdTempFilePath:
97 ::osl::File::getFileURLFromSystemPath( sNewPath, sNewPathUrl );
103 sal_Int32
nIndex = sOldPathUrl.lastIndexOf(
';' );
106 sNewPathUrl = sOldPathUrl.subView( 0,
nIndex + 1 ) + sNewPathUrl;
118 sal_Int32
nIndex = sPathUrl.lastIndexOf(
';' );
121 sPathUrl = sPathUrl.copy(
nIndex + 1 );
124 ::osl::File::getSystemPathFromFileURL( sPathUrl, sPath );
130 return word::WdLineStyle::wdLineStyleSingle;
140 return word::WdLineWidth::wdLineWidth050pt;
150 return word::WdColorIndex::wdAuto;
261 return "SwVbaOptions";
264uno::Sequence< OUString >
269 "ooo.vba.word.Options"
virtual sal_Bool SAL_CALL getReplaceSelection() override
OUString msDefaultFilePath
virtual sal_Bool SAL_CALL getAutoFormatAsYouTypeDefineStyles() override
virtual void setValueEvent(const css::uno::Any &value) override
virtual void SAL_CALL setAutoFormatAsYouTypeDefineStyles(sal_Bool _autoformatasyoutypedefinestyles) override
virtual void SAL_CALL setDefaultBorderColorIndex(::sal_Int32 _defaultbordercolorindex) override
virtual void SAL_CALL setAutoFormatApplyBulletedLists(sal_Bool _autoformatapplybulletedlists) override
virtual OUString getServiceImplName() override
virtual ::sal_Int32 SAL_CALL getDefaultBorderLineStyle() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual sal_Bool SAL_CALL getMapPaperSize() override
SwVbaOptions(css::uno::Reference< css::uno::XComponentContext > const &m_xContext)
virtual sal_Bool SAL_CALL getAutoFormatAsYouTypeApplyHeadings() override
virtual void SAL_CALL setAutoFormatAsYouTypeFormatListItemBeginning(sal_Bool _autoformatasyoutypeformatlistitembeginning) override
virtual void SAL_CALL setAutoFormatApplyHeadings(sal_Bool _autoformatapplyheadings) override
virtual void SAL_CALL setAutoFormatAsYouTypeApplyNumberedLists(sal_Bool _autoformatasyoutypeapplynumberedlists) override
virtual void SAL_CALL setMapPaperSize(sal_Bool _mappapersize) override
virtual void SAL_CALL setDefaultBorderLineStyle(::sal_Int32 _defaultborderlinestyle) override
virtual sal_Bool SAL_CALL getAutoFormatApplyBulletedLists() override
virtual css::uno::Any getValueEvent() override
virtual ~SwVbaOptions() override
virtual css::uno::Any SAL_CALL DefaultFilePath(sal_Int32 _path) override
virtual void SAL_CALL setAutoFormatAsYouTypeApplyHeadings(sal_Bool _autoformatasyoutypeapplyheadings) override
virtual sal_Bool SAL_CALL getAutoFormatApplyHeadings() override
virtual ::sal_Int32 SAL_CALL getDefaultBorderColorIndex() override
virtual void SAL_CALL setReplaceSelection(sal_Bool _replaceselection) override
virtual ::sal_Int32 SAL_CALL getDefaultBorderLineWidth() override
virtual sal_Bool SAL_CALL getAutoFormatApplyLists() override
virtual sal_Bool SAL_CALL getAutoFormatAsYouTypeApplyBulletedLists() override
virtual void SAL_CALL setAutoFormatAsYouTypeApplyBulletedLists(sal_Bool _autoformatasyoutypeapplybulletedlists) override
virtual void SAL_CALL setAutoFormatApplyLists(sal_Bool _autoformatapplylists) override
virtual void SAL_CALL setDefaultBorderLineWidth(::sal_Int32 _defaultborderlinewidth) override
virtual sal_Bool SAL_CALL getAutoFormatAsYouTypeApplyNumberedLists() override
virtual sal_Bool SAL_CALL getAutoFormatAsYouTypeFormatListItemBeginning() override
Sequence< OUString > aServiceNames
Reference< XComponentContext > getProcessComponentContext()
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
#define ERRCODE_BASIC_NOT_IMPLEMENTED