Issue 25096 - Drawing Layer: Automatic text colour does not depend on drawing objects bg, but the bg of the page ?
Summary: Drawing Layer: Automatic text colour does not depend on drawing objects bg, b...
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: 680m22
Hardware: All All
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 09:32 UTC by caolanm
Modified: 2013-02-07 22:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
example .sxw (5.69 KB, application/vnd.sun.xml.writer)
2004-02-05 09:33 UTC, caolanm
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description caolanm 2004-02-05 09:32:38 UTC
cmc->thb: I'm not certain this is your area, but its a little related to issue
18630 also assigned to you.

In the to be attached .sxw the drawing textboxes make use of automatic colour,
it seems that the bg colour that the automatic colour is calculated from is the
bg colour of the page that the drawing object is hosted in, and not the
background colour of the drawing object itself. 

i.e. automatic text in a black box on a white page is black, but automatic text
in a black box on a black page is white.
Comment 1 caolanm 2004-02-05 09:33:05 UTC
Created attachment 12894 [details]
example .sxw
Comment 2 caolanm 2004-02-05 09:33:38 UTC
setting a target
Comment 3 thb 2004-02-05 11:36:10 UTC
THB->AW: Could you please have a look at that? This already seems to happen in OOo1.1.1
Comment 4 thb 2004-02-06 11:39:43 UTC
Reassigning
Comment 5 Armin Le Grand 2004-02-06 15:29:51 UTC
AW->OD: As far as i can see indeed the SW does not take drawing object
background colors into account. When grepping for >SetBackgroundColor< in sw i
see it's used from SwViewImp::PaintLayer where it's anded over already. It's
calculated from SwPageFrm::GetDrawBackgrdColor wich uses
SwFrm::GetBackgroundBrush where the description says: 'determine the background
brush for the frame'. Filled draw objects seem not to be considered.
Comment 6 caolanm 2004-02-06 15:36:49 UTC
Impress also appears to do the same thing in ignoring the shapes fill colour. In
that a black drawing box filled with automatic text on a white page is drawn in
black, which on a black page it goes white regardless of the object's fill colour ?
Comment 7 Oliver-Rainer Wittmann 2004-02-09 14:38:51 UTC
OD->AW:
Also doesn't function in Draw and in Calc (SRC680m22).
As discussed, there should be a centralized solution: Drawing Layer sets on
paint for each drawing object the corresponding background color. If no
background color could be retrieved at the drawing object, the corresponding
application has to provide a background color.
Please take over to provide corresponding functionality and to coordinate
adjustments in the applications. Thx.
Comment 8 Armin Le Grand 2004-02-11 12:49:47 UTC
AW->FL: After discussion with CL i found out that this is a specified behaviour,
decided by user experience, and not a bug at all. So, please take over. For
further discussions, CL will take over.
Comment 9 frank.loehmann 2004-04-07 10:52:11 UTC
.
Comment 10 frank.loehmann 2004-04-07 18:51:23 UTC
FL: As far as I remember we have decided this together with the Draw team,
because text could also be outside of object borders. I have no problem to
change this for SO 8 and to analyze the object background first, but the problem
is that we would change existing documents. FL->CL: What is your opinion on this?
Comment 11 clippka 2004-04-08 08:04:40 UTC
This was a user-expirience decision only. My (strong) opinion on this is that
both cases have pro and cons. So I urgly suggest not to change anything as it
would make nothing better and only add the hassle of incompatibility. In
addition, I don't see many issues reported from real users that have a problem
with this. Also workaround is easy while creating documents. Problems that would
arise with existing documents when we change behaviour would be a major anoyence
for users.
Comment 12 frank.loehmann 2004-04-08 08:38:22 UTC
.
Comment 13 frank.loehmann 2004-04-08 08:42:42 UTC
.