diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-25 13:26:20 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-25 13:26:20 +0000 |
commit | e9d71df6cd88bbd42402ffb70b648fbb101aa58b (patch) | |
tree | a1f921831fbe60d7bb8306a716bef27f9ec18aeb /forms/qa | |
parent | 11ff4a2684ebd194bd6644ef59a46c0f4fb7c8f0 (diff) |
INTEGRATION: CWS xformsdocmodify (1.5.24); FILE MERGED
2008/06/04 20:58:18 fs 1.5.24.1: #i90363# toggleFormDesignMode: use proper dispatch URL when our document is an XML form document
Diffstat (limited to 'forms/qa')
-rw-r--r-- | forms/qa/integration/forms/DocumentViewHelper.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/forms/qa/integration/forms/DocumentViewHelper.java b/forms/qa/integration/forms/DocumentViewHelper.java index be7c70ca3bfd..2ba9148b3a7a 100644 --- a/forms/qa/integration/forms/DocumentViewHelper.java +++ b/forms/qa/integration/forms/DocumentViewHelper.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DocumentViewHelper.java,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -39,17 +39,16 @@ import com.sun.star.view.*; import com.sun.star.beans.*; import com.sun.star.container.*; import com.sun.star.form.*; - -import integration.forms.DocumentHelper; +import org.openoffice.xforms.XMLDocument; /**************************************************************************/ /** provides a small wrapper around a document view */ -class DocumentViewHelper +public class DocumentViewHelper { private XMultiServiceFactory m_orb; private XController m_controller; - private DocumentHelper m_document; + private DocumentHelper m_document; /* ------------------------------------------------------------------ */ final protected XController getController() @@ -174,7 +173,10 @@ class DocumentViewHelper */ protected void toggleFormDesignMode( ) throws java.lang.Exception { - dispatch( ".uno:SwitchControlDesignMode" ); + if ( m_document instanceof XMLDocument ) + dispatch( ".uno:SwitchXFormsDesignMode" ); + else + dispatch( ".uno:SwitchControlDesignMode" ); } /* ------------------------------------------------------------------ */ |