Re: writing attribute style:background-transparency

2016-09-29 Thread Armin Le Grand

Hi Regina,


Am 23.09.2016 um 00:40 schrieb Regina Henschel:

Hi Armin,

Armin Le Grand schrieb:

Hi Regina,

tried, but could not create one (tried frames in SW, too).

Might have to do with the change of SW FillStyle/Transparency attributes
to the full Draw ItemSet. These get written with the same attributes as
for draw objects, but before the change that attribute might have been
used. It would be loaded and converted at import, though.

Thus, might be if you use an older version which had not that change and
insert a frame and set transparency, but no guarantees


Direct hit :)

AOO 3.4.1 writes a style:background-transparency for a Writer frame 
with background color and transparency. LibreOffice 5.3 writes 
style:background-transparency too, but in addition it writes 
draw:fill, draw:fill-color and draw:opacity.


Yes, this is to have some backward compatibility. This means that the 
'old' style to safe it might be removed in the future, but the new ones 
will stay. The new ones are the same as complete draw/fill style for 
graphic objects, thus unifying that stuff.


HTH!



LibreOffice writes draw:fill, draw:fill-color and draw:opacity too in 
style:page-layout-properties, however there without 
style:background-transparency. But for draw:fill, draw:fill-color and 
draw:opacity it is the same problem as for 
style:background-transparency: It is not allowed in 
style:page-layout-properties.


So my conclusion is, that a transparent property for page background 
is indeed needed. But I would suggest not to extend the 
style:background-transparency, but the draw:xyz attributes, because 
they are richer and already used in LibreOffice.


Kind regards
Regina





HTH!
ALG


Am 21.09.2016 um 19:36 schrieb Regina Henschel:

Hi all,

the ODF TC is going to discuss issue OFFICE-3770 [1], which is about
the attribute style:background-transparency. I'm trying to generate a
document by LibreOffice, in which this attribute is used. But in all
my tries I always get draw:opacity or draw:opacity-name (in case of
gradient).

Do you know a situation where LibreOffice writes the attribute
style:background-transparency ?

Kind regards
Regina

[1] https://issues.oasis-open.org/browse/OFFICE-3770
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


--
--
ALG (PGP Key: EE1C 4B3F E751 D8BC C485 DEC1 3C59 F953 D81C F4A2)

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


ODF 1.3 and fancy-draw-fillstyles (was: Re: writing attribute style:background-transparency)

2016-09-23 Thread Michael Stahl
On 23.09.2016 00:40, Regina Henschel wrote:
> Hi Armin,
> 
> Armin Le Grand schrieb:
>> Hi Regina,
>>
>> tried, but could not create one (tried frames in SW, too).
>>
>> Might have to do with the change of SW FillStyle/Transparency attributes
>> to the full Draw ItemSet. These get written with the same attributes as
>> for draw objects, but before the change that attribute might have been
>> used. It would be loaded and converted at import, though.
>>
>> Thus, might be if you use an older version which had not that change and
>> insert a frame and set transparency, but no guarantees
> 
> Direct hit :)
> 
> AOO 3.4.1 writes a style:background-transparency for a Writer frame with 
> background color and transparency. LibreOffice 5.3 writes 
> style:background-transparency too, but in addition it writes draw:fill, 
> draw:fill-color and draw:opacity.
> 
> LibreOffice writes draw:fill, draw:fill-color and draw:opacity too in 
> style:page-layout-properties, however there without 
> style:background-transparency. But for draw:fill, draw:fill-color and 
> draw:opacity it is the same problem as for 
> style:background-transparency: It is not allowed in 
> style:page-layout-properties.

i wasn't aware of this problem, so 
appears to have the same issue as , which we
discuss below.

> So my conclusion is, that a transparent property for page background is 
> indeed needed. But I would suggest not to extend the 
> style:background-transparency, but the draw:xyz attributes, because they 
> are richer and already used in LibreOffice.

thanks for bringing up this topic, it reminded me of something on my
todo-list...

unfortunately ODF has 2 sets of attributes for "backgrounds", i'm
calling them the "writer-legacy-backgrounds" and the
"fancy-draw-fillstyles" - this is presumably a result of the 2 different
implementations from StarOffice.

