• Michael Stahl's avatar
    tdf#123968 sw: use inline editing for input fields for variables · 742baabb
    Michael Stahl yazdı
    * 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: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
    Reviewed-on: https://gerrit.libreoffice.org/69414
    Tested-by: Jenkins
    Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
    742baabb
crstrvl.cxx 94.3 KB