To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=75189


User as changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|as                        |fs
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Thu Apr 19 12:32:36 +0000 
2007 -------
AS->FS: As discussed ...
extending the MediaDescriptor wouldnt be a good idea.
It's not guaranteed that e.g. loadComponentFromURL()
will return a writer component even if you specified e.g. an ODT file.
So "patching" any component to an e.g. ReportDesigner
cant work.

Possible solution:

a) create a writer model explicitly
xModel = xSMGR->createInstance("com.sun.star.text.TextDocument")

b) load your content
xModel.load("file:///test.odt")

c) change its module identifier
xModel->setModuleIdentifier("com.sun.star.db.ReportDesigner")

d) create frame and view suitable for this model
(Must be done by using a workaround till we will design our
new ViewControllerFactory!)
lArgs [0].Name = "Model"
lArgs[0].Value <<= xModel
lArgs [1].Name = "URL"
lArgs[1].Value <<= "file:///test.odt"
xDesktop->loadComponentFromURL("private:object", _"blank", 0, lArgs)

Feel free to contact me in case this solution does not work.
Andreas

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to