diff options
Diffstat (limited to 'svx/source/sidebar/possize/PosSizePropertyPanel.cxx')
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index e684d4da2bc2..120b753a29d6 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -844,8 +844,29 @@ void PosSizePropertyPanel::NotifyItemUpdate( mpCbxScale->Check( static_cast<bool>(sUserData.toInt32()) ); } -void PosSizePropertyPanel::GetControlState(const sal_uInt16 /*nSID*/, boost::property_tree::ptree& /*rState*/) +void PosSizePropertyPanel::GetControlState(const sal_uInt16 nSID, boost::property_tree::ptree& rState) { + VclPtr<vcl::Window> pControl; + switch (nSID) + { + case SID_ATTR_TRANSFORM_POS_X: + pControl = mpMtrPosX; + break; + case SID_ATTR_TRANSFORM_POS_Y: + pControl = mpMtrPosY; + break; + case SID_ATTR_TRANSFORM_WIDTH: + pControl = mpMtrWidth; + break; + case SID_ATTR_TRANSFORM_HEIGHT: + pControl = mpMtrHeight; + break; + } + + if (pControl && !pControl->GetText().isEmpty()) + { + rState.put(pControl->get_id().toUtf8().getStr(),pControl->GetText().toUtf8().getStr()); + } } void PosSizePropertyPanel::executeSize() |