Kaydet (Commit) 5bb8a4b2 authored tarafından Miklos Vajna's avatar Miklos Vajna

swpagerelsize ui: write WidthPercentRelation to doc model

Change-Id: Ia446566e7757f06c1bac12ae1d7a2392f20003a6
üst 1188866c
......@@ -1141,6 +1141,15 @@ sal_Bool SwFrmPage::FillItemSet(SfxItemSet &rSet)
const SwFmtFrmSize& rOldSize = (const SwFmtFrmSize& )rOldSet.Get(RES_FRM_SIZE);
SwFmtFrmSize aSz( rOldSize );
sal_uInt16 nRelWidthRelation = m_pRelWidthRelationLB->GetSelectEntryPos();
if (nRelWidthRelation != LISTBOX_ENTRY_NOTFOUND)
{
if (nRelWidthRelation == 0)
aSz.SetWidthPercentRelation(text::RelOrientation::FRAME);
else if (nRelWidthRelation == 1)
aSz.SetWidthPercentRelation(text::RelOrientation::PAGE_FRAME);
}
bool bValueModified = (m_aWidthED.IsValueModified() || m_aHeightED.IsValueModified());
bool bCheckChanged = (m_pRelWidthCB->GetSavedValue() != m_pRelWidthCB->IsChecked()
|| m_pRelHeightCB->GetSavedValue() != m_pRelHeightCB->IsChecked());
......
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