Concerning the API for shapes inserted into spreadsheets ("com.sun.star.comp.sc.ScShapeObj" supporting the service "com.sun.star.sheet.Shape"): Older versions of LibO only knew 2 types of anchoring a shape in a spreadsheet: -1- To the page -2- To a cell The types were distinguished by the .Anchor property which always was basically a SheetCellRange, but was a complete spreadsheet (ScTableSheetObj) in the first case, and a single cell (ScCellObj) in the second. Now there are three types of anchoring, but the anchor still can only be of the two mentioned types. An additional PUBLISHED (and not read-only) property distinguishing the anchor settings 'To Cell' and 'To Cell (resize with cell)' should offer a way for users to ask for the new anchoring subtypes and to set it if needed.
@Samuel: could that be solved in a compatible way, like having a ScCellRangeObj with start and end cell for cell-resize? Additionally SCA_CELL_RESIZE needs to be handled in sc/source/ui/unoobj/shapeuno.cxx ScShapeObj::setPropertyValue() and ScShapeObj::getPropertyValue() along with the cases for SCA_CELL under SC_UNONAME_HORIPOS and SC_UNONAME_VERTPOS.
Why isn't it possible to introduce a property .AnchorType for ScShapeObj as it already exists for SwXShape?
I would also be in favor of something like AnchorType to keep things simple and understandable. But this of course needs to be checked if it can be done backwards compatible.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/e587645f551c6c684f9f36606f8fa5e1b06004a1%5E%21 Related tdf#124329 Handle shapes resizing with the cell It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/823c77a98ffbc1c819a81687ca7e13d91277bca5%5E%21 tdf#124329 Add API to make cell anchored graphic resize with cell It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/8603d7029b0d62032a5c9d2e039117799be9e798%5E%21 tdf#124329 Test setting ResizeWithCell via UNO API It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/c8e1f2fb1e5576dd85a1172d064480734e21d96e%5E%21 tdf#124329 Keep ResizeWithCell value when anchoring to a different cell It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-6-1": https://git.libreoffice.org/core/+/c45f22ce7c1560ec2deddc90a71da062d803f15d%5E%21 Related tdf#124329 Handle shapes resizing with the cell It will be available in 6.1.6. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-6-2": https://git.libreoffice.org/core/+/acc33b803ebff910139c7a7cabba6aa2e242fad3%5E%21 Related tdf#124329 Handle shapes resizing with the cell It will be available in 6.2.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 153126 [details] Made for demonstrating the lack of the new property ResizeWithCell in the BASIC IDE in V6.2.5release x86 V6.2.5 release (x86 from .paf.exe) does not show the .ResizeWithCell property of a shape in the BASIC IDE. The attached example was not originally made for this purpose, but should show the addressed effect.
(In reply to Wolfgang Jäger from comment #10) > Created attachment 153126 [details] > Made for demonstrating the lack of the new property ResizeWithCell in the > BASIC IDE in V6.2.5release x86 > > V6.2.5 release (x86 from .paf.exe) does not show the .ResizeWithCell > property of a shape in the BASIC IDE. > The attached example was not originally made for this purpose, but should > show the addressed effect. Can you please file a new bug report for that and CC me?