diff options
Diffstat (limited to 'sw/source/core/fields/dbfld.cxx')
-rw-r--r-- | sw/source/core/fields/dbfld.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/fields/dbfld.cxx b/sw/source/core/fields/dbfld.cxx index a23dbd21e66f..22008b09af5e 100644 --- a/sw/source/core/fields/dbfld.cxx +++ b/sw/source/core/fields/dbfld.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -199,7 +199,7 @@ bool SwDBFieldType::PutValue( const uno::Any& rAny, USHORT nWhichId ) --------------------------------------------------------------------*/ SwDBField::SwDBField(SwDBFieldType* pTyp, ULONG nFmt) - : SwValueField(pTyp, nFmt), + : SwValueField(pTyp, nFmt), nSubType(0), bIsInBodyTxt(TRUE), bValidValue(FALSE), @@ -267,11 +267,11 @@ String SwDBField::Expand() const SwField* SwDBField::Copy() const { SwDBField *pTmp = new SwDBField((SwDBFieldType*)GetTyp(), GetFormat()); - pTmp->aContent = aContent; - pTmp->bIsInBodyTxt = bIsInBodyTxt; - pTmp->bValidValue = bValidValue; - pTmp->bInitialized = bInitialized; - pTmp->nSubType = nSubType; + pTmp->aContent = aContent; + pTmp->bIsInBodyTxt = bIsInBodyTxt; + pTmp->bValidValue = bValidValue; + pTmp->bInitialized = bInitialized; + pTmp->nSubType = nSubType; pTmp->SetValue(GetValue()); pTmp->sFieldCode = sFieldCode; @@ -356,7 +356,7 @@ void SwDBField::Evaluate() if( DBL_MAX != nValue ) { sal_Int32 nColumnType = pMgr->GetColumnType(aTmpData.sDataSource, aTmpData.sCommand, aColNm); - if( DataType::DATE == nColumnType || DataType::TIME == nColumnType || + if( DataType::DATE == nColumnType || DataType::TIME == nColumnType || DataType::TIMESTAMP == nColumnType) { @@ -379,7 +379,7 @@ void SwDBField::Evaluate() SvNumberFormatter* pFormatter = GetDoc()->GetNumberFormatter(); if (nFmt && nFmt != SAL_MAX_UINT32 && !pFormatter->IsTextFormat(nFmt)) - bValidValue = TRUE; // Wegen Bug #60339 nicht mehr bei allen Strings + bValidValue = TRUE; // Wegen Bug #60339 nicht mehr bei allen Strings } else { @@ -810,7 +810,7 @@ void SwDBNumSetField::Evaluate(SwDoc* pDoc) if( bCondValid && pMgr && pMgr->IsInMerge() && pMgr->IsDataSourceOpen(aTmpData.sDataSource, aTmpData.sCommand, sal_True)) - { // Bedingug OK -> aktuellen Set einstellen + { // Bedingug OK -> aktuellen Set einstellen pMgr->ToRecordId(Max((USHORT)aPar2.ToInt32(), USHORT(1))-1); } } |