it turns out that the "fancy-draw-fillstyles" are more expressive than
the "writer-legacy-backgrounds", so Armin refactored Writer to use these
natively, and only create the "writer-legacy-backgrounds" as an
emulation in the UNO API for backwards compatibility and to export them
to ODF.

the ODF 1.2  element allows for only the
"writer-legacy-backgrounds" attributes, but the
 element allows both sets of attributes.

obviously the "writer-legacy-backgrounds" were never produced by
anything other than Writer.

the "writer-legacy-backgrounds" confusingly have 2 different attributes
for transparency, the "style:background-transparency" is applied if
there is a background color while there is a nested element like
 to apply transparency to an
image.

now the problem is that current LO Writer will produce the
"fancy-draw-fillstyles" also for paragraph styles (and the UI is based
around them too) but it's not allowed in ODF 1.2 so we write foreign
 element.

so i guess in ODF 1.3 we either need to add the
 to paragraph styles, or add the
"fancy-draw-fillstyles" attributes to .

currently the  has a lot of attributes:

> 17.21 
> 
> The  element specifies formatting properties for 
> chart, draw, graphic, and frame elements. 
> 
> The  element is usable within the following 
> elements:  16.4 and  16.2.
> 
> The  element has the following attributes:
> dr3d:ambient-color 20.67,
> dr3d:backface-culling 20.69,
> dr3d:back-scale 20.68,
> dr3d:close-back 20.70,
> dr3d:close-front 20.71,
> dr3d:depth 20.72,
> dr3d:diffuse-color 20.73,
> dr3d:edge-rounding 20.74,
> dr3d:edge-rounding-mode 20.75,
> dr3d:emissive-color 20.76,
> dr3d:end-angle 20.77,
> dr3d:horizontal-segments 20.78,
> dr3d:lighting-mode 20.79,
> dr3d:normals-direction 20.80,
> dr3d:normals-kind 20.81,
> dr3d:shadow 20.82,
> dr3d:shininess 20.83,
> dr3d:specular-color 20.84,
> dr3d:texture-filter 20.85,
> dr3d:texture-generation-mode-x 20.88,
> dr3d:texture-generation-mode-y 20.89,
> dr3d:texture-kind 20.86,
> dr3d:texture-mode 20.87,
> dr3d:vertical-segments 20.90,
> draw:auto-grow-height 20.91,
> draw:auto-grow-width 20.92,
> draw:blue 20.94,
> draw:caption-angle 20.95,
> draw:caption-angle-type 20.96,
> draw:caption-escape 20.97,
> draw:caption-escape-direction 20.98,
> draw:caption-fit-line-length 20.99,
> draw:caption-gap 20.100,
> draw:caption-line-length 20.101,
> draw:caption-type 20.102,
> draw:color-inversion 20.103,
> draw:color-mode 20.104,
> draw:contrast 20.105,
> draw:decimal-places 20.106,
> draw:draw-aspect 20.107,
> draw:end-guide 20.108,
> draw:end-line-spacing-horizontal 20.109,
> draw:end-line-spacing-vertical 20.110,
> * draw:fill 20.111,
> * draw:fill-color 20.112,
> * draw:fill-gradient-name 20.113,
> * draw:fill-hatch-name 20.114,
> * draw:fill-hatch-solid 20.115,
> * draw:fill-image-height 20.116,
> * draw:fill-image-name 20.117,
> * draw:fill-image-ref-point 20.118,
> * draw:fill-image-ref-point-x 20.119,
> * draw:fill-image-ref-point-y 20.120,
> * draw:fill-image-width 20.121,
> draw:fit-to-contour 20.122,
> draw:fit-to-size 20.123,
> draw:frame-display-border 20.124,
> draw:frame-display-scrollbar 20.126,

Re: writing attribute style:background-transparency

2016-09-22 Thread Regina Henschel

Hi Armin,

Armin Le Grand schrieb:

Hi Regina,

tried, but could not create one (tried frames in SW, too).

Might have to do with the change of SW FillStyle/Transparency attributes
to the full Draw ItemSet. These get written with the same attributes as
for draw objects, but before the change that attribute might have been
used. It would be loaded and converted at import, though.

Thus, might be if you use an older version which had not that change and
insert a frame and set transparency, but no guarantees


Direct hit :)

AOO 3.4.1 writes a style:background-transparency for a Writer frame with 
background color and transparency. LibreOffice 5.3 writes 
style:background-transparency too, but in addition it writes draw:fill, 
draw:fill-color and draw:opacity.


LibreOffice writes draw:fill, draw:fill-color and draw:opacity too in 
style:page-layout-properties, however there without 
style:background-transparency. But for draw:fill, draw:fill-color and 
draw:opacity it is the same problem as for 
style:background-transparency: It is not allowed in 
style:page-layout-properties.


So my conclusion is, that a transparent property for page background is 
indeed needed. But I would suggest not to extend the 
style:background-transparency, but the draw:xyz attributes, because they 
are richer and already used in LibreOffice.


Kind regards
Regina





HTH!
ALG


Am 21.09.2016 um 19:36 schrieb Regina Henschel:

Hi all,

the ODF TC is going to discuss issue OFFICE-3770 [1], which is about
the attribute style:background-transparency. I'm trying to generate a
document by LibreOffice, in which this attribute is used. But in all
my tries I always get draw:opacity or draw:opacity-name (in case of
gradient).

Do you know a situation where LibreOffice writes the attribute
style:background-transparency ?

Kind regards
Regina

[1] https://issues.oasis-open.org/browse/OFFICE-3770
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: writing attribute style:background-transparency

2016-09-22 Thread Armin Le Grand

Hi Regina,

tried, but could not create one (tried frames in SW, too).

Might have to do with the change of SW FillStyle/Transparency attributes 
to the full Draw ItemSet. These get written with the same attributes as 
for draw objects, but before the change that attribute might have been 
used. It would be loaded and converted at import, though.


Thus, might be if you use an older version which had not that change and 
insert a frame and set transparency, but no guarantees



HTH!
ALG


Am 21.09.2016 um 19:36 schrieb Regina Henschel:

Hi all,

the ODF TC is going to discuss issue OFFICE-3770 [1], which is about 
the attribute style:background-transparency. I'm trying to generate a 
document by LibreOffice, in which this attribute is used. But in all 
my tries I always get draw:opacity or draw:opacity-name (in case of 
gradient).


Do you know a situation where LibreOffice writes the attribute 
style:background-transparency ?


Kind regards
Regina

[1] https://issues.oasis-open.org/browse/OFFICE-3770
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


--
--
ALG (PGP Key: EE1C 4B3F E751 D8BC C485 DEC1 3C59 F953 D81C F4A2)

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: writing attribute style:background-transparency

2016-09-22 Thread Fridrich Strba
On 22/09/16 00:58, Thorsten Behrens wrote:
> Hi Regina,
> 
> you wrote:
>> Do you know a situation where LibreOffice writes the attribute
>> style:background-transparency ?
>>
> lotuswordpro/source/filter/xfilter/xfframestyle.cxx does - and perhaps
> other libs from DLP do as well?

For the while, the only background-* variable that is relevant to
transparency/opacity that DLP libraries -- at least those that I
maintain -- write is fo:background-opacity for text. Obviously, this
does not work and is happily ignored :)

Cheers

F.


-- 
Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



signature.asc
Description: OpenPGP digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: writing attribute style:background-transparency

2016-09-22 Thread Thorsten Behrens
Hi Regina,

you wrote:
> Do you know a situation where LibreOffice writes the attribute
> style:background-transparency ?
> 
lotuswordpro/source/filter/xfilter/xfframestyle.cxx does - and perhaps
other libs from DLP do as well?

But it's curiously missing from anything related to xmloff...

Cheers,

-- Thorsten


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


writing attribute style:background-transparency

2016-09-21 Thread Regina Henschel

Hi all,

the ODF TC is going to discuss issue OFFICE-3770 [1], which is about the 
attribute style:background-transparency. I'm trying to generate a 
document by LibreOffice, in which this attribute is used. But in all my 
tries I always get draw:opacity or draw:opacity-name (in case of gradient).


Do you know a situation where LibreOffice writes the attribute 
style:background-transparency ?


Kind regards
Regina

[1] https://issues.oasis-open.org/browse/OFFICE-3770
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice