diff options
author | Release Engineers <releng@openoffice.org> | 2009-05-07 13:54:35 +0000 |
---|---|---|
committer | Release Engineers <releng@openoffice.org> | 2009-05-07 13:54:35 +0000 |
commit | c465fdc2b431bb1d1651813209d3485f07a2a39b (patch) | |
tree | b2772d13acb9946ab84f4ff44b213f62e99b7eab /sw | |
parent | 449e3653de650a56e393969d4c767677554b9b38 (diff) |
CWS-TOOLING: integrate CWS fwk111_DEV300
2009-04-06 22:23:30 +0200 mod r270574 : #i100374#
2009-04-06 14:33:48 +0200 cd r270547 : #i100718# Make sure write caches are created before calling impl_ts_save()
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/unocore/unofield.cxx | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index dfdf83f644..21cb381b4a 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -1951,6 +1951,12 @@ BOOL SwPostItField::PutValue( const uno::Any& rAny, USHORT nWhichId ) break; case FIELD_PROP_PAR2: ::GetString( rAny, sTxt ); + //#i100374# new string via api, delete complex text object so SwPostItNote picks up the new string + if (mpText) + { + delete mpText; + mpText = 0; + } break; case FIELD_PROP_TEXT: DBG_ERROR("Not implemented!"); diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx index fcb3df45af..e84cc6b5c2 100644 --- a/sw/source/core/unocore/unofield.cxx +++ b/sw/source/core/unocore/unofield.cxx @@ -1988,12 +1988,25 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An // <- #111840# } pField->PutValue( rValue, pMap->nWID ); + + //#i100374# notify SwPostIt about new field content + if (RES_POSTITFLD== nWhich && pFmtFld) + { + const_cast<SwFmtFld*>(pFmtFld)->Broadcast(SwFmtFldHint( 0, SWFMTFLD_CHANGED )); + } + //#114571# changes of the expanded string have to be notified //#to the SwTxtFld if(RES_DBFLD == nWhich && pFmtFld->GetTxtFld()) { pFmtFld->GetTxtFld()->Expand(); } + + //#i100374# changing a document field should set the modify flag + SwDoc* pDoc = GetDoc(); + if (pDoc) + pDoc->SetModified(); + } else if(m_pProps) { |