summaryrefslogtreecommitdiff
path: root/sw/inc/crsrsh.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-03-19 12:29:09 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-04-08 16:08:11 +0200
commit742baabbe4d077e1ba913a7989300908f4637ac7 (patch)
treeda1ccd9ea18d95c6aa77d74197de1140e00c4b64 /sw/inc/crsrsh.hxx
parenta3881a66b8ffda4a8a89ecfc4347555e34193665 (diff)
tdf#123968 sw: use inline editing for input fields for variables
* set these to RES_TXTATR_INPUTFIELD so they get a SwTextInputField * only for string fields, the numeric ones break when editing * SwCursorShell::CursorInsideInputField() must check type of the hint, not type of the field * DocumentFieldsManager::UpdateExpFieldsImpl() is called with one field when it is inserted, and must expand the field into the SwTextNode then, and it's called when the user edits inside the field, and must *not* expand the field into the SwTextNode then * SwDocUpdateField::MakeFieldList_() must iterate RES_TXTATR_INPUTFIELD * SwEditWin::MouseButtonDown() must still pop up the edit dialog on double-click * SetFieldsDirty() should check RES_TXTATR_INPUTFIELD because SwGetExp may depend on them * a very odd API design: SwSetExpField::PutValue() allows to change the "InputFlag", which is actually used by the ODF import! This needs some alchemy to convert between SwTextField and SwTextInputField hints, see SwXTextField::TransmuteLeadToInputField(). * etc. Change-Id: I45c471703f102ebcb04b8567f9d76c17d5a063e7 Co-authored-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Reviewed-on: https://gerrit.libreoffice.org/69414 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/inc/crsrsh.hxx')
-rw-r--r--sw/inc/crsrsh.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index cfe9ef023cd0..fb105b00e524 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -701,6 +701,9 @@ public:
static SwTextField* GetTextFieldAtPos(
const SwPosition* pPos,
const bool bIncludeInputFieldAtStart );
+ static SwTextField* GetTextFieldAtCursor(
+ const SwPaM* pCursor,
+ const bool bIncludeInputFieldAtStart );
static SwField* GetFieldAtCursor(
const SwPaM* pCursor,
const bool bIncludeInputFieldAtStart );