INTEGRATION: CWS fwkdbdesign01 (1.10.58); FILE MERGED

2007/03/07 08:14:45 fs 1.10.58.2: #i74951# pass a ModuleIdentifier when creating a new form document - this will give us a dedicated form designer UI
2007/03/07 08:10:43 fs 1.10.58.1: slight refactoring of the TextDocument constructors, in preparation of (a part of) #i74951#
This commit is contained in:
Ivo Hinkelmann 2007-04-16 15:52:19 +00:00
parent 61bf176058
commit 282597f8bd

View file

@ -4,9 +4,9 @@
*
* $RCSfile: FormDocument.java,v $
*
* $Revision: 1.10 $
* $Revision: 1.11 $
*
* last change: $Author: kz $ $Date: 2006-07-06 14:18:56 $
* last change: $Author: ihi $ $Date: 2007-04-16 16:52:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -88,9 +88,10 @@ public class FormDocument extends TextDocument {
final static String SOMAINFORM = "MainForm";
final static String SOSUBFORM = "SubForm";
private final static PropertyValue MODULE_IDENTIFIER = new PropertyValue( "ModuleIdentifier", -1, "com.sun.star.sdb.FormDesign", com.sun.star.beans.PropertyState.DIRECT_VALUE );
public FormDocument(XMultiServiceFactory xMSF, boolean bshowStatusIndicator, boolean bgetCurrentFrame, Resource oResource) {
super(xMSF, bshowStatusIndicator, bgetCurrentFrame, null, "private:factory/swriter", false);
public FormDocument(XMultiServiceFactory xMSF, Resource oResource) {
super(xMSF, new PropertyValue[]{ MODULE_IDENTIFIER }, true, null);
try {
oFormHandler = new FormHandler(xMSF, xTextDocument);
oFormHandler.setDrawObjectsCaptureMode(false);
@ -112,7 +113,6 @@ public class FormDocument extends TextDocument {
e.printStackTrace(System.out);
}}
public void addUIFormController(UIControlArranger _curUIControlArranger){
this.curUIControlArranger = _curUIControlArranger;
}