LibreOffice Module sw (master) 1
|
#include <docufld.hxx>
Public Member Functions | |
SwMacroField (SwMacroFieldType *, OUString aLibAndName, OUString aText) | |
Direct input, delete old value. More... | |
const OUString & | GetMacro () const |
OUString | GetLibName () const |
OUString | GetMacroName () const |
SvxMacro | GetSvxMacro () const |
virtual OUString | GetFieldName () const override |
get name or content More... | |
virtual OUString | GetPar1 () const override |
Library and FileName. More... | |
virtual void | SetPar1 (const OUString &rStr) override |
LibName and MacroName. More... | |
virtual OUString | GetPar2 () const override |
Macrotext. More... | |
virtual void | SetPar2 (const OUString &rStr) override |
set macro text More... | |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override |
Public Member Functions inherited from SwField | |
virtual | ~SwField () |
SwField (SwField const &)=default | |
SwField (SwField &&)=default | |
SwField & | operator= (SwField const &)=default |
SwField & | operator= (SwField &&)=default |
SwFieldType * | GetTyp () const |
virtual SwFieldType * | ChgTyp (SwFieldType *) |
Set new type (used for copying among documents). More... | |
OUString | ExpandField (bool bCached, SwRootFrame const *pLayout) const |
expand the field. More... | |
virtual OUString | GetFieldName () const |
get name or content More... | |
std::unique_ptr< SwField > | CopyField () const |
SwFieldIds | Which () const |
ResId. More... | |
SwFieldTypesEnum | GetTypeId () const |
virtual sal_uInt16 | GetSubType () const |
virtual void | SetSubType (sal_uInt16) |
LanguageType | GetLanguage () const |
Language at field position. More... | |
virtual void | SetLanguage (LanguageType nLng) |
sal_uInt32 | GetFormat () const |
Query parameters for dialog and for BASIC. More... | |
virtual OUString | GetPar1 () const |
virtual OUString | GetPar2 () const |
virtual OUString | GetFormula () const |
void | ChangeFormat (sal_uInt32 n) |
virtual void | SetPar1 (const OUString &rStr) |
virtual void | SetPar2 (const OUString &rStr) |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId) |
bool | HasClickHdl () const |
Does the field possess an action on its ClickHandler? (e.g. INetFields, ...). More... | |
bool | IsFixed () const |
bool | IsAutomaticLanguage () const |
void | SetAutomaticLanguage (bool const bSet) |
virtual OUString | GetDescription () const |
bool | IsClickable () const |
Is this field clickable? More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
const OUString & | GetTitle () const |
void | SetTitle (const OUString &rTitle) |
Static Public Member Functions | |
static void | CreateMacroString (OUString &rMacro, std::u16string_view rMacroName, const OUString &rLibraryName) |
create an internally used macro name from the library and macro name parts More... | |
static bool | isScriptURL (const OUString &str) |
Private Member Functions | |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
virtual std::unique_ptr< SwField > | Copy () const override |
Private Attributes | |
OUString | m_aMacro |
OUString | m_aText |
bool | m_bIsScriptURL |
Additional Inherited Members | |
Protected Member Functions inherited from SwField | |
void | SetFormat (sal_uInt32 const nSet) |
SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true) | |
Definition at line 395 of file docufld.hxx.
SwMacroField::SwMacroField | ( | SwMacroFieldType * | pInitType, |
OUString | aLibAndName, | ||
OUString | aText | ||
) |
Direct input, delete old value.
Definition at line 42 of file macrofld.cxx.
References isScriptURL(), m_aMacro, and m_bIsScriptURL.
|
overrideprivatevirtual |
Implements SwField.
Definition at line 54 of file macrofld.cxx.
References SwField::GetTyp(), m_aMacro, and m_aText.
|
static |
create an internally used macro name from the library and macro name parts
Definition at line 196 of file macrofld.cxx.
Referenced by SwXTextField::attach(), and PutValue().
|
overrideprivatevirtual |
|
overridevirtual |
get name or content
Reimplemented from SwField.
Definition at line 59 of file macrofld.cxx.
References SwFieldType::GetName(), SwField::GetTyp(), and m_aMacro.
OUString SwMacroField::GetLibName | ( | ) | const |
Definition at line 64 of file macrofld.cxx.
References i, m_aMacro, m_bIsScriptURL, and nPos.
Referenced by GetSvxMacro(), PutValue(), and QueryValue().
|
inline |
Definition at line 409 of file docufld.hxx.
OUString SwMacroField::GetMacroName | ( | ) | const |
Definition at line 86 of file macrofld.cxx.
References i, m_aMacro, m_bIsScriptURL, and nPos.
Referenced by GetSvxMacro(), PutValue(), and QueryValue().
|
overridevirtual |
Library and FileName.
Get macro.
Reimplemented from SwField.
Definition at line 129 of file macrofld.cxx.
References m_aMacro.
|
overridevirtual |
Macrotext.
get macro text
Reimplemented from SwField.
Definition at line 141 of file macrofld.cxx.
References m_aText.
SvxMacro SwMacroField::GetSvxMacro | ( | ) | const |
Definition at line 109 of file macrofld.cxx.
References EXTENDED_STYPE, GetLibName(), GetMacroName(), m_aMacro, m_bIsScriptURL, and STARBASIC.
Referenced by SwWrtShell::ClickToField().
|
static |
Definition at line 208 of file macrofld.cxx.
References xFactory.
Referenced by PutValue(), SetPar1(), and SwMacroField().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 168 of file macrofld.cxx.
References CreateMacroString(), FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, GetLibName(), GetMacroName(), isScriptURL(), m_aMacro, m_aText, and m_bIsScriptURL.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 146 of file macrofld.cxx.
References FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, GetLibName(), GetMacroName(), m_aText, and m_bIsScriptURL.
|
overridevirtual |
LibName and MacroName.
Reimplemented from SwField.
Definition at line 122 of file macrofld.cxx.
References isScriptURL(), m_aMacro, and m_bIsScriptURL.
|
overridevirtual |
set macro text
Reimplemented from SwField.
Definition at line 135 of file macrofld.cxx.
References m_aText.
|
private |
Definition at line 397 of file docufld.hxx.
Referenced by Copy(), GetFieldName(), GetLibName(), GetMacroName(), GetPar1(), GetSvxMacro(), PutValue(), SetPar1(), and SwMacroField().
|
private |
Definition at line 398 of file docufld.hxx.
Referenced by Copy(), ExpandImpl(), GetPar2(), PutValue(), QueryValue(), and SetPar2().
|
private |
Definition at line 399 of file docufld.hxx.
Referenced by GetLibName(), GetMacroName(), GetSvxMacro(), PutValue(), QueryValue(), SetPar1(), and SwMacroField().