diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-05 22:03:01 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-05 22:03:01 +0100 |
commit | 4fa9df70fc2aadfc3777878e6e8d7a6e02715cbd (patch) | |
tree | 9011bc8e72149a7e20d4aaa1c7b2d4bb0a1fc496 /wizards/com | |
parent | 5a6a877ad0cc8b0703d55302ac01bf79530664fe (diff) |
autorecovery: allow for a human-readable DocumentServiceName instead of this strange class ID when creating a document definition
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java index 59c99b77de03..c1f8bee703db 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java +++ b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java @@ -136,15 +136,14 @@ public class ReportBuilderImplementation extends ReportImplementationHelper * @param _aDoc * @param _xConnection */ - private void initialize(Object _aDoc, XConnection _xConnection) + private void initialize(Object _aDoc) { m_aReportDocument = _aDoc; try { NamedValueCollection creationArgs = new NamedValueCollection(); - creationArgs.put( "ActiveConnection", _xConnection ); - creationArgs.put( "MediaType", "com.sun.star.report.ReportDefinition" ); + creationArgs.put( "DocumentServiceName", "com.sun.star.report.ReportDefinition" ); creationArgs.put( "Mode", "remote" ); XComponent[] docDefinition = new XComponent[] { null }; @@ -249,7 +248,7 @@ public class ReportBuilderImplementation extends ReportImplementationHelper { if (m_xFrame == null) { - initialize(getRecordParser().getReportDocuments(), getConnection()); + initialize(getRecordParser().getReportDocuments()); m_xFrame = getReportDefinition().getCurrentController().getFrame(); setPageOrientation(m_nDefaultPageOrientation, true /* NO_LAYOUT*/); } |