xmloff: "form:datasource" vs. "db:data-source"
Recently xmloff started to use XML_DATASOURCE for "form:datasource"
but it actually means "data-source".
Add XML_DATA_SOURCE and use it for "db:data-source".
(regression from 3de38e9556
)
Change-Id: I893efd3fb0fb7c19ae998442459bf36cb1da0b20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109019
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
This commit is contained in:
parent
df8d5a15fb
commit
db283d2e3f
5 changed files with 7 additions and 4 deletions
|
@ -57,7 +57,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > OXMLDatabase::createFa
|
|||
|
||||
switch( nElement & TOKEN_MASK )
|
||||
{
|
||||
case XML_DATASOURCE:
|
||||
case XML_DATA_SOURCE:
|
||||
GetOwnImport().GetProgressBarHelper()->Increment( PROGRESS_BAR_STEP );
|
||||
pContext = new OXMLDataSource( GetOwnImport(), xAttrList, OXMLDataSource::eDataSource );
|
||||
break;
|
||||
|
|
|
@ -420,7 +420,7 @@ void ODBExport::exportDataSource()
|
|||
if ( aDelimiter.bUsed )
|
||||
m_aDelimiter.reset( new TDelimiter( aDelimiter ) );
|
||||
|
||||
SvXMLElementExport aElem(*this,XML_NAMESPACE_DB, XML_DATASOURCE, true, true);
|
||||
SvXMLElementExport aElem(*this, XML_NAMESPACE_DB, XML_DATA_SOURCE, true, true);
|
||||
|
||||
exportConnectionData();
|
||||
exportDriverSettings(aSettingsMap);
|
||||
|
|
|
@ -2304,7 +2304,8 @@ namespace xmloff::token {
|
|||
XML_SORTED_ASCENDING,
|
||||
|
||||
XML_DATABASE,
|
||||
XML_DATASOURCE,
|
||||
XML_DATASOURCE, // forms "datasource"
|
||||
XML_DATA_SOURCE, // db "data-source"
|
||||
XML_QUERIES,
|
||||
XML_REPORTS,
|
||||
XML_REPORT,
|
||||
|
|
|
@ -2316,7 +2316,8 @@ namespace xmloff::token {
|
|||
TOKEN( "sorted-ascending", XML_SORTED_ASCENDING ),
|
||||
|
||||
TOKEN( "database", XML_DATABASE ),
|
||||
TOKEN( "data-source", XML_DATASOURCE ),
|
||||
TOKEN( "datasource", XML_DATASOURCE ),
|
||||
TOKEN( "data-source", XML_DATA_SOURCE ),
|
||||
TOKEN( "queries", XML_QUERIES ),
|
||||
TOKEN( "reports", XML_REPORTS ),
|
||||
TOKEN( "report", XML_REPORT ),
|
||||
|
|
|
@ -2183,6 +2183,7 @@ unsorted
|
|||
font-independent-line-spacing
|
||||
sorted-ascending
|
||||
database
|
||||
datasource
|
||||
data-source
|
||||
queries
|
||||
reports
|
||||
|
|
Loading…
Reference in a new issue