Bug 127223 - Auto damaged odt file
Summary: Auto damaged odt file
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-29 19:10 UTC by Michal Janoušek
Modified: 2019-09-17 08:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Janoušek 2019-08-29 19:10:04 UTC
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:
Comment 1 Timur 2019-09-13 07:33:33 UTC
Bug report is not clear. 
Do you report a bug in LO, which one, what are verifiable steps? 
If you need help for writing a macro, bugzilla is not support forum. 
If you see a bug with text format or styles, you wrote it wrong.
Comment 2 Michal Janoušek 2019-09-15 10:46:13 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-09-16 02:46:57 UTC Comment hidden (obsolete)
Comment 4 Timur 2019-09-16 07:25:29 UTC
Please write steps, expected and experienced results. Not to guess from your video.
https://wiki.documentfoundation.org/QA/BugReport
Comment 5 Michal Janoušek 2019-09-16 17:21:17 UTC
:-(
Comment 6 Timur 2019-09-17 08:20:38 UTC
This is not Fixed (see Status). I set Insufficient Data. Sorry you didn't make it clear.