Issue 25422 - WW8: Textobject containing graphic not converted to frame anymore
Summary: WW8: Textobject containing graphic not converted to frame anymore
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 680m24
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
Depends on: 20202
Blocks:
  Show dependency tree
 
Reported: 2004-02-12 15:19 UTC by michael.ruess
Modified: 2013-08-07 14:41 UTC (History)
3 users (show)

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


Attachments
Document containing mentioned problem (1.00 MB, application/msword)
2004-02-12 15:20 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description michael.ruess 2004-02-12 15:19:10 UTC
Open attached document -> the graphic is missing, because the textobject was
converted to a drawing object
Comment 1 michael.ruess 2004-02-12 15:20:10 UTC
Created attachment 13073 [details]
Document containing mentioned problem
Comment 2 michael.ruess 2004-02-12 15:20:32 UTC
Target OO 2.0.
Comment 3 caolanm 2004-02-13 12:25:02 UTC
cmc->mru: Yes. That frame is an autowidth drawing object. To not import it as a
drawing object would be ok in this one example, but not in the general case :-(

Either we have drawing objects which can use a writer frame as their "text
engine" to allow them to contain graphics. Or our frames are enhanced to support
autowidth so that we can import these drawing object as autowidth frames.

For the 'Q' there is issue 20202 to provide such autowidth support for our
native frames, when that is implemented, such document as this will work correctly.

cmc->mmaher: The code to enable/disable importing such objects as frames or
drawing objects is in svx/source/msfilter/msdffimp.cxx in ProcessObj
This case is explictly not allowed for conversion to textframe, i.e. the 
wrapmode must be " == mso_wrapSquare" currently, while this rectange is mso_wrapNone

  if (!bTextFrame)
            {
                //Either
                //a) its a simple text object or
                //b) its a rectangle with text and square wrapping.
                bTextFrame =
                (
                    (pImpRec->eShapeType == mso_sptTextSimple) ||
                    (
                        (pImpRec->eShapeType == mso_sptRectangle)
                        && (eWrapMode == mso_wrapSquare)
                        && ShapeHasText(pImpRec->nShapeId, rObjData.nOldFilePos)
                    )
                );
            }
Comment 4 michael.ruess 2004-07-15 12:24:43 UTC
MRU->MM: autowidth frames have now been implemented into Writer. Please adapt
import of such objects as CMC proposed.
Comment 5 martin_maher 2004-07-19 16:57:24 UTC
mmaher: fixed in adare
Comment 6 martin_maher 2004-10-19 14:29:28 UTC
reopening to reassign
Comment 7 martin_maher 2004-10-19 14:30:07 UTC
reassigning to mru
Comment 8 martin_maher 2004-10-19 14:30:34 UTC
Fixed in adare
Comment 9 michael.ruess 2004-10-22 09:25:05 UTC
Verified fix in CWS adarefilterteam29.
Comment 10 michael.ruess 2004-11-05 14:02:22 UTC
Checked integration in 680m60.