10#include <ooo/vba/word/WdFieldType.hpp>
35 const uno::Reference<uno::XComponentContext>& rContext,
36 const uno::Reference<text::XTextDocument>& xTextDocument,
37 sw::mark::IFieldmark& rFormField)
39 , m_xTextDocument(xTextDocument)
40 , m_rFormField(rFormField)
48 return uno::Any(uno::Reference<word::XCheckBox>(
54 return uno::Any(uno::Reference<word::XDropDown>(
60 return uno::Any(uno::Reference<word::XTextInput>(
88 return uno::Any(uno::Reference<word::XFormField>(
116 return uno::Any(uno::Reference<word::XFormField>(
122 uno::Reference<word::XRange> xRet;
141 return ooo::vba::word::WdFieldType::wdFieldFormCheckBox;
143 return ooo::vba::word::WdFieldType::wdFieldFormTextInput;
144 return ooo::vba::word::WdFieldType::wdFieldFormDropDown;
149 SAL_INFO(
"sw.vba",
"SwVbaFormField::getCalculateOnExit stub");
155 SAL_INFO(
"sw.vba",
"SwVbaFormField::setCalculateOnExit stub");
160 SAL_INFO(
"sw.vba",
"SwVbaFormField::getEnabled stub");
166 SAL_INFO(
"sw.vba",
"SwVbaFormField::setEnabled stub");
172 (*
m_rFormField.GetParameters())[
"EntryMacro"] >>= sMacro;
184 (*
m_rFormField.GetParameters())[
"ExitMacro"] >>= sMacro;
199 SAL_INFO(
"sw.vba",
"SwVbaFormField::getOwnHelp stub");
205 SAL_INFO(
"sw.vba",
"SwVbaFormField::setOwnHelp stub");
212 SAL_INFO(
"sw.vba",
"SwVbaFormField::setName[" <<
rSet <<
"] stub");
227 SAL_INFO(
"sw.vba",
"SwVbaFormField::getStatusText stub");
233 SAL_INFO(
"sw.vba",
"SwVbaFormField::setStatusText[" <<
rSet <<
"] stub");
238 SAL_INFO(
"sw.vba",
"SwVbaFormField::getOwnStatus stub");
244 SAL_INFO(
"sw.vba",
"SwVbaFormField::setOwnStatus stub");
251 static uno::Sequence<OUString>
const aServiceNames{
"ooo.vba.word.FormField" };
Provides access to the marks of a document.
virtual sw::mark::IFieldmark * getFieldmarkBefore(const SwPosition &pos, bool bLoop) const =0
virtual sw::mark::IFieldmark * getFieldmarkAfter(const SwPosition &pos, bool bLoop) const =0
static SW_DLLPUBLIC MarkType GetType(const ::sw::mark::IMark &rMark)
Returns the MarkType used to create the mark.
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
SwDoc * GetDoc()
returns Doc. But be careful!
IDocumentMarkAccess * getIDocumentMarkAccess()
Sequence< OUString > aServiceNames
#define SAL_INFO(area, stream)
SwDocShell * getDocShell(const uno::Reference< frame::XModel > &xModel)