diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-03 18:27:29 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-03 19:52:44 +0100 |
commit | 5bb8a4b2e3137208d307cadf26df5a242b08e507 (patch) | |
tree | 4923cc84aff4f6da64f52d530ec4ca0c59c09493 | |
parent | 1188866c1f0eb087a7e9b09bd9628f9c916feb68 (diff) |
swpagerelsize ui: write WidthPercentRelation to doc model
Change-Id: Ia446566e7757f06c1bac12ae1d7a2392f20003a6
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 0b5733a7c240..6de74854abe7 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -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()); |