LibreOffice Module sc (master) 1
|
Stores the data of one web query. More...
#include <xicontent.hxx>
Public Member Functions | |
XclImpWebQuery (const ScRange &rDestRange) | |
void | ReadParamqry (XclImpStream &rStrm) |
Reads a PARAMQRY record and sets data to the web query. More... | |
void | ReadWqstring (XclImpStream &rStrm) |
Reads a WQSTRING record and sets URL. More... | |
void | ReadWqsettings (XclImpStream &rStrm) |
Reads a WEBQRYSETTINGS record and sets refresh rate. More... | |
void | ReadWqtables (XclImpStream &rStrm) |
Reads a WEBQRYTABLES record and sets source range list. More... | |
void | Apply (ScDocument &rDoc, const OUString &rFilterName) |
Inserts the web query into the document. More... | |
Private Types | |
enum | XclImpWebQueryMode { xlWQUnknown , xlWQDocument , xlWQAllTables , xlWQSpecTables } |
Specifies the type of the web query (which ranges are imported). More... | |
Private Attributes | |
OUString | maURL |
OUString | maTables |
Source document URL. More... | |
ScRange | maDestRange |
List of source range names. More... | |
XclImpWebQueryMode | meMode |
Destination range. More... | |
sal_uInt16 | mnRefresh |
Current mode of the web query. More... | |
Stores the data of one web query.
Definition at line 194 of file xicontent.hxx.
|
private |
Specifies the type of the web query (which ranges are imported).
Enumerator | |
---|---|
xlWQUnknown | |
xlWQDocument | Not specified. |
xlWQAllTables | Entire document. |
xlWQSpecTables | All tables. Specific tables. |
Definition at line 213 of file xicontent.hxx.
|
explicit |
Definition at line 965 of file xicontent.cxx.
References meMode.
void XclImpWebQuery::Apply | ( | ScDocument & | rDoc, |
const OUString & | rFilterName | ||
) |
Inserts the web query into the document.
Definition at line 1033 of file xicontent.cxx.
References sfx2::ClientFile, ScDocument::GetDocumentShell(), ScDocument::GetLinkManager(), sfx2::LinkManager::InsertFileLink(), maDestRange, maTables, maURL, meMode, mnRefresh, pLink, and xlWQUnknown.
void XclImpWebQuery::ReadParamqry | ( | XclImpStream & | rStrm | ) |
Reads a PARAMQRY record and sets data to the web query.
Definition at line 972 of file xicontent.cxx.
References EXC_PQRY_TABLES, EXC_PQRY_WEBQUERY, EXC_PQRYTYPE_WEBQUERY, get_flag(), ScfTools::GetHTMLDocName(), ScfTools::GetHTMLTablesName(), maTables, meMode, nType, rStrm, xlWQAllTables, and xlWQDocument.
void XclImpWebQuery::ReadWqsettings | ( | XclImpStream & | rStrm | ) |
Reads a WEBQRYSETTINGS record and sets refresh rate.
Definition at line 996 of file xicontent.cxx.
References EXC_WQSETT_SPECTABLES, get_flag(), meMode, mnRefresh, rStrm, xlWQAllTables, and xlWQSpecTables.
void XclImpWebQuery::ReadWqstring | ( | XclImpStream & | rStrm | ) |
Reads a WQSTRING record and sets URL.
Definition at line 991 of file xicontent.cxx.
void XclImpWebQuery::ReadWqtables | ( | XclImpStream & | rStrm | ) |
Reads a WEBQRYTABLES record and sets source range list.
Definition at line 1007 of file xicontent.cxx.
References ScGlobal::addToken(), ScGlobal::EraseQuotes(), ScfTools::GetNameFromHTMLIndex(), ScfTools::GetNameFromHTMLName(), ScStringUtil::GetQuotedToken(), CharClass::isAsciiNumeric(), maTables, meMode, rStrm, u, and xlWQSpecTables.
|
private |
|
private |
Source document URL.
Definition at line 222 of file xicontent.hxx.
Referenced by Apply(), ReadParamqry(), and ReadWqtables().
|
private |
Definition at line 221 of file xicontent.hxx.
Referenced by Apply(), and ReadWqstring().
|
private |
Destination range.
Definition at line 224 of file xicontent.hxx.
Referenced by Apply(), ReadParamqry(), ReadWqsettings(), and ReadWqtables().
|
private |
Current mode of the web query.
Definition at line 225 of file xicontent.hxx.
Referenced by Apply(), and ReadWqsettings().