diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-03-02 20:48:22 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-03-03 00:05:30 +0100 |
commit | e85130f7224a5902bbb172a9af4abb1ac2205237 (patch) | |
tree | e94cbef4dc8025fba7e62e19a2dcd6ecf39ae564 | |
parent | e3dfae0741aae8581cd3fc713ba1b4459bb22d88 (diff) |
unofield.cxx: fix indentation a little
-rw-r--r-- | sw/source/core/unocore/unofield.cxx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx index 0cc0223f9c9b..db452a4f6cf6 100644 --- a/sw/source/core/unocore/unofield.cxx +++ b/sw/source/core/unocore/unofield.cxx @@ -1878,7 +1878,7 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An if(pField) { - // Sonderbehandlung Serienbrieffeld + // special treatment for mail merge fields sal_uInt16 nWhich = pField->Which(); if( RES_DBFLD == nWhich && (rPropertyName.equalsAsciiL( SW_PROP_NAME(UNO_NAME_DATA_BASE_NAME)) || @@ -1886,8 +1886,8 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An rPropertyName.equalsAsciiL( SW_PROP_NAME(UNO_NAME_DATA_TABLE_NAME))|| rPropertyName.equalsAsciiL( SW_PROP_NAME(UNO_NAME_DATA_COLUMN_NAME)))) { - // hier muss ein neuer Feldtyp angelegt werden und - // das Feld an den neuen Typ umgehaengt werden + // here a new field type must be created and the field must + // be registered at the new type OSL_FAIL("not implemented"); } else @@ -1906,11 +1906,12 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An } pField->PutValue( rValue, pEntry->nWID ); - //#i100374# notify SwPostIt about new field content - if (RES_POSTITFLD== nWhich && pFmtFld) - { - const_cast<SwFmtFld*>(pFmtFld)->Broadcast(SwFmtFldHint( 0, SWFMTFLD_CHANGED )); - } + //#i100374# notify SwPostIt about new field content + if (RES_POSTITFLD== nWhich && pFmtFld) + { + const_cast<SwFmtFld*>(pFmtFld)->Broadcast( + SwFmtFldHint( 0, SWFMTFLD_CHANGED )); + } // fdo#42073 notify SwTxtFld about changes of the expanded string if (pFmtFld->GetTxtFld()) @@ -1918,10 +1919,10 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An pFmtFld->GetTxtFld()->Expand(); } - //#i100374# changing a document field should set the modify flag - SwDoc* pDoc = GetDoc(); - if (pDoc) - pDoc->SetModified(); + //#i100374# changing a document field should set the modify flag + SwDoc* pDoc = GetDoc(); + if (pDoc) + pDoc->SetModified(); } else if(m_pProps) |