LibreOffice Module xmloff (master) 1
layerimport.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include "layerimport.hxx"
21#include "formenums.hxx"
22#include "elementimport.hxx"
23#include "officeforms.hxx"
24#include "strings.hxx"
25#include <xmloff/xmlictxt.hxx>
26#include <xmloff/xmlstyle.hxx>
27#include <xmloff/families.hxx>
28#include <xmloff/xmlimp.hxx>
30#include <xmloff/xmlnumfi.hxx>
31#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
32#include <com/sun/star/form/FormSubmitEncoding.hpp>
33#include <com/sun/star/form/FormSubmitMethod.hpp>
34#include <com/sun/star/sdb/CommandType.hpp>
35#include <com/sun/star/form/NavigationBarMode.hpp>
36#include <com/sun/star/form/TabulatorCycle.hpp>
37#include <com/sun/star/form/FormButtonType.hpp>
38#include <com/sun/star/form/ListSourceType.hpp>
39#include "formevents.hxx"
40#include "formcellbinding.hxx"
42#include <xmloff/xmltoken.hxx>
44#include <rtl/strbuf.hxx>
46#include <algorithm>
47
48namespace xmloff
49{
50
51using namespace ::com::sun::star::uno;
52using namespace ::com::sun::star::awt;
53using namespace ::com::sun::star::lang;
54using namespace ::com::sun::star::beans;
55using namespace ::com::sun::star::container;
56using namespace ::com::sun::star::drawing;
57using namespace ::com::sun::star;
58using namespace ::com::sun::star::util;
59using namespace ::com::sun::star::form;
60using namespace ::com::sun::star::sdb;
61using namespace token;
62
63//= OFormLayerXMLImport_Impl
65 :m_rImporter(_rImporter)
66{
67 // build the attribute2property map
68 // string properties which are exported as attributes
91
92 // properties not added because they're already present in another form
93 OSL_ENSURE(
96 "OFormLayerXMLImport_Impl::OFormLayerXMLImport_Impl: invalid attribute names (1)!");
97 // if this fails, we would have to add a translation from faAction->PROPERTY_TARGETURL
98 // We did not because we already have one CCAFlags::TargetLocation->PROPERTY_TARGETURL,
99 // and CCAFlags::TargetLocation and faAction should be represented by the same attribute
100
101 OSL_ENSURE(
104 "OFormLayerXMLImport_Impl::OFormLayerXMLImport_Impl: invalid attribute names (2)!");
105 // the same for faName, CCAFlags::Name and PROPERTY_NAME
106
107 // boolean properties which are exported as attributes
154
155 // the int16 attributes
164
165 // the int32 attributes
168
169 // the enum attributes
213
214 // 'initialize'
216}
217
219{}
220
222{
223 OSL_ENSURE(!m_xAutoStyles.is(), "OFormLayerXMLImport_Impl::setAutoStyleContext: not to be called twice!");
224 m_xAutoStyles.set(_pNewContext);
225}
226
227void OFormLayerXMLImport_Impl::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const OUString& _rControlNumberStyleName)
228{
229 OSL_ENSURE(_rxControlModel.is() && (!_rControlNumberStyleName.isEmpty()),
230 "OFormLayerXMLImport_Impl::applyControlNumberStyle: invalid arguments (this will crash)!");
231
232 OSL_ENSURE(m_xAutoStyles.is(), "OFormLayerXMLImport_Impl::applyControlNumberStyle: have no auto style context!");
233 if (!m_xAutoStyles.is())
234 {
235 m_xAutoStyles.set(m_rImporter.GetShapeImport()->GetAutoStylesContext());
236 }
237
238 if (!m_xAutoStyles.is())
239 return;
240
241 const SvXMLStyleContext* pStyle = m_xAutoStyles->FindStyleChildContext(XmlStyleFamily::DATA_STYLE, _rControlNumberStyleName);
242 if (pStyle)
243 {
244 const SvXMLNumFormatContext* pDataStyle = static_cast<const SvXMLNumFormatContext*>(pStyle);
245
246 // set this format at the control model
247 try
248 {
249 // the models number format supplier and formats
250 Reference< XNumberFormatsSupplier > xFormatsSupplier;
251 _rxControlModel->getPropertyValue(PROPERTY_FORMATSSUPPLIER) >>= xFormatsSupplier;
252 Reference< XNumberFormats > xFormats;
253 if (xFormatsSupplier.is())
254 xFormats = xFormatsSupplier->getNumberFormats();
255 OSL_ENSURE(xFormats.is(), "OFormLayerXMLImport_Impl::applyControlNumberStyle: could not obtain the controls number formats!");
256
257 // obtain a key
258 if (xFormats.is())
259 {
260 sal_Int32 nFormatKey = const_cast<SvXMLNumFormatContext*>(pDataStyle)->CreateAndInsert( xFormatsSupplier );
261 OSL_ENSURE(-1 != nFormatKey, "OFormLayerXMLImport_Impl::applyControlNumberStyle: could not obtain a format key!");
262
263 // set the format on the control model
264 _rxControlModel->setPropertyValue(PROPERTY_FORMATKEY, Any(nFormatKey));
265 }
266 }
267 catch(const Exception&)
268 {
269 OSL_FAIL("OFormLayerXMLImport_Impl::applyControlNumberStyle: couldn't set the format!");
270 }
271 }
272 else
273 OSL_FAIL("OFormLayerXMLImport_Impl::applyControlNumberStyle: did not find the style with the given name!");
274}
275
276void OFormLayerXMLImport_Impl::registerCellValueBinding( const Reference< XPropertySet >& _rxControlModel, const OUString& _rCellAddress )
277{
278 OSL_ENSURE( _rxControlModel.is() && !_rCellAddress.isEmpty(),
279 "OFormLayerXMLImport_Impl::registerCellValueBinding: invalid arguments!" );
280 m_aCellValueBindings.emplace_back( _rxControlModel, _rCellAddress );
281}
282
284 const Reference< XPropertySet >& _rxControlModel,
285 const OUString& _rBindingID )
286{
287 // TODO: is an empty binding name allowed?
288 OSL_ENSURE( _rxControlModel.is(), "need model" );
289
290 m_aXFormsValueBindings.emplace_back( _rxControlModel, _rBindingID );
291}
292
294 const Reference< XPropertySet >& _rxControlModel,
295 const OUString& _rBindingID )
296{
297 // TODO: is an empty binding name allowed?
298 OSL_ENSURE( _rxControlModel.is(), "need model" );
299
300 m_aXFormsListBindings.emplace_back( _rxControlModel, _rBindingID );
301}
302
304 const Reference< XPropertySet >& _rxControlModel,
305 const OUString& _rSubmissionID )
306{
307 // TODO: is an empty binding name allowed?
308 OSL_ENSURE( _rxControlModel.is(), "need model" );
309
310 m_aXFormsSubmissions.emplace_back( _rxControlModel, _rSubmissionID );
311}
312
313void OFormLayerXMLImport_Impl::registerCellRangeListSource( const Reference< XPropertySet >& _rxControlModel, const OUString& _rCellRangeAddress )
314{
315 OSL_ENSURE( _rxControlModel.is() && !_rCellRangeAddress.isEmpty(),
316 "OFormLayerXMLImport_Impl::registerCellRangeListSource: invalid arguments!" );
317 m_aCellRangeListSources.emplace_back( _rxControlModel, _rCellRangeAddress );
318}
319const SvXMLStyleContext* OFormLayerXMLImport_Impl::getStyleElement(const OUString& _rStyleName) const
320{
321 OSL_ENSURE( m_xAutoStyles.is(), "OFormLayerXMLImport_Impl::getStyleElement: have no auto style context!" );
322 // did you use setAutoStyleContext?
323
324 const SvXMLStyleContext* pControlStyle =
325 m_xAutoStyles.is() ? m_xAutoStyles->FindStyleChildContext( XmlStyleFamily::TEXT_PARAGRAPH, _rStyleName ) : nullptr;
326 OSL_ENSURE( pControlStyle || !m_xAutoStyles.is(),
327 OStringBuffer("OFormLayerXMLImport_Impl::getStyleElement: did not find the style named \"" +
328 OUStringToOString(_rStyleName, RTL_TEXTENCODING_ASCII_US) +
329 "\"!").getStr() );
330 return pControlStyle;
331}
332
334{
335 // install our own translation table. We need to disable the other tables because of name conflicts.
336 m_rImporter.GetEventImport().PushTranslationTable();
337 m_rImporter.GetEventImport().AddTranslationTable(g_pFormsEventTranslation);
338}
339
341{
342 // install the original event tables.
343 m_rImporter.GetEventImport().PopTranslationTable();
344}
345
346void OFormLayerXMLImport_Impl::registerControlId(const Reference< XPropertySet >& _rxControl, const OUString& _rId)
347{
348 OSL_ENSURE(m_aCurrentPageIds != m_aControlIds.end(), "OFormLayerXMLImport_Impl::registerControlId: no current page!");
349 OSL_ENSURE(!_rId.isEmpty(), "OFormLayerXMLImport_Impl::registerControlId: invalid (empty) control id!");
350
351 OSL_ENSURE(m_aCurrentPageIds->second.end() == m_aCurrentPageIds->second.find(_rId), "OFormLayerXMLImport_Impl::registerControlId: control id already used!");
352 m_aCurrentPageIds->second[_rId] = _rxControl;
353}
354
355void OFormLayerXMLImport_Impl::registerControlReferences(const Reference< XPropertySet >& _rxControl, const OUString& _rReferringControls)
356{
357 OSL_ENSURE(!_rReferringControls.isEmpty(), "OFormLayerXMLImport_Impl::registerControlReferences: invalid (empty) control id list!");
358 OSL_ENSURE(_rxControl.is(), "OFormLayerXMLImport_Impl::registerControlReferences: invalid (NULL) control!");
359 m_aControlReferences.emplace_back( _rxControl, _rReferringControls );
360}
361
362void OFormLayerXMLImport_Impl::startPage(const Reference< XDrawPage >& _rxDrawPage)
363{
365
366 OSL_ENSURE(_rxDrawPage.is(), "OFormLayerXMLImport_Impl::startPage: NULL page!");
367 m_xCurrentPageFormsSupp.set(_rxDrawPage, css::uno::UNO_QUERY);
368 OSL_ENSURE( m_xCurrentPageFormsSupp.is(), "OFormLayerXMLImport_Impl::startPage: invalid draw page (no XFormsSupplier)!" );
369 if ( !m_xCurrentPageFormsSupp.is() )
370 return;
371
372 // add a new entry to our page map
373 ::std::pair< MapDrawPage2Map::iterator, bool > aPagePosition = m_aControlIds.emplace(_rxDrawPage, MapString2PropertySet());
374 OSL_ENSURE(aPagePosition.second, "OFormLayerXMLImport_Impl::startPage: already imported this page!");
375 m_aCurrentPageIds = aPagePosition.first;
376}
377
379{
380 OSL_ENSURE( m_xCurrentPageFormsSupp.is(), "OFormLayerXMLImport_Impl::endPage: sure you called startPage before?" );
381
382 // do some knittings for the controls which are referring to each other
383 try
384 {
385 static const sal_Unicode s_nSeparator = ',';
386 OUString sCurrentReferring;
387 OUString sSeparator(&s_nSeparator, 1);
388 Reference< XPropertySet > xCurrentReferring;
389 sal_Int32 nSeparator, nPrevSep;
390 for ( const auto& rReferences : m_aControlReferences )
391 {
392 // the list of control ids is comma separated
393
394 // in a list of n ids there are only n-1 separators ... have to catch this last id
395 // -> normalize the list
396 OUString sReferring = rReferences.second + sSeparator;
397
398 nPrevSep = -1;
399 while (-1 != (nSeparator = sReferring.indexOf(s_nSeparator, nPrevSep + 1)))
400 {
401 sCurrentReferring = sReferring.copy(nPrevSep + 1, nSeparator - nPrevSep - 1);
402 xCurrentReferring = lookupControlId(sCurrentReferring);
403 if (xCurrentReferring.is())
404 // if this condition fails, this is an error, but lookupControlId should have asserted this ...
405 xCurrentReferring->setPropertyValue( PROPERTY_CONTROLLABEL, Any( rReferences.first ) );
406
407 nPrevSep = nSeparator;
408 }
409 }
410 }
411 catch(Exception&)
412 {
413 TOOLS_WARN_EXCEPTION("xmloff.forms",
414 "unable to knit the control references (caught an exception)!");
415 }
416
417 // now that we have all children of the forms collection, attach the events
418 Reference< XIndexAccess > xIndexContainer;
419 if ( m_xCurrentPageFormsSupp.is() && m_xCurrentPageFormsSupp->hasForms() )
420 xIndexContainer.set(m_xCurrentPageFormsSupp->getForms(), css::uno::UNO_QUERY);
421 if ( xIndexContainer.is() )
423
424 // clear the structures for the control references.
425 m_aControlReferences.clear();
426
427 // and no we have no current page anymore
429}
430
431Reference< XPropertySet > OFormLayerXMLImport_Impl::lookupControlId(const OUString& _rControlId)
432{
433 OSL_ENSURE(m_aCurrentPageIds != m_aControlIds.end(), "OFormLayerXMLImport_Impl::lookupControlId: no current page!");
434 Reference< XPropertySet > xReturn;
435 if (m_aCurrentPageIds != m_aControlIds.end())
436 {
437 MapString2PropertySet::const_iterator aPos = m_aCurrentPageIds->second.find(_rControlId);
438 if (m_aCurrentPageIds->second.end() != aPos)
439 xReturn = aPos->second;
440 else
441 SAL_WARN("xmloff", "unknown control id " << _rControlId);
442 }
443 return xReturn;
444}
445
447 SvXMLImport& _rImport)
448{
449 return new OFormsRootImport( _rImport );
450}
451
453 sal_Int32 nElement,
454 const Reference< xml::sax::XFastAttributeList >&)
455{
456 SvXMLImportContext* pContext = nullptr;
457 if ( (nElement & TOKEN_MASK) == XML_FORM )
458 {
459 if ( m_xCurrentPageFormsSupp.is() )
460 pContext = new OFormImport(*this, *this, m_xCurrentPageFormsSupp->getForms() );
461 }
462 else if ( nElement == XML_ELEMENT(XFORMS, XML_MODEL) )
463 {
465 }
466 else
467 SAL_WARN("xmloff", "unknown element " << SvXMLImport::getPrefixAndNameFromToken(nElement));
468
469 return pContext;
470}
471
473{
474 SvXMLImport& rImport = getGlobalContext();
475 if ( !( rImport.getImportFlags() & SvXMLImportFlags::CONTENT ) )
476 return;
477
478 // create (and bind) the spreadsheet cell bindings
479 if ( !m_aCellValueBindings.empty()
480 && FormCellBindingHelper::isCellBindingAllowed( rImport.GetModel() )
481 )
482 {
483 for ( const auto& rCellBindings : m_aCellValueBindings )
484 {
485 try
486 {
487 FormCellBindingHelper aHelper( rCellBindings.first, rImport.GetModel() );
488 OSL_ENSURE( aHelper.isCellBindingAllowed(), "OFormLayerXMLImport_Impl::documentDone: can't bind this control model!" );
489 if ( aHelper.isCellBindingAllowed() )
490 {
491 // There are special bindings for listboxes. See
492 // OListAndComboImport::doRegisterCellValueBinding for a comment on this HACK.
493 OUString sBoundCellAddress( rCellBindings.second );
494 sal_Int32 nIndicator = sBoundCellAddress.lastIndexOf( ":index" );
495
496 bool bUseIndexBinding = false;
497 if ( nIndicator != -1 )
498 {
499 sBoundCellAddress = sBoundCellAddress.copy( 0, nIndicator );
500 bUseIndexBinding = true;
501 }
502
503 aHelper.setBinding( aHelper.createCellBindingFromStringAddress( sBoundCellAddress, bUseIndexBinding ) );
504 }
505 }
506 catch( const Exception& )
507 {
508 TOOLS_WARN_EXCEPTION("xmloff.forms",
509 "caught an exception while binding to a cell!");
510 }
511 }
512 m_aCellValueBindings.clear();
513 }
514
515 // the same for the spreadsheet cell range list sources
516 if ( !m_aCellRangeListSources.empty()
517 && FormCellBindingHelper::isListCellRangeAllowed( rImport.GetModel() )
518 )
519 {
520 for ( const auto& rRangeBindings : m_aCellRangeListSources )
521 {
522 try
523 {
524 FormCellBindingHelper aHelper( rRangeBindings.first, rImport.GetModel() );
525 OSL_ENSURE( aHelper.isListCellRangeAllowed(), "OFormLayerXMLImport_Impl::documentDone: can't bind this control model!" );
526 if ( aHelper.isListCellRangeAllowed() )
527 {
528 aHelper.setListSource( aHelper.createCellListSourceFromStringAddress( rRangeBindings.second ) );
529 }
530 }
531 catch( const Exception& )
532 {
533 TOOLS_WARN_EXCEPTION("xmloff.forms",
534 "caught an exception while binding to a cell range!");
535 }
536 }
538 }
539
540 // process XForms-bindings; call registerXFormsValueBinding for each
541 for (const auto& aXFormsValueBinding : m_aXFormsValueBindings)
542 bindXFormsValueBinding(rImport.GetModel(), aXFormsValueBinding);
543 // same for list bindings
544 for (const auto& aXFormsListBindings : m_aXFormsListBindings)
545 bindXFormsListBinding(rImport.GetModel(), aXFormsListBindings);
546 // same for submissions
547 for (const auto& aXFormsSubmission : m_aXFormsSubmissions)
548 bindXFormsSubmission(rImport.GetModel(), aXFormsSubmission);
549}
550
551} // namespace xmloff
552
553/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
encapsulates functionality related to binding a form control to a spreadsheet cell
bool isCellBindingAllowed() const
checks whether it's possible to bind the control model to a spreadsheet cell
bool isListCellRangeAllowed() const
checks whether it's possible to bind the control model to a range of spreadsheet cells supplying the ...
void addEnumProperty(sal_Int32 nAttributeToken, const OUString &_rPropertyName, const SvXMLEnumMapEntry< EnumT > *_pValueMap, const css::uno::Type *_pType=nullptr)
add an attribute assignment referring to an enum property to the map
void addInt16Property(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to an int16 property to the map
void addStringProperty(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to a string property to the map
void addBooleanProperty(sal_Int32 nAttributeToken, const OUString &_rPropertyName, const bool _bAttributeDefault, const bool _bInverseSemantics=false)
add an attribute assignment referring to a boolean property to the map
void addInt32Property(sal_Int32 nAttributeToken, const OUString &_rPropertyName)
add an attribute assignment referring to an int32 property to the map
static OUString getFormAttributeName(FormAttributes _eAttrib)
retrieves the name of an attribute of a form xml representation
static sal_Int32 getFormAttributeToken(FormAttributes _eAttrib)
retrieves the name of an attribute of a form xml representation
static OUString getCommonControlAttributeName(CCAFlags _nId)
calculates the xml attribute representation of a common control attribute.
static sal_Int32 getCommonControlAttributeToken(CCAFlags _nId)
calculates the xml attribute representation of a common control attribute.
static sal_Int32 getDatabaseAttributeToken(DAFlags _nId)
calculates the xml attribute representation of a database attribute.
static sal_Int32 getSpecialAttributeToken(SCAFlags _nId)
calculates the xml attribute representation of a special attribute.
void setEvents(const css::uno::Reference< css::container::XIndexAccess > &_rxContainer)
helper class importing a single <form:form> element
void registerControlReferences(const css::uno::Reference< css::beans::XPropertySet > &_rxControl, const OUString &_rReferringControls)
::std::vector< ModelStringPair > m_aXFormsListBindings
Definition: layerimport.hxx:80
css::uno::Reference< css::form::XFormsSupplier2 > m_xCurrentPageFormsSupp
the supplier for the forms of the currently imported page
Definition: layerimport.hxx:58
void registerCellRangeListSource(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rCellRangeAddress)
css::uno::Reference< css::beans::XPropertySet > lookupControlId(const OUString &_rControlId)
get the control with the given id
::std::vector< ModelStringPair > m_aControlReferences
Definition: layerimport.hxx:70
void applyControlNumberStyle(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rControlNumberStyleName)
::std::vector< ModelStringPair > m_aXFormsSubmissions
Definition: layerimport.hxx:83
rtl::Reference< SvXMLStylesContext > m_xAutoStyles
Definition: layerimport.hxx:59
::std::vector< ModelStringPair > m_aXFormsValueBindings
Definition: layerimport.hxx:77
std::map< OUString, css::uno::Reference< css::beans::XPropertySet > > MapString2PropertySet
Definition: layerimport.hxx:61
void registerXFormsSubmission(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rSubmissionID)
void endPage()
end importing the forms of the current page
void documentDone()
to be called when the document has been completely imported
::std::vector< ModelStringPair > m_aCellRangeListSources
Definition: layerimport.hxx:74
MapDrawPage2Map::iterator m_aCurrentPageIds
Definition: layerimport.hxx:65
OFormLayerXMLImport_Impl(SvXMLImport &_rImporter)
Definition: layerimport.cxx:64
void registerCellValueBinding(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rCellAddress)
void setAutoStyleContext(SvXMLStylesContext *_pNewContext)
announces the auto-style context to the form importer
::std::vector< ModelStringPair > m_aCellValueBindings
Definition: layerimport.hxx:72
SvXMLImportContext * createContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &_rxAttribs)
create an <type>SvXMLImportContext</type> instance which is able to import the <form:form> element.
const SvXMLStyleContext * getStyleElement(const OUString &_rStyleName) const
void registerXFormsListBinding(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rBindingID)
OAttribute2Property m_aAttributeMetaData
Definition: layerimport.hxx:54
void registerXFormsValueBinding(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const OUString &_rBindingID)
void startPage(const css::uno::Reference< css::drawing::XDrawPage > &_rxDrawPage)
start importing the forms of the given page
static SvXMLImportContext * createOfficeFormsContext(SvXMLImport &_rImport)
creates an import context for the office:forms element
void registerControlId(const css::uno::Reference< css::beans::XPropertySet > &_rxControl, const OUString &_rId)
#define TOOLS_WARN_EXCEPTION(area, stream)
Any aHelper
@ AutoCompletion
@ ListSource_TYPE
@ ConvertEmpty
@ InputRequired
@ TargetLocation
@ CurrentSelected
#define SAL_WARN(area, stream)
@ Exception
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
constexpr OUStringLiteral PROPERTY_INPUT_REQUIRED
Definition: strings.hxx:67
constexpr OUStringLiteral PROPERTY_CYCLE
Definition: strings.hxx:62
constexpr OUStringLiteral PROPERTY_BUTTONTYPE
Definition: strings.hxx:63
constexpr OUStringLiteral PROPERTY_BLOCK_INCREMENT
Definition: strings.hxx:123
const SvXMLEnumMapEntry< TriState > aCheckStateMap[]
Definition: formenums.cxx:99
constexpr OUStringLiteral PROPERTY_DEFAULT_STATE
Definition: strings.hxx:40
constexpr OUStringLiteral PROPERTY_ALLOWUPDATES
Definition: strings.hxx:54
const SvXMLEnumMapEntry< NavigationBarMode > aNavigationTypeMap[]
Definition: formenums.cxx:66
constexpr OUStringLiteral PROPERTY_LINECOUNT
Definition: strings.hxx:46
constexpr OUStringLiteral PROPERTY_STRICTFORMAT
Definition: strings.hxx:71
constexpr OUStringLiteral PROPERTY_ALLOWDELETES
Definition: strings.hxx:52
constexpr OUStringLiteral PROPERTY_TARGETFRAME
Definition: strings.hxx:34
constexpr OUStringLiteral PROPERTY_ENABLED
Definition: strings.hxx:43
const SvXMLEnumMapEntry< sal_Int16 > aVisualEffectMap[]
Definition: formenums.cxx:157
const SvXMLEnumMapEntry< sal_Int32 > aOrientationMap[]
Definition: formenums.cxx:151
constexpr OUStringLiteral PROPERTY_ESCAPEPROCESSING
Definition: strings.hxx:56
const SvXMLEnumMapEntry< FormSubmitMethod > aSubmitMethodMap[]
Definition: formenums.cxx:53
constexpr OUStringLiteral PROPERTY_COMMAND_TYPE
Definition: strings.hxx:60
@ faEscapeProcessing
constexpr OUStringLiteral PROPERTY_TRISTATE
Definition: strings.hxx:75
constexpr OUStringLiteral PROPERTY_TITLE
Definition: strings.hxx:36
constexpr OUStringLiteral PROPERTY_DEFAULTBUTTON
Definition: strings.hxx:74
constexpr OUStringLiteral PROPERTY_ALLOWINSERTS
Definition: strings.hxx:53
constexpr OUStringLiteral PROPERTY_COMMAND
Definition: strings.hxx:48
constexpr OUStringLiteral PROPERTY_DATAFIELD
Definition: strings.hxx:64
constexpr OUStringLiteral PROPERTY_STATE
Definition: strings.hxx:42
const SvXMLEnumMapEntry< ListSourceType > aListSourceTypeMap[]
Definition: formenums.cxx:88
constexpr OUStringLiteral PROPERTY_MULTISELECTION
Definition: strings.hxx:73
const SvXMLEnumMapEntry< FormButtonType > aFormButtonTypeMap[]
Definition: formenums.cxx:80
constexpr OUStringLiteral PROPERTY_NAME
Definition: strings.hxx:31
const XMLEventNameTranslation * g_pFormsEventTranslation
Definition: formevents.cxx:66
constexpr OUStringLiteral PROPERTY_LABEL
Definition: strings.hxx:33
constexpr OUStringLiteral PROPERTY_PRINTABLE
Definition: strings.hxx:38
constexpr OUStringLiteral PROPERTY_IGNORERESULT
Definition: strings.hxx:57
constexpr OUStringLiteral PROPERTY_CONTROLLABEL
Definition: strings.hxx:76
constexpr OUStringLiteral PROPERTY_READONLY
Definition: strings.hxx:39
const SvXMLEnumMapEntry< FormSubmitEncoding > aSubmitEncodingMap[]
Definition: formenums.cxx:46
constexpr OUStringLiteral PROPERTY_ORIENTATION
Definition: strings.hxx:130
constexpr OUStringLiteral PROPERTY_MAXTEXTLENGTH
Definition: strings.hxx:45
const SvXMLEnumMapEntry< sal_Int32 > aCommandTypeMap[]
Definition: formenums.cxx:59
constexpr OUStringLiteral PROPERTY_TABSTOP
Definition: strings.hxx:41
constexpr OUStringLiteral PROPERTY_SUBMIT_ENCODING
Definition: strings.hxx:58
constexpr OUStringLiteral PROPERTY_TARGETURL
Definition: strings.hxx:35
constexpr OUStringLiteral PROPERTY_VISUAL_EFFECT
Definition: strings.hxx:133
constexpr OUStringLiteral PROPERTY_DROPDOWN
Definition: strings.hxx:37
constexpr OUStringLiteral PROPERTY_ORDER
Definition: strings.hxx:51
constexpr OUStringLiteral PROPERTY_SUBMIT_METHOD
Definition: strings.hxx:59
constexpr OUStringLiteral PROPERTY_EMPTY_IS_NULL
Definition: strings.hxx:66
constexpr OUStringLiteral PROPERTY_FOCUS_ON_CLICK
Definition: strings.hxx:132
constexpr OUStringLiteral PROPERTY_APPLYFILTER
Definition: strings.hxx:55
constexpr OUStringLiteral PROPERTY_TOGGLE
Definition: strings.hxx:131
const SvXMLEnumMapEntry< TabulatorCycle > aTabulatorCycleMap[]
Definition: formenums.cxx:73
constexpr OUStringLiteral PROPERTY_MULTILINE
Definition: strings.hxx:30
constexpr OUStringLiteral PROPERTY_TABINDEX
Definition: strings.hxx:47
constexpr OUStringLiteral PROPERTY_NAVIGATION
Definition: strings.hxx:61
constexpr OUStringLiteral PROPERTY_FILTER
Definition: strings.hxx:50
constexpr OUStringLiteral PROPERTY_BOUNDCOLUMN
Definition: strings.hxx:65
constexpr OUStringLiteral PROPERTY_DATASOURCENAME
Definition: strings.hxx:49
constexpr OUStringLiteral PROPERTY_FORMATSSUPPLIER
Definition: strings.hxx:112
constexpr OUStringLiteral PROPERTY_AUTOCOMPLETE
Definition: strings.hxx:72
constexpr OUStringLiteral PROPERTY_LISTSOURCETYPE
Definition: strings.hxx:69
constexpr OUStringLiteral PROPERTY_FORMATKEY
Definition: strings.hxx:107
constexpr OUStringLiteral PROPERTY_GROUP_NAME
Definition: strings.hxx:136
sal_uInt16 sal_Unicode
void bindXFormsListBinding(Reference< XModel > const &xModel, const ::pair< Reference< XPropertySet >, OUString > &aPair)
void bindXFormsValueBinding(Reference< XModel > const &xModel, const pair< Reference< XPropertySet >, OUString > &aPair)
SvXMLImportContext * createXFormsModelContext(SvXMLImport &rImport)
create import context for xforms:model element.
void bindXFormsSubmission(Reference< XModel > const &xModel, const pair< Reference< XPropertySet >, OUString > &aPair)
#define XML_ELEMENT(prefix, name)
Definition: xmlimp.hxx:97
constexpr sal_Int32 TOKEN_MASK
Definition: xmlimp.hxx:94