Kaydet (Commit) 7c72b804 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS scriptingf4 (1.2.4); FILE MERGED

2004/05/12 10:24:17 npower 1.2.4.1: #i28818# in testing for implementation of this issue, untitiled documents not handled very well. Reason code uses URL from XModel which however is blank for untitled documents. Now using the oid ( stringified )
Issue number:
Submitted by:
Reviewed by:
üst 868252c5
......@@ -2,9 +2,9 @@
*
* $RCSfile: XStorageHelper.java,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: svesik $ $Date: 2004-04-19 23:07:58 $
* last change: $Author: rt $ $Date: 2004-05-19 08:22:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -95,6 +95,7 @@ import com.sun.star.lang.XEventListener;
import com.sun.star.lang.EventObject;
import com.sun.star.script.framework.log.LogUtils;
import com.sun.star.script.framework.provider.PathUtils;
import java.util.*;
import java.io.*;
......@@ -212,7 +213,7 @@ public class XStorageHelper implements XEventListener
public synchronized static void addNewModel( XModel model )
{
// TODO needs to cater for model for untitled document
modelMap.put( model.getURL(), model );
modelMap.put( PathUtils.getOidForModel( model ), model );
XComponent xComp = (XComponent)
UnoRuntime.queryInterface(XComponent.class, model);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment