Commits

releng  committed 8efe25f

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()

  • Participants
  • Parent commits b964f00

Comments (0)

Files changed (3)

File framework/source/accelerators/acceleratorconfiguration.cxx

     css::uno::Reference< css::container::XNameAccess > xAccess;
 
     bPreferred = sal_True;
+    // on-demand creation of the primary write cache
+    impl_getCFG(bPreferred, sal_True);
     m_xCfg->getByName(CFG_ENTRY_PRIMARY) >>= xAccess;    
     impl_ts_save(bPreferred, xAccess);
 
     bPreferred = sal_False;
+    // on-demand creation of the secondary write cache
+    impl_getCFG(bPreferred, sal_True);
     m_xCfg->getByName(CFG_ENTRY_SECONDARY) >>= xAccess;    
     impl_ts_save(bPreferred, xAccess);
 

File sw/source/core/fields/docufld.cxx

 		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!");

File sw/source/core/unocore/unofield.cxx

             // <- #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)
 	{