[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-09-03 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

Xisco FaulĂ­  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||xiscofa...@libreoffice.org
 Resolution|--- |WONTFIX

--- Comment #10 from Xisco FaulĂ­  ---
(In reply to Maxim Monastirsky from comment #6)
> I'm afraid that it's the expected behavior since 6.1, please see:

Closing as RESOLVED WONTFIX

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

Julien Nabet  changed:

   What|Removed |Added

 CC||i...@pisem.net

--- Comment #9 from Julien Nabet  ---
*** Bug 119616 has been marked as a duplicate of this bug. ***

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

--- Comment #8 from Julien Nabet  ---
Oups, I forced my comment whereas Maxim had already responded.
Sorry!

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

Julien Nabet  changed:

   What|Removed |Added

 CC||qui...@gmail.com

--- Comment #7 from Julien Nabet  ---
Tomaz: noticing the throw statement put in
7a8ed362eb163ac15a000ba1cfc74b58315800a1, thought you might be interested in
this one.

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

--- Comment #6 from Maxim Monastirsky  ---
I'm afraid that it's the expected behavior since 6.1, please see:

https://opengrok.libreoffice.org/xref/core/offapi/com/sun/star/style/ParagraphProperties.idl#64

https://cgit.freedesktop.org/libreoffice/core/commit/?id=7a8ed362eb163ac15a000ba1cfc74b58315800a1

https://tomazvajngerl.blogspot.com/2018/03/improving-image-handling-in-libreoffice.html

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

Julien Nabet  changed:

   What|Removed |Added

   Keywords||haveBacktrace

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

--- Comment #5 from Julien Nabet  ---
Created attachment 144564
  --> https://bugs.documentfoundation.org/attachment.cgi?id=144564&action=edit
bt with debug symbols

On pc Debian x86-64 with master sources updated today, I could reproduce this.
Here's a bt from throw statement.

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

--- Comment #4 from Kamil Landa  ---
Macro with example for some working properties:


Sub mistake2 'example with some working properties
dim oVCur, a
oVCur=thisComponent.currentcontroller.getViewCursor() 'view cursor

a=oVCur.getPropertyValue("CharFontFamily") 'it works
a=oVCur.getPropertyValue("CharColor") 'it works
a=oVCur.getPropertyValue("CharWeight") 'it works
a=oVCur.getPropertyValue("ParaVertAlignment") 'it works
a=oVCur.getPropertyValue("ReferenceMark") 'it works
a=oVCur.getPropertyValue("ParaTopMargin") 'it works
a=oVCur.getPropertyValue("TextParagraph") 'it works

a=oVCur.getPropertyValue("ParaBackGraphicURL") 'for other proprerties
it is OK
End Sub




And testing macro for Writer: 

For "Standard" page styles is also affected FooterBackGraphicURL, for others
BackGraphicURL. 


OPTION EXPLICIT

Sub TesPageStylePropsForWriter() 'test for Writer

On Local Error Goto ErrorHandler
Dim oDoc as Object, osheet as Object, oPStyles as Object, oPStyle as
Object, aProps as Object, vTmp, sProp as String, i as Integer, j as Integer,
elems

oDoc = ThisComponent
oPStyles = oDoc.StyleFamilies.getByName("PageStyles")
elems=oPStyles.ElementNames()
For j=lbound(elems) to ubound(elems)
oPStyle = oPStyles.getByName(elems(j))

aProps = oPStyle.PropertySetInfo.Properties
For i = LBound(aProps) to UBound(aProps)
sProp = aProps(i).Name
vTmp = oPStyle.getPropertyValue(sProp)
Next i
Next j
Exit Sub
ErrorHandler:
MsgBox elems(j) & ":" & chr(10) & sProp
Resume Next
End Sub

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

--- Comment #3 from Oliver Brinzing  ---
FooterBackGraphicURL/HeaderBackGraphicURL are affected too

OPTION EXPLICIT

Sub TesPageStyleProps()

On Local Error Goto ErrorHandler
Dim oDoc as Object
Dim osheet as Object
Dim oPStyles as Object
Dim oPStyle as Object
Dim aProps as Object
Dim vTmp
Dim sProp as String
Dim i as Integer

oDoc = ThisComponent
oSheet = oDoc.getSheets().getByIndex(0)
oPStyles = oDoc.StyleFamilies.getByName("PageStyles")
oPStyle = oPStyles.getByName(oSheet.PageStyle)

aProps = oPStyle.PropertySetInfo.Properties
For i = LBound(aProps) to UBound(aProps)
sProp = aProps(i).Name
vTmp = oPStyle.getPropertyValue(sProp)
Next i
Exit Sub
ErrorHandler:
MsgBox sProp
Resume Next
End Sub

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

--- Comment #2 from Julien Nabet  ---
Perhaps just to find difference in code more easily, could you give some
examples of properties which work?

-- 
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


[Libreoffice-bugs] [Bug 119609] Macro for Writer: Cannot read property of ParaBackGraphicURL

2018-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=119609

Oliver Brinzing  changed:

   What|Removed |Added

 CC||oliver.brinz...@gmx.de
 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW

--- Comment #1 from Oliver Brinzing  ---
confirming, calc property "BackGraphicURL" is affected too.

Version: 6.2.0.0.alpha0+ (x64)
Build ID: 7cb6dc2652ce7e2e7d9ec7464bb1eed0d93306d7
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: threaded

i think, root cause is the changed handling of image urls, for example
https://bugs.documentfoundation.org/show_bug.cgi?id=119519

-- 
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