22#include <oox/token/namespaces.hxx>
38 switch( getCurrentElement() )
40 case XLS_TOKEN( connection ):
41 if( nElement == XLS_TOKEN( webPr ) )
48 case XLS_TOKEN( webPr ):
49 if( nElement == XLS_TOKEN( tables ) )
56 case XLS_TOKEN( tables ):
65 if( getCurrentElement() == XLS_TOKEN( connection ) )
71 switch( getCurrentElement() )
109 switch( getCurrentElement() )
112 if( nElement == XLS_TOKEN( connections ) )
116 case XLS_TOKEN( connections ):
117 if( nElement == XLS_TOKEN( connection ) )
126 switch( getCurrentElement() )
143 static const RecordInfo spRecInfos[] =
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Connection & mrConnection
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
ConnectionContext(WorkbookFragmentBase &rParent, Connection &rConnection)
virtual void onStartRecord(SequenceInputStream &rStrm) override
An external data connection (database, web query, etc.).
void importTables()
Imports web query table settings from the tables element.
void importWebPr(const AttributeList &rAttribs)
Imports web query settings from the webPr element.
void importWebPrTable(SequenceInputStream &rStrm, sal_Int32 nRecId)
Imports a web query table identifier from the PCITEM_MISSING, PCITEM_STRING, or PCITEM_INDEX record.
void importTable(const AttributeList &rAttribs, sal_Int32 nElement)
Imports a web query table identifier from the m, s, or x element.
void importConnection(const AttributeList &rAttribs)
Imports connection settings from the connection element.
void importWebPrTables(SequenceInputStream &rStrm)
Imports web query table settings from the WEBPRTABLES record.
void finalizeImport()
Maps all connections by their identifier.
virtual void finalizeImport() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual const ::oox::core::RecordInfo * getRecordInfos() const override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
ConnectionsFragment(const WorkbookHelper &rHelper, const OUString &rFragmentPath)
Context handler derived from the WorkbookHelper helper class.
Fragment handler derived from the WorkbookHelper helper class.
Helper class to provide access to global workbook data.
ConnectionsBuffer & getConnections() const
Returns the collection of external data connections.
svx::diagram::Connections & mrConnection
::dbtools::SQLExceptionInfo createConnection(const OUString &_rsDataSourceName, const css::uno::Reference< css::container::XNameAccess > &_xDatabaseContext, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, css::uno::Reference< css::lang::XEventListener > const &_rEvtLst, css::uno::Reference< css::sdbc::XConnection > &_rOUTConnection)
const sal_Int32 XML_ROOT_CONTEXT
const sal_Int32 BIFF12_ID_CONNECTION
const sal_Int32 BIFF12_ID_CONNECTIONS
const sal_Int32 BIFF12_ID_WEBPRTABLES
const sal_Int32 BIFF12_ID_WEBPR