23#include <ooo/vba/word/WdWrapSideType.hpp>
24#include <ooo/vba/word/WdWrapType.hpp>
25#include <com/sun/star/beans/XPropertySet.hpp>
26#include <com/sun/star/text/WrapTextMode.hpp>
40 text::WrapTextMode eTextMode = text::WrapTextMode_NONE;
41 if(
mnSide == word::WdWrapSideType::wdWrapLeft )
43 eTextMode = text::WrapTextMode_LEFT;
45 else if(
mnSide == word::WdWrapSideType::wdWrapRight )
47 eTextMode = text::WrapTextMode_RIGHT;
49 else if(
mnSide == word::WdWrapSideType::wdWrapBoth ||
50 mnSide == word::WdWrapSideType::wdWrapLargest )
54 case word::WdWrapType::wdWrapNone:
55 case word::WdWrapType::wdWrapThrough:
57 eTextMode = text::WrapTextMode_THROUGH;
60 case word::WdWrapType::wdWrapInline:
61 case word::WdWrapType::wdWrapTopBottom:
63 eTextMode = text::WrapTextMode_NONE;
66 case word::WdWrapType::wdWrapSquare:
68 eTextMode = text::WrapTextMode_PARALLEL;
72 case word::WdWrapType::wdWrapTight:
74 eTextMode = text::WrapTextMode_PARALLEL;
89 sal_Int32
nType = word::WdWrapType::wdWrapSquare;
90 text::WrapTextMode eTextMode;
94 case text::WrapTextMode_NONE:
96 nType = word::WdWrapType::wdWrapTopBottom;
99 case text::WrapTextMode_THROUGH:
101 nType = word::WdWrapType::wdWrapNone;
104 case text::WrapTextMode_PARALLEL:
106 bool bContour =
false;
109 nType = word::WdWrapType::wdWrapTight;
111 nType = word::WdWrapType::wdWrapSquare;
114 case text::WrapTextMode_DYNAMIC:
115 case text::WrapTextMode_LEFT:
116 case text::WrapTextMode_RIGHT:
118 nType = word::WdWrapType::wdWrapThrough;
123 nType = word::WdWrapType::wdWrapSquare;
137 sal_Int32 nSide = word::WdWrapSideType::wdWrapBoth;
138 text::WrapTextMode eTextMode;
142 case text::WrapTextMode_LEFT:
144 nSide = word::WdWrapSideType::wdWrapLeft;
147 case text::WrapTextMode_RIGHT:
149 nSide = word::WdWrapSideType::wdWrapRight;
154 nSide = word::WdWrapSideType::wdWrapBoth;
168 sal_Int32 nDistance = 0;
170 return static_cast< float >( Millimeter::getInPoints( nDistance ) );
175 sal_Int32 nDistance = Millimeter::getInHundredthsOfOneMillimeter( _distance );
222 return "SwVbaWrapFormat";
225uno::Sequence< OUString >
230 "ooo.vba.word.WrapFormat"
235extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
237 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& args)
Sequence< OUString > aServiceNames
css::uno::Reference< T > getXSomethingFromArgs(css::uno::Sequence< css::uno::Any > const &args, sal_Int32 nPos, bool bCanBeNull=true)
#define ERRCODE_BASIC_BAD_ARGUMENT