Kaydet (Commit) de4f2cb2 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS eforms2 (1.27.20); FILE MERGED

2004/10/01 18:04:45 dvo 1.27.20.8: #i34802# load/save binding fir lists as form:xforms-list-source
2004/08/25 17:48:13 dvo 1.27.20.7: #i31958# load/save xforms:submission attribute on buttons
2004/08/16 19:56:42 dvo 1.27.20.6: RESYNC: (1.34-1.35); FILE MERGED
2004/07/27 12:10:57 fs 1.27.20.5: RESYNC: (1.31-1.34); FILE MERGED
2004/06/25 09:55:48 dvo 1.27.20.4: RESYNC: (1.28-1.31); FILE MERGED
2004/04/08 10:29:01 dvo 1.27.20.3: RESYNC: (1.27-1.28); FILE MERGED
2004/03/18 17:38:15 dvo 1.27.20.2: #114856# continue XForms implementation
         (also remove define DVO_XFORMS)
2004/01/29 11:02:24 dvo 1.27.20.1: #114856# save xforms:bind attribute on controls
üst d91a44a5
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: elementexport.cxx,v $ * $RCSfile: elementexport.cxx,v $
* *
* $Revision: 1.35 $ * $Revision: 1.36 $
* *
* last change: $Author: hr $ $Date: 2004-08-02 14:13:42 $ * last change: $Author: obo $ $Date: 2004-11-16 10:08:56 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -157,6 +157,14 @@ ...@@ -157,6 +157,14 @@
#ifndef _XMLOFF_TEXTPRMAP_HXX_ #ifndef _XMLOFF_TEXTPRMAP_HXX_
#include "txtprmap.hxx" #include "txtprmap.hxx"
#endif #endif
#ifndef XMLOFF_FORMS_FORMCELLBINDING
#include "formcellbinding.hxx"
#endif
#ifndef _XMLOFF_XFORMSEXPORT_HXX
#include "xformsexport.hxx"
#endif
#ifndef _COM_SUN_STAR_FORM_BINDING_XBINDABLEVALUE_HPP_ #ifndef _COM_SUN_STAR_FORM_BINDING_XBINDABLEVALUE_HPP_
#include <com/sun/star/form/binding/XBindableValue.hpp> #include <com/sun/star/form/binding/XBindableValue.hpp>
#endif #endif
...@@ -970,6 +978,32 @@ namespace xmloff ...@@ -970,6 +978,32 @@ namespace xmloff
#endif #endif
} }
if ( m_nIncludeBindings & BA_XFORMS_BIND )
{
exportXFormsBindAttributes();
#if OSL_DEBUG_LEVEL > 0
// reset the bit for later checking
nIncludeBinding = nIncludeBinding & ~BA_XFORMS_BIND;
#endif
}
if ( m_nIncludeBindings & BA_XFORMS_LISTBIND )
{
exportXFormsListAttributes();
#if OSL_DEBUG_LEVEL > 0
// reset the bit for later checking
nIncludeBinding = nIncludeBinding & ~BA_XFORMS_LISTBIND;
#endif
}
if ( m_nIncludeBindings & BA_XFORMS_SUBMISSION )
{
exportXFormsSubmissionAttributes();
#if OSL_DEBUG_LEVEL > 0
// reset the bit for later checking
nIncludeBinding = nIncludeBinding & ~BA_XFORMS_SUBMISSION;
#endif
}
OSL_ENSURE( 0 == nIncludeBinding, OSL_ENSURE( 0 == nIncludeBinding,
"OControlExport::exportBindingAtributes: forgot some flags!"); "OControlExport::exportBindingAtributes: forgot some flags!");
...@@ -1691,6 +1725,24 @@ namespace xmloff ...@@ -1691,6 +1725,24 @@ namespace xmloff
m_nIncludeBindings |= BA_LIST_CELL_RANGE; m_nIncludeBindings |= BA_LIST_CELL_RANGE;
} }
} }
// is control bound to XForms?
if( getXFormsBindName( m_xProps ).getLength() > 0 )
{
m_nIncludeBindings |= BA_XFORMS_BIND;
}
// is (list-)control bound to XForms list?
if( getXFormsListBindName( m_xProps ).getLength() > 0 )
{
m_nIncludeBindings |= BA_XFORMS_LISTBIND;
}
// does the control have an XForms submission?
if( getXFormsSubmissionName( m_xProps ).getLength() > 0 )
{
m_nIncludeBindings |= BA_XFORMS_SUBMISSION;
}
} }
//--------------------------------------------------------------------- //---------------------------------------------------------------------
...@@ -1737,6 +1789,24 @@ namespace xmloff ...@@ -1737,6 +1789,24 @@ namespace xmloff
} }
} }
//---------------------------------------------------------------------
void OControlExport::exportXFormsBindAttributes()
{
rtl::OUString sBindName = getXFormsBindName( m_xProps );
AddAttribute( XML_NAMESPACE_XFORMS, "bind", sBindName );
}
//---------------------------------------------------------------------
void OControlExport::exportXFormsListAttributes()
{
rtl::OUString sBindName = getXFormsListBindName( m_xProps );
AddAttribute( XML_NAMESPACE_FORM, "xforms-list-source", sBindName );
}
//---------------------------------------------------------------------
void OControlExport::exportXFormsSubmissionAttributes()
{
rtl::OUString sSubmission = getXFormsSubmissionName( m_xProps );
AddAttribute( XML_NAMESPACE_XFORMS, "submission", sSubmission );
}
//--------------------------------------------------------------------- //---------------------------------------------------------------------
void OControlExport::exportCellListSourceRange( ) void OControlExport::exportCellListSourceRange( )
{ {
......
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