summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/reportbuilder
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-05 22:03:01 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-05 22:03:01 +0100
commit4fa9df70fc2aadfc3777878e6e8d7a6e02715cbd (patch)
tree9011bc8e72149a7e20d4aaa1c7b2d4bb0a1fc496 /wizards/com/sun/star/wizards/reportbuilder
parent5a6a877ad0cc8b0703d55302ac01bf79530664fe (diff)
autorecovery: allow for a human-readable DocumentServiceName instead of this strange class ID when creating a document definition
Diffstat (limited to 'wizards/com/sun/star/wizards/reportbuilder')
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java7
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*/);
}