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

            Bug ID: 156647
           Summary: ReqIF: cell padding is exported, but not imported
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 188818
  --> https://bugs.documentfoundation.org/attachment.cgi?id=188818&action=edit
Table with cell padding

The attached FODT has a table with cell padding of 1.24 cm. When exported as
ReqIF, the padding is output correctly (as 47 px); but when the  ReqIF is
imported back, the padding is lost.

Steps:
1. Open the FODT.
2. Execute this macro:

sub ReqIF_SaveAndReload
  dim doc as object, url as string
  doc = ThisComponent
  url = Replace(doc.URL, "fodt", "xhtml")

  Dim args1(6) As New com.sun.star.beans.PropertyValue
  args1(0).Name  = "FilterName"
  args1(0).Value = "HTML (StarWriter)"
  args1(1).Name  = "FilterOptions"
  args1(1).Value = "xhtmlns=reqif-xhtml"
  args1(2).Name  = "Overwrite"
  args1(2).Value = true
  args1(3).Name  = "RTFOLEMimeType"
  args1(3).Value = "text/rtf"
  args1(4).Name  = "OnMainThread"
  args1(4).Value = true
  args1(5).Name  = "ExportImagesAsOLE"
  args1(5).Value = false
  args1(6).Name  = "ShapeDPI"
  args1(6).Value = 300

  doc.storeToUrl(url, args1())

  Dim args2(2) As New com.sun.star.beans.PropertyValue
  args2(0).Name  = "FilterName"
  args2(0).Value = "HTML (StarWriter)"
  args2(1).Name  = "FilterOptions"
  args2(1).Value = "xhtmlns=reqif-xhtml"

  Dim types(1) As String
  types(0) = "text/rtf"
  types(1) = "application/oleobject"
  args2(2).Name  = "AllowedRTFOLEMimeTypes"
  args2(2).Value = types

  StarDesktop.LoadComponentFromUrl(url, "_blank", 0, args2())
end sub

=> the newly opened "table_cell_padding.xhtml" has no cell padding in the
table.
If you open the .xhtml in a text editor, the 'cellpadding' attribute is there
in the table element.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to