LibreOffice Module sw (master) 1
|
#include <expfld.hxx>
Public Member Functions | |
SwInputField (SwInputFieldType *pFieldType, OUString aContent, OUString aPrompt, sal_uInt16 nSubType, sal_uLong nFormat=0, bool bIsFormField=true) | |
Direct input via dialog; delete old value. More... | |
virtual | ~SwInputField () override |
void | SetFormatField (SwFormatField &rFormatField) |
SwFormatField * | GetFormatField () |
void | applyFieldContent (const OUString &rNewFieldContent) |
bool | isFormField () const |
const css::uno::Sequence< css::beans::PropertyValue > & | getGrabBagParams () const |
virtual OUString | GetFieldName () const override |
get name or content More... | |
virtual OUString | GetPar1 () const override |
Content. More... | |
virtual void | SetPar1 (const OUString &rStr) override |
set condition More... | |
virtual OUString | GetPar2 () const override |
aPromptText More... | |
virtual void | SetPar2 (const OUString &rStr) override |
const OUString & | GetHelp () const |
void | SetHelp (const OUString &rStr) |
const OUString & | GetToolTip () const |
void | SetToolTip (const OUString &rStr) |
virtual sal_uInt16 | GetSubType () const override |
virtual void | SetSubType (sal_uInt16 nSub) override |
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) |
Private Member Functions | |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
virtual std::unique_ptr< SwField > | Copy () const override |
const OUString & | getContent () const |
Private Attributes | |
OUString | maContent |
OUString | maPText |
OUString | maHelp |
OUString | maToolTip |
sal_uInt16 | mnSubType |
bool | mbIsFormField |
css::uno::Sequence< css::beans::PropertyValue > | maGrabBag |
SwFormatField * | mpFormatField |
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 286 of file expfld.hxx.
SwInputField::SwInputField | ( | SwInputFieldType * | pFieldType, |
OUString | aContent, | ||
OUString | aPrompt, | ||
sal_uInt16 | nSubType, | ||
sal_uLong | nFormat = 0 , |
||
bool | bIsFormField = true |
||
) |
Direct input via dialog; delete old value.
Definition at line 1211 of file expfld.cxx.
References LANGUAGE_SYSTEM.
Referenced by Copy().
|
overridevirtual |
Definition at line 1226 of file expfld.cxx.
void SwInputField::applyFieldContent | ( | const OUString & | rNewFieldContent | ) |
Definition at line 1236 of file expfld.cxx.
References getContent(), GetFormatField(), SwFormatField::GetTextField(), SwField::GetTyp(), INP_TXT, INP_USR, SwTextInputField::LockNotifyContentChange(), maContent, mnSubType, SwUserFieldType::SetContent(), SwTextInputField::UnlockNotifyContentChange(), SwFieldType::UpdateFields(), and User.
|
overrideprivatevirtual |
Implements SwField.
Definition at line 1288 of file expfld.cxx.
References getContent(), SwField::GetFormat(), GetSubType(), SwField::GetTyp(), SwField::IsAutomaticLanguage(), maGrabBag, maHelp, maPText, maToolTip, mbIsFormField, and SwInputField().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 1307 of file expfld.cxx.
References getContent(), SwUserFieldType::GetContent(), SwField::GetTyp(), INP_TXT, INP_USR, mnSubType, and User.
|
inlineprivate |
Definition at line 302 of file expfld.hxx.
Referenced by applyFieldContent(), Copy(), ExpandImpl(), GetFieldName(), GetPar1(), and QueryValue().
|
overridevirtual |
get name or content
Reimplemented from SwField.
Definition at line 1278 of file expfld.cxx.
References aStr, getContent(), SwField::GetFieldName(), SwFieldType::GetName(), SwField::GetTyp(), INP_USR, and mnSubType.
|
inline |
Definition at line 316 of file expfld.hxx.
Referenced by applyFieldContent(), and SwFieldEditDlg::EnsureSelection().
|
inline |
Definition at line 323 of file expfld.hxx.
Referenced by DocxAttributeOutput::EndField_Impl(), DocxAttributeOutput::EndRun(), and DocxAttributeOutput::StartField_Impl().
const OUString & SwInputField::GetHelp | ( | ) | const |
Definition at line 1412 of file expfld.cxx.
References maHelp.
Referenced by RtfExport::DoFormText(), and WW8Export::DoFormText().
|
overridevirtual |
Content.
Reimplemented from SwField.
Definition at line 1392 of file expfld.cxx.
References getContent().
Referenced by SwFieldInputDlg::Apply(), DocxAttributeOutput::StartField_Impl(), and SwFieldInputDlg::SwFieldInputDlg().
|
overridevirtual |
aPromptText
Reimplemented from SwField.
Definition at line 1402 of file expfld.cxx.
References maPText.
Referenced by DocxExport::DoFormText(), RtfExport::DoFormText(), WW8Export::DoFormText(), and SwFieldInputDlg::SwFieldInputDlg().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1427 of file expfld.cxx.
References mnSubType.
Referenced by Copy(), and SwFieldInputDlg::SwFieldInputDlg().
const OUString & SwInputField::GetToolTip | ( | ) | const |
Definition at line 1422 of file expfld.cxx.
References maToolTip.
Referenced by RtfExport::DoFormText(), and WW8Export::DoFormText().
bool SwInputField::isFormField | ( | ) | const |
Definition at line 1325 of file expfld.cxx.
References maHelp, maToolTip, and mbIsFormField.
Referenced by AttributeOutputBase::TextField().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1359 of file expfld.cxx.
References FIELD_PROP_GRABBAG, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_TITLE, maContent, maGrabBag, maHelp, maPText, and maToolTip.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1332 of file expfld.cxx.
References FIELD_PROP_GRABBAG, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_TITLE, getContent(), maGrabBag, maHelp, maPText, and maToolTip.
void SwInputField::SetFormatField | ( | SwFormatField & | rFormatField | ) |
Definition at line 1230 of file expfld.cxx.
References mpFormatField.
Referenced by SwFormatField::SwFormatField().
void SwInputField::SetHelp | ( | const OUString & | rStr | ) |
Definition at line 1407 of file expfld.cxx.
References maHelp.
Referenced by SwXTextField::attach(), and SwWW8ImplReader::Read_F_FormTextBox().
|
overridevirtual |
set condition
Reimplemented from SwField.
Definition at line 1387 of file expfld.cxx.
References maContent.
Referenced by SwFieldInputDlg::Apply().
|
overridevirtual |
|
overridevirtual |
void SwInputField::SetToolTip | ( | const OUString & | rStr | ) |
Definition at line 1417 of file expfld.cxx.
References maToolTip.
Referenced by SwXTextField::attach(), and SwWW8ImplReader::Read_F_FormTextBox().
|
mutableprivate |
Definition at line 288 of file expfld.hxx.
Referenced by applyFieldContent(), PutValue(), and SetPar1().
|
private |
Definition at line 294 of file expfld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Definition at line 290 of file expfld.hxx.
Referenced by Copy(), GetHelp(), isFormField(), PutValue(), QueryValue(), and SetHelp().
|
private |
Definition at line 289 of file expfld.hxx.
Referenced by Copy(), GetPar2(), PutValue(), QueryValue(), and SetPar2().
|
private |
Definition at line 291 of file expfld.hxx.
Referenced by Copy(), GetToolTip(), isFormField(), PutValue(), QueryValue(), and SetToolTip().
|
private |
Definition at line 293 of file expfld.hxx.
Referenced by Copy(), and isFormField().
|
private |
Definition at line 292 of file expfld.hxx.
Referenced by applyFieldContent(), ExpandImpl(), GetFieldName(), GetSubType(), and SetSubType().
|
private |
Definition at line 296 of file expfld.hxx.
Referenced by SetFormatField().