Kaydet (Commit) 1c81d74c authored tarafından Muhammet Kara's avatar Muhammet Kara Kaydeden (comit) Andras Timar

Protect page position during redaction

Users might accidentally move the main shape of
the page being redacted. Let's prevent that.

Change-Id: Ic0f3c2c819d1f974d203fa5fd70d57e5545ba8ef
Reviewed-on: https://gerrit.libreoffice.org/70843Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst a4c2ae0e
...@@ -138,6 +138,8 @@ void SfxRedactionHelper::addPagesToDraw(uno::Reference<XComponent>& xComponent, ...@@ -138,6 +138,8 @@ void SfxRedactionHelper::addPagesToDraw(uno::Reference<XComponent>& xComponent,
xFactory->createInstance("com.sun.star.drawing.GraphicObjectShape"), uno::UNO_QUERY); xFactory->createInstance("com.sun.star.drawing.GraphicObjectShape"), uno::UNO_QUERY);
uno::Reference<beans::XPropertySet> xShapeProperySet(xShape, uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xShapeProperySet(xShape, uno::UNO_QUERY);
xShapeProperySet->setPropertyValue("Graphic", uno::Any(xGraph)); xShapeProperySet->setPropertyValue("Graphic", uno::Any(xGraph));
xShapeProperySet->setPropertyValue("MoveProtect", uno::Any(true));
xShapeProperySet->setPropertyValue("SizeProtect", uno::Any(true));
// Set size and position // Set size and position
xShape->setSize( xShape->setSize(
......
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