Kaydet (Commit) 2a9c1473 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#36668 allow image captions above image

orientation is the *second* argument, not the first,
which may be why this was never implemented, because
setting BOTTOM "didn't work".

Change-Id: Ief9b7f3ef7f696d38a3da73f9e38fe30a2d6c855
üst 3ba44a1e
...@@ -1347,8 +1347,10 @@ lcl_InsertLabel(SwDoc & rDoc, SwTxtFmtColls *const pTxtFmtCollTbl, ...@@ -1347,8 +1347,10 @@ lcl_InsertLabel(SwDoc & rDoc, SwTxtFmtColls *const pTxtFmtCollTbl,
pNewSet->Put( SwFmtSurround( SURROUND_NONE ) ); pNewSet->Put( SwFmtSurround( SURROUND_NONE ) );
pNewSet->Put( SvxOpaqueItem( RES_OPAQUE, sal_True ) ); pNewSet->Put( SvxOpaqueItem( RES_OPAQUE, sal_True ) );
pNewSet->Put( SwFmtVertOrient( text::VertOrientation::TOP ) );
pNewSet->Put( SwFmtHoriOrient( text::HoriOrientation::CENTER ) ); sal_Int16 eVert = bBefore ? text::VertOrientation::BOTTOM : text::VertOrientation::TOP;
pNewSet->Put( SwFmtVertOrient( 0, eVert ) );
pNewSet->Put( SwFmtHoriOrient( 0, text::HoriOrientation::CENTER ) );
aFrmSize = pOldFmt->GetFrmSize(); aFrmSize = pOldFmt->GetFrmSize();
aFrmSize.SetWidthPercent( 100 ); aFrmSize.SetWidthPercent( 100 );
......
...@@ -239,11 +239,6 @@ SwCaptionDialog::SwCaptionDialog( Window *pParent, SwView &rV ) : ...@@ -239,11 +239,6 @@ SwCaptionDialog::SwCaptionDialog( Window *pParent, SwView &rV ) :
break; break;
} }
m_pPosBox->SelectEntryPos(1); m_pPosBox->SelectEntryPos(1);
if (eType & (nsSelectionType::SEL_GRF|nsSelectionType::SEL_DRW))
{
m_pPosText->Enable( sal_False );
m_pPosBox->Enable( sal_False );
}
m_pCategoryBox->GetModifyHdl().Call(m_pCategoryBox); m_pCategoryBox->GetModifyHdl().Call(m_pCategoryBox);
......
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