[Libreoffice-bugs] [Bug 137664] New: Can't change slide.Background.FillBitmapMode with Macro or PyUno

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 21 18:18:00 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=137664

            Bug ID: 137664
           Summary: Can't change slide.Background.FillBitmapMode with
                    Macro or PyUno
           Product: LibreOffice
           Version: 7.1.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: pablo.platt at gmail.com

Description:
The attached slide-bitmap.odp has slide background set to Tiled Bitmap.
The slide.Background.FillBitmapMode is com.sun.star.drawing.BitmapMode.REPEAT
It's not possible to change the FillBitmapMode to STRETCH.

The attached master-bitmap.odp has the same background set on the Master slide.
Changing the FillBitmapMode of the Master background is possible.

Steps to Reproduce:
A)
1. Open slide-bitmap.odp
2. Press Alt+F11 to open the Macro editor and click Edit.
3. Paste the following code and run it:
Sub Main
    Dim doc as Object
    doc = ThisComponent
    Dim slide as Object
    slide = doc.getDrawPages().getByIndex(0)

    Print slide.Background.FillBitmapMode
    slide.Background.FillBitmapMode = com.sun.star.drawing.BitmapMode.STRETCH
    Print slide.Background.FillBitmapMode 
End Sub
4. Check that the FillBitmapMode hasn't change.

B)
1. Open master-bitmap.odp
2. Press Alt+F11 to open the Macro editor and click Edit.
3. Paste the following code and run it:
Sub Main
    Dim doc as Object
    doc = ThisComponent
    Dim slide as Object
    slide = doc.getDrawPages().getByIndex(0)

    Print slide.MasterPage.Background.FillBitmapMode
    slide.MasterPage.Background.FillBitmapMode =
com.sun.star.drawing.BitmapMode.STRETCH
    Print slide.MasterPage.Background.FillBitmapMode
End Sub
4. Check that the FillBitmapMode changed.

Actual Results:
The slide.Background.FillBitmap mode hasn't changed.


Expected Results:
The slide.Background.FillBitmap mode should change to STRETCH.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+
Build ID: 75030b3a2d4336c494fbe799fb809a37ed7e582f
CPU threads: 1; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_IL); UI: en-US
TinderBox: Linux-rpm_deb-x86_64 at 86-TDF, Branch:master, Time:
2020-10-08_21:40:22
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201021/18798c76/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list