Kaydet (Commit) 139cbd04 authored tarafından Michael Stahl's avatar Michael Stahl

SwXTextTable::setPropertyValue: de-dent

Change-Id: Icad5dfcf8b9962623ac9f8954672a50a232bb9be
üst 08ab21f2
...@@ -3086,12 +3086,13 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, ...@@ -3086,12 +3086,13 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName,
{ {
break; // something else break; // something else
} }
{
SwDoc* pDoc = pFmt->GetDoc(); SwDoc* pDoc = pFmt->GetDoc();
SwFrm* pFrm = SwIterator<SwFrm,SwFmt>::FirstElement( *pFmt ); SwFrm* pFrm = SwIterator<SwFrm,SwFmt>::FirstElement( *pFmt );
// tables without layout (invisible header/footer?) // tables without layout (invisible header/footer?)
if( pFrm ) if (!pFrm)
{ {
break;
}
lcl_FormatTable(pFmt); lcl_FormatTable(pFmt);
SwTable* pTable = SwTable::FindTable( pFmt ); SwTable* pTable = SwTable::FindTable( pFmt );
SwTableLines &rLines = pTable->GetTabLines(); SwTableLines &rLines = pTable->GetTabLines();
...@@ -3151,8 +3152,6 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, ...@@ -3151,8 +3152,6 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName,
pDoc->SetTabBorders(*pCrsr, aSet); pDoc->SetTabBorders(*pCrsr, aSet);
delete pUnoCrsr; delete pUnoCrsr;
} }
}
}
break; break;
case FN_UNO_TABLE_BORDER_DISTANCES: case FN_UNO_TABLE_BORDER_DISTANCES:
{ {
...@@ -3278,9 +3277,11 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be ...@@ -3278,9 +3277,11 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be
{ {
SwDoc* pDoc = pFmt->GetDoc(); SwDoc* pDoc = pFmt->GetDoc();
SwFrm* pFrm = SwIterator<SwFrm,SwFmt>::FirstElement( *pFmt ); SwFrm* pFrm = SwIterator<SwFrm,SwFmt>::FirstElement( *pFmt );
//Tabellen ohne Layout (unsichtbare Header/Footer ) // tables without layout (invisible header/footer?)
if( pFrm ) if (!pFrm)
{ {
break;
}
lcl_FormatTable(pFmt); lcl_FormatTable(pFmt);
SwTable* pTable = SwTable::FindTable( pFmt ); SwTable* pTable = SwTable::FindTable( pFmt );
SwTableLines &rLines = pTable->GetTabLines(); SwTableLines &rLines = pTable->GetTabLines();
...@@ -3290,7 +3291,7 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be ...@@ -3290,7 +3291,7 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be
const SwTableBox* pTLBox = lcl_FindCornerTableBox(rLines, true); const SwTableBox* pTLBox = lcl_FindCornerTableBox(rLines, true);
const SwStartNode* pSttNd = pTLBox->GetSttNd(); const SwStartNode* pSttNd = pTLBox->GetSttNd();
SwPosition aPos(*pSttNd); SwPosition aPos(*pSttNd);
// Cursor in die obere linke Zelle des Ranges setzen // set cursor to top left cell
SwUnoCrsr* pUnoCrsr = pDoc->CreateUnoCrsr(aPos, sal_True); SwUnoCrsr* pUnoCrsr = pDoc->CreateUnoCrsr(aPos, sal_True);
pUnoCrsr->Move( fnMoveForward, fnGoNode ); pUnoCrsr->Move( fnMoveForward, fnGoNode );
pUnoCrsr->SetRemainInSection( sal_False ); pUnoCrsr->SetRemainInSection( sal_False );
...@@ -3310,7 +3311,8 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be ...@@ -3310,7 +3311,8 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be
0); 0);
aSet.Put(SvxBoxInfoItem( SID_ATTR_BORDER_INNER )); aSet.Put(SvxBoxInfoItem( SID_ATTR_BORDER_INNER ));
pDoc->GetTabBorders(*pCrsr, aSet); pDoc->GetTabBorders(*pCrsr, aSet);
const SvxBoxInfoItem& rBoxInfoItem = (const SvxBoxInfoItem&)aSet.Get(SID_ATTR_BORDER_INNER); const SvxBoxInfoItem& rBoxInfoItem =
(const SvxBoxInfoItem&)aSet.Get(SID_ATTR_BORDER_INNER);
const SvxBoxItem& rBox = (const SvxBoxItem&)aSet.Get(RES_BOX); const SvxBoxItem& rBox = (const SvxBoxItem&)aSet.Get(RES_BOX);
if (FN_UNO_TABLE_BORDER == pEntry->nWID) if (FN_UNO_TABLE_BORDER == pEntry->nWID)
...@@ -3353,7 +3355,6 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be ...@@ -3353,7 +3355,6 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be
} }
delete pUnoCrsr; delete pUnoCrsr;
} }
}
break; break;
case FN_UNO_TABLE_BORDER_DISTANCES : case FN_UNO_TABLE_BORDER_DISTANCES :
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment