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

            Bug ID: 127223
           Summary: Auto damaged odt file
           Product: LibreOffice
           Version: 6.3.0.4 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: maikc...@centrum.cz

Description:
I do not know exactly where the fault is only I suspect. I need to check if the
macro I used for copying did not damage the odt file, please. File is here
https://app.box.com/s/gfmul6pgxpi6yzyqkk404udbkgzz66ii good file backup in pdf
https://app.box.com/s/aoa5iekk0wag4ftfg7b6bwqismdbtucu I using this macro for
copy formatted text

Sub resetujAvloz 'resetuje vlastnosti přes vloženou mezeru a vloží
    dim document as object, dispatcher as object
    document=thisComponent.CurrentController.Frame
    dispatcher=createUnoService("com.sun.star.frame.DispatchHelper")
    dim args1(0) as new com.sun.star.beans.PropertyValue
    args1(0).Name="Text" : args1(0).Value=" "
    dispatcher.executeDispatch(document, ".uno:InsertText", "", 0, args1())
'vložit mezeru
    dim args2(1) as new com.sun.star.beans.PropertyValue
    args2(0).Name="Count" : args2(0).Value=1
    args2(1).Name="Select" : args2(1).Value=true
    dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args2())
'označit mezeru
    dispatcher.executeDispatch(document, ".uno:ResetAttributes", "", 0,
Array()) 'reset vlastností (potřeba když to je na začátku řádku)
    dim args4(1) as new com.sun.star.beans.PropertyValue
    args4(0).Name="Count" : args4(0).Value=1
    args4(1).Name="Select" : args4(1).Value=false
    dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args4())
'vrátit se na konec mezery
    dispatcher.executeDispatch(document, ".uno:GoLeft", "", 0, args4()) 'jít
před mezeru
    dispatcher.executeDispatch(document, ".uno:ResetAttributes", "", 0,
Array()) 'reset vlastností (potřeba když to není na začátku řádku)
    dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array()) 'Ctrl+V
    dispatcher.executeDispatch(document, ".uno:Delete", "", 0, Array()) 'smazat
mezeru
End Sub



Actual Results:
I prefer to use TextMaker now and LO for great work with spreadsheets.

Expected Results:
Formatted text like other app like MS Office, TextMaker, OnlyOffice ...no need
to use macros or lengthy use of styles or double click Ctrl + Z and again Ctrl
+ Z


Reproducible: Couldn't Reproduce


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to