You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/05/02 19:26:54 UTC

[Bug 122216] New: Form controls will not be printed or exported to PDF

https://issues.apache.org/ooo/show_bug.cgi?id=122216

            Bug ID: 122216
        Issue Type: DEFECT
           Summary: Form controls will not be printed or exported to PDF
    Classification: Code
           Product: General
           Version: AOO400-dev
          Hardware: PC
                OS: Windows 7
            Status: UNCONFIRMED
          Keywords: regression
          Severity: major
          Priority: P3
         Component: ui
          Assignee: issues@openoffice.apache.org
          Reporter: rainerbielefeld_ooo_qa@bielefeldundbuss.de
                CC: issues@openoffice.apache.org

Created attachment 80624
  --> https://issues.apache.org/ooo/attachment.cgi?id=80624&action=edit
Test Kit

Steps how to reproduce with server installation of  "AOOo 4.0.0-Dev – English
UI / German locale [AOO400m1(Build:9700) - Rev.1476029]" on WIN7 Home Premium
(64bit)", own separate user profile:

1. Open new Writer document from AOOo Start Center
2. If necessary, make visible Form Controls Toolbar in menu 'View -> Toolbars'
3. Insert some form controls (radi button, checkbox, button
4. Menu 'File -> Print'
   Expected: Form controls visible in print preview, will be printed
   Actual: Form controls NOT visible in print preview, will be NOT printed
           Although 'Print Form Controls' is checked in Print Dialog

Additional info:
Also Calc affected (Draw, Impress not tested(
Also PDF export affected, also when "Create PDF Form" is checked
No problem with 3.4.1
In attached test kit you find sample document and my results of PDF export with
4.0 and 3.4.1

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #12 from Armin Le Grand <Ar...@me.com> ---
ALG: Okay, comitting changes, done.
Thanks to all finding this, this would have been pretty bad for 4.0. Continue
to write tasks when you see something going wrong, please, we need that ;-)

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #4 from Armin Le Grand <Ar...@me.com> ---
ALG: May have to do with #115754#, there is a hint in
ViewObjectContactOfUnoControl::createPrimitive2DSequence, this hinders draw
information from the controls to be created at all.
As second, these MetaActions cerated by case PRIMITIVE2D_ID_CONTROLPRIMITIVE2D
in VclMetafileProcessor2D seem to be positined/scaled wrong; when creating a
control top-left it is shown in the preview...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #14 from SVN Robot <sv...@dev.null.org> ---
"alg" committed SVN revision 1479578 into trunk:
i122216 Ensure FormControls get printed/PDFed, also ensure graphics are all
v...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #6 from Armin Le Grand <Ar...@me.com> ---
ALG: I'm wondering what changed between 3.4.1 and now, taking a look at 3.4.1
version. INdeed works there...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

Edwin Sharp <el...@mail-page.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |elish@mail-page.com
             Latest|---                         |AOO 4.0.0
    Confirmation on|                            |
     Ever confirmed|0                           |1

--- Comment #1 from Edwin Sharp <el...@mail-page.com> ---
Confirmed on Rev. 1476029 Win 7

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

brinzing <ol...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver.brinzing@gmx.de

--- Comment #2 from brinzing <ol...@gmx.de> ---
.

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #13 from Armin Le Grand <Ar...@me.com> ---
ALG: OKay, done.

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Armin.Le.Grand@me.com

--- Comment #3 from Armin Le Grand <Ar...@me.com> ---
ALG: Preparing SW with debug...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |AOO 4.0

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #5 from Armin Le Grand <Ar...@me.com> ---
ALG: Seems as if FormControls are painted much too big, checking, need toolkit
with debug...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #9 from Armin Le Grand <Ar...@me.com> ---
ALG: Has to do with the test if graphics are inside
(VclProcessor2D::RenderBitmapPrimitive2D). In the metafile case this comparison
goes wrong when a ViewTransformation is set. Indeed the MetafileProcessor
should have no ViewTransformation set, the goal is to record logical
coordinates in the whole process. Thus, not setting the ViewTransformation for
metafile recording was correct.
On the other hand the visualisation substituton creator in case
PRIMITIVE2D_ID_CONTROLPRIMITIVE2D in
VclMetafileProcessor2D::processBasePrimitive2D needs to create the discrete
positions to draw that control using awt::XView and awt::XGraphics. In this
case it is known that a metafile is recorded and access to the target
OutputDeice is given, so it seems to be best to fix it here. Also strange is
that at the OutputDevice there is a neutral MapMode set, but maMapRes contains
the scaling. It seems to be prepared when setting the MapMode, in this case
only containing the MAP_100TH_MM as value.
Checking if this can be fixed directly in the Metafileprocessor...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #8 from Armin Le Grand <Ar...@me.com> ---
ALG: Confirm that this is the reason; need to check now why I did that and what
it ought to fix; it is definitely not correct to not use the ViewTransformation
of the targte OutputDevice. Must have to do with rotated graphics...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #7 from Armin Le Grand <Ar...@me.com> ---
ALG: Has to do with https://issues.apache.org/ooo/show_bug.cgi?id=121534, there
I changed ObjectContactOfPageView::DoProcessDisplay to leave object
transformation empty for metafile recording. This seems to trigger this task.
Checking...

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #11 from Armin Le Grand <Ar...@me.com> ---
ALG: This gets too dangerous. It's better to turn back setting
ViewTransformation from #121534# and change processing in drawinglayer to not
use ViewInformation2D::getDiscreteViewport() in VclMetafileProcessor2D
implementations. Comparisons with discrete coordinates will not work in
VclMetafileProcessor2D and should not be used. Main reason is that the local
current transformation for processing gets set to LogicToWorld, but not to
LogicToDiscrete.
Checked this, works well as expected.
Also took the time to check if VclMetafileProcessor2D will work well with
setting the local transformation as in the pixel processor, and in principle it
does. The metafile will then contain a mapping action to MAP_PIXEL at the start
what is allowed. It is for now too dangerous to find out if this is supported
everywhere needed (e.g. in interpretMetafile in MetafilePrimitive2D
implementation. Too dangerous for now.

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

[Bug 122216] Form controls will not be printed or exported to PDF

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122216

--- Comment #10 from Armin Le Grand <Ar...@me.com> ---
ALG: I can calculate the real discrete pos/size and set it at awt::XWindow
(rescuing the old, resetting after), but the font size is not well adapted.
Maybe I'll also have to get/set Zoom to discrete units...

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