LibreOffice Module xmlscript (master) 1
Classes | Typedefs | Functions | Variables
xmlscript Namespace Reference

Classes

class  BulletinBoardElement
 
class  ButtonElement
 
class  CheckBoxElement
 
class  ComboBoxElement
 
class  ControlElement
 
class  ControlImportContext
 
class  CurrencyFieldElement
 
class  DateFieldElement
 
struct  DialogImport
 
class  ElementBase
 
class  ElementDescriptor
 
class  EventElement
 
class  FileControlElement
 
class  FixedHyperLinkElement
 
class  FixedLineElement
 
class  FormattedFieldElement
 
class  Frame
 
class  GridControlElement
 
class  ImageControlElement
 
class  ImportContext
 
struct  LibDescriptor
 
struct  LibDescriptorArray
 
class  LibElementBase
 
class  LibrariesElement
 
class  LibraryElement
 
struct  LibraryImport
 
class  MenuListElement
 
class  MenuPopupElement
 
struct  ModuleDescriptor
 
class  ModuleElement
 
struct  ModuleImport
 
class  MultiPage
 
class  NumericFieldElement
 
class  Page
 
class  PatternFieldElement
 
class  ProgressBarElement
 
class  RadioElement
 
class  RadioGroupElement
 
class  ScrollBarElement
 
class  SpinButtonElement
 
struct  StringTriple
 
struct  Style
 
class  StyleBag
 
class  StyleElement
 
class  StylesElement
 
class  TextElement
 
class  TextFieldElement
 
class  TimeFieldElement
 
class  TitledBoxElement
 
class  TreeControlElement
 
class  WindowElement
 
class  XMLBasicExporter
 
class  XMLBasicExporterBase
 
class  XMLElement
 
class  XMLOasisBasicExporter
 

Typedefs

typedef std::unordered_map< OUString, sal_Int32 > t_OUString2LongMap
 
typedef std::unordered_map< OUString, std::unique_ptr< PrefixEntry > > t_OUString2PrefixMap
 
typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::lang::XInitialization, css::document::XXMLBasicExporter > XMLBasicExporterBase_BASE
 

Functions

template<typename T >
void extract_throw (T *p, css::uno::Any const &a)
 
template<typename T >
extract_throw (css::uno::Any const &a)
 
css::uno::Reference< css::xml::sax::XDocumentHandler > createDocumentHandler (css::uno::Reference< css::xml::input::XRoot > const &xRoot)
 Creates a document handler to be used for SAX1 parser that can handle namespaces. More...
 
Reference< io::XInputStream > createInputStream (std::vector< sal_Int8 > &&rInData)
 
Reference< io::XInputStream > createInputStream (const sal_Int8 *pData, int len)
 
Reference< io::XOutputStream > createOutputStream (std::vector< sal_Int8 > *pOutData)
 
constexpr OUStringLiteral g_sXMLNS_PREFIX_UNKNOWN (u"<<< unknown prefix >>>")
 
constexpr OUStringLiteral g_sXMLNS (u"xmlns")
 
Reference< xml::sax::XDocumentHandler > createDocumentHandler (Reference< xml::input::XRoot > const &xRoot)
 
sal_Int32 toInt32 (std::u16string_view rStr)
 
bool getBoolAttr (sal_Bool *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 nUid)
 
bool getStringAttr (OUString *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 nUid)
 
bool getLongAttr (sal_Int32 *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 nUid)
 
uno::Reference< io::XInputStreamProvider > exportDialogModel (uno::Reference< container::XNameContainer > const &xDialogModel, uno::Reference< uno::XComponentContext > const &xContext, uno::Reference< XModel > const &xDocument)
 
void importDialogModel (uno::Reference< io::XInputStream > const &xInput, uno::Reference< container::XNameContainer > const &xDialogModel, uno::Reference< uno::XComponentContext > const &xContext, uno::Reference< XModel > const &xDocument)
 
static bool readBorderProps (ElementDescriptor *element, Style &style)
 
static bool readFontProps (ElementDescriptor *element, Style &style)
 
static bool equalFont (Style const &style1, Style const &style2)
 
void exportDialogModel (Reference< xml::sax::XExtendedDocumentHandler > const &xOut, Reference< container::XNameContainer > const &xDialogModel, Reference< frame::XModel > const &xDocument)
 
Reference< xml::sax::XDocumentHandler > importDialogModel (Reference< container::XNameContainer > const &xDialogModel, Reference< XComponentContext > const &xContext, Reference< XModel > const &xDocument)
 
bool getBoolAttr (bool *pRet, OUString const &rAttrName, css::uno::Reference< css::xml::input::XAttributes > const &xAttributes, sal_Int32 uid)
 
void exportLibraryContainer (Reference< xml::sax::XWriter > const &xOut, const LibDescriptorArray *pLibArray)
 
void exportLibrary (css::uno::Reference< css::xml::sax::XWriter > const &xOut, const LibDescriptor &rLib)
 
Reference< css::xml::sax::XDocumentHandler > importLibraryContainer (LibDescriptorArray *pLibArray)
 
css::uno::Reference< css::xml::sax::XDocumentHandler > importLibrary (LibDescriptor &rLib)
 
void exportScriptModule (Reference< xml::sax::XWriter > const &xOut, const ModuleDescriptor &rMod)
 
Reference< xml::sax::XDocumentHandler > importScriptModule (ModuleDescriptor &rMod)
 
void exportDialogModel (css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > const &xOut, css::uno::Reference< css::container::XNameContainer > const &xDialogModel, css::uno::Reference< css::frame::XModel > const &xDocument)
 
XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::xml::sax::XDocumentHandler > importDialogModel (css::uno::Reference< css::container::XNameContainer > const &xDialogModel, css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::frame::XModel > const &xDocument)
 
XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::io::XInputStreamProvider > exportDialogModel (css::uno::Reference< css::container::XNameContainer > const &xDialogModel, css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::frame::XModel > const &xDocument)
 
XMLSCRIPT_DLLPUBLIC void importDialogModel (css::uno::Reference< css::io::XInputStream > const &xInput, css::uno::Reference< css::container::XNameContainer > const &xDialogModel, css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::frame::XModel > const &xDocument)
 
XMLSCRIPT_DLLPUBLIC void exportLibraryContainer (css::uno::Reference< css::xml::sax::XWriter > const &xOut, const LibDescriptorArray *pLibArray)
 
XMLSCRIPT_DLLPUBLIC void exportScriptModule (css::uno::Reference< css::xml::sax::XWriter > const &xOut, const ModuleDescriptor &rMod)
 

Variables

const sal_Int32 UID_UNKNOWN = -1
 
const sal_Int16 BORDER_NONE = 0
 
const sal_Int16 BORDER_3D = 1
 
const sal_Int16 BORDER_SIMPLE = 2
 
const sal_Int16 BORDER_SIMPLE_COLOR = 3
 
StringTriple const *const g_pEventTranslations = s_aEventTranslations
 
StringTriple const s_aEventTranslations []
 
constexpr OUStringLiteral aTrueStr = u"true"
 
constexpr OUStringLiteral aFalseStr = u"false"
 

Typedef Documentation

◆ t_OUString2LongMap

typedef std::unordered_map< OUString, sal_Int32 > xmlscript::t_OUString2LongMap

Definition at line 48 of file xml_impctx.cxx.

◆ t_OUString2PrefixMap

typedef std::unordered_map< OUString, std::unique_ptr<PrefixEntry> > xmlscript::t_OUString2PrefixMap

Definition at line 63 of file xml_impctx.cxx.

◆ XMLBasicExporterBase_BASE

typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::lang::XInitialization, css::document::XXMLBasicExporter > xmlscript::XMLBasicExporterBase_BASE

Definition at line 37 of file xmlbas_export.hxx.

Function Documentation

◆ createDocumentHandler() [1/2]

css::uno::Reference< css::xml::sax::XDocumentHandler > xmlscript::createDocumentHandler ( css::uno::Reference< css::xml::input::XRoot > const &  xRoot)

Creates a document handler to be used for SAX1 parser that can handle namespaces.

Namespace URI are mapped to integer ids for performance. Implementing the XImporter interface, you will get a startRootElement() for the root element of your XML document and subsequent startChildElement() callbacks for each sub element. Namespaces of tags are identified by their integer value.

Parameters
xRootinitial object being called for root context
Returns
document handler for parser

Referenced by importDialogModel(), importLibrary(), importLibraryContainer(), and importScriptModule().

◆ createDocumentHandler() [2/2]

Reference< xml::sax::XDocumentHandler > xmlscript::createDocumentHandler ( Reference< xml::input::XRoot > const &  xRoot)

Definition at line 699 of file xml_impctx.cxx.

References SAL_WARN_IF.

◆ createInputStream() [1/2]

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::io::XInputStream > xmlscript::createInputStream ( const sal_Int8 pData,
int  len 
)

Definition at line 142 of file xml_byteseq.cxx.

References pData.

◆ createInputStream() [2/2]

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::io::XInputStream > xmlscript::createInputStream ( std::vector< sal_Int8 > &&  rInData)

Definition at line 137 of file xml_byteseq.cxx.

◆ createOutputStream()

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::io::XOutputStream > xmlscript::createOutputStream ( std::vector< sal_Int8 > *  pOutData)

Definition at line 151 of file xml_byteseq.cxx.

Referenced by exportDialogModel().

◆ equalFont()

static bool xmlscript::equalFont ( Style const &  style1,
Style const &  style2 
)
static

◆ exportDialogModel() [1/4]

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::io::XInputStreamProvider > xmlscript::exportDialogModel ( css::uno::Reference< css::container::XNameContainer > const &  xDialogModel,
css::uno::Reference< css::uno::XComponentContext > const &  xContext,
css::uno::Reference< css::frame::XModel > const &  xDocument 
)

◆ exportDialogModel() [2/4]

void xmlscript::exportDialogModel ( css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > const &  xOut,
css::uno::Reference< css::container::XNameContainer > const &  xDialogModel,
css::uno::Reference< css::frame::XModel > const &  xDocument 
)

◆ exportDialogModel() [3/4]

void xmlscript::exportDialogModel ( Reference< xml::sax::XExtendedDocumentHandler > const &  xOut,
Reference< container::XNameContainer > const &  xDialogModel,
Reference< frame::XModel > const &  xDocument 
)

Definition at line 1363 of file xmldlg_export.cxx.

References xmlscript::StyleBag::dump(), and XMLNS_DIALOGS_PREFIX.

◆ exportDialogModel() [4/4]

uno::Reference< io::XInputStreamProvider > xmlscript::exportDialogModel ( uno::Reference< container::XNameContainer > const &  xDialogModel,
uno::Reference< uno::XComponentContext > const &  xContext,
uno::Reference< XModel > const &  xDocument 
)

Definition at line 59 of file xmldlg_addfunc.cxx.

References createOutputStream(), and exportDialogModel().

Referenced by exportDialogModel().

◆ exportLibrary()

XMLSCRIPT_DLLPUBLIC void xmlscript::exportLibrary ( css::uno::Reference< css::xml::sax::XWriter > const &  xOut,
const LibDescriptor rLib 
)

◆ exportLibraryContainer() [1/2]

XMLSCRIPT_DLLPUBLIC void xmlscript::exportLibraryContainer ( css::uno::Reference< css::xml::sax::XWriter > const &  xOut,
const LibDescriptorArray pLibArray 
)

◆ exportLibraryContainer() [2/2]

void xmlscript::exportLibraryContainer ( Reference< xml::sax::XWriter > const &  xOut,
const LibDescriptorArray pLibArray 
)

◆ exportScriptModule() [1/2]

XMLSCRIPT_DLLPUBLIC void xmlscript::exportScriptModule ( css::uno::Reference< css::xml::sax::XWriter > const &  xOut,
const ModuleDescriptor rMod 
)

◆ exportScriptModule() [2/2]

void xmlscript::exportScriptModule ( Reference< xml::sax::XWriter > const &  xOut,
const ModuleDescriptor rMod 
)

◆ extract_throw() [1/2]

template<typename T >
T xmlscript::extract_throw ( css::uno::Any const &  a)
inline

Definition at line 40 of file misc.hxx.

References a, and v.

◆ extract_throw() [2/2]

template<typename T >
void xmlscript::extract_throw ( T *  p,
css::uno::Any const &  a 
)
inline

Definition at line 28 of file misc.hxx.

References a, getTypeName(), and p.

◆ g_sXMLNS()

constexpr OUStringLiteral xmlscript::g_sXMLNS ( u"xmlns"  )
constexpr

◆ g_sXMLNS_PREFIX_UNKNOWN()

constexpr OUStringLiteral xmlscript::g_sXMLNS_PREFIX_UNKNOWN ( u"<<< unknown prefix >>>"  )
constexpr

◆ getBoolAttr() [1/2]

bool xmlscript::getBoolAttr ( bool *  pRet,
OUString const &  rAttrName,
css::uno::Reference< css::xml::input::XAttributes > const &  xAttributes,
sal_Int32  uid 
)
inline

Definition at line 48 of file xmllib_imexp/imp_share.hxx.

◆ getBoolAttr() [2/2]

bool xmlscript::getBoolAttr ( sal_Bool pRet,
OUString const &  rAttrName,
css::uno::Reference< css::xml::input::XAttributes > const &  xAttributes,
sal_Int32  nUid 
)
inline

◆ getLongAttr()

bool xmlscript::getLongAttr ( sal_Int32 *  pRet,
OUString const &  rAttrName,
css::uno::Reference< css::xml::input::XAttributes > const &  xAttributes,
sal_Int32  nUid 
)
inline

◆ getStringAttr()

bool xmlscript::getStringAttr ( OUString *  pRet,
OUString const &  rAttrName,
css::uno::Reference< css::xml::input::XAttributes > const &  xAttributes,
sal_Int32  nUid 
)
inline

◆ importDialogModel() [1/4]

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::xml::sax::XDocumentHandler > xmlscript::importDialogModel ( css::uno::Reference< css::container::XNameContainer > const &  xDialogModel,
css::uno::Reference< css::uno::XComponentContext > const &  xContext,
css::uno::Reference< css::frame::XModel > const &  xDocument 
)

◆ importDialogModel() [2/4]

XMLSCRIPT_DLLPUBLIC void xmlscript::importDialogModel ( css::uno::Reference< css::io::XInputStream > const &  xInput,
css::uno::Reference< css::container::XNameContainer > const &  xDialogModel,
css::uno::Reference< css::uno::XComponentContext > const &  xContext,
css::uno::Reference< css::frame::XModel > const &  xDocument 
)

◆ importDialogModel() [3/4]

Reference< xml::sax::XDocumentHandler > xmlscript::importDialogModel ( Reference< container::XNameContainer > const &  xDialogModel,
Reference< XComponentContext > const &  xContext,
Reference< XModel > const &  xDocument 
)

Definition at line 1765 of file xmldlg_import.cxx.

References createDocumentHandler().

◆ importDialogModel() [4/4]

void xmlscript::importDialogModel ( uno::Reference< io::XInputStream > const &  xInput,
uno::Reference< container::XNameContainer > const &  xDialogModel,
uno::Reference< uno::XComponentContext > const &  xContext,
uno::Reference< XModel > const &  xDocument 
)

Definition at line 75 of file xmldlg_addfunc.cxx.

References importDialogModel().

Referenced by importDialogModel().

◆ importLibrary()

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::xml::sax::XDocumentHandler > xmlscript::importLibrary ( LibDescriptor rLib)

Definition at line 241 of file xmllib_import.cxx.

References createDocumentHandler().

◆ importLibraryContainer()

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::xml::sax::XDocumentHandler > xmlscript::importLibraryContainer ( LibDescriptorArray pLibArray)

Definition at line 235 of file xmllib_import.cxx.

References createDocumentHandler().

◆ importScriptModule()

XMLSCRIPT_DLLPUBLIC css::uno::Reference< css::xml::sax::XDocumentHandler > xmlscript::importScriptModule ( ModuleDescriptor rMod)

Definition at line 148 of file xmlmod_import.cxx.

References createDocumentHandler().

◆ readBorderProps()

static bool xmlscript::readBorderProps ( ElementDescriptor element,
Style style 
)
static

◆ readFontProps()

static bool xmlscript::readFontProps ( ElementDescriptor element,
Style style 
)
static

◆ toInt32()

sal_Int32 xmlscript::toInt32 ( std::u16string_view  rStr)
inline

Variable Documentation

◆ aFalseStr

constexpr OUStringLiteral xmlscript::aFalseStr = u"false"
constexpr

Definition at line 33 of file xmllib_export.cxx.

Referenced by exportLibrary(), and exportLibraryContainer().

◆ aTrueStr

constexpr OUStringLiteral xmlscript::aTrueStr = u"true"
constexpr

◆ BORDER_3D

const sal_Int16 xmlscript::BORDER_3D = 1

◆ BORDER_NONE

const sal_Int16 xmlscript::BORDER_NONE = 0

◆ BORDER_SIMPLE

const sal_Int16 xmlscript::BORDER_SIMPLE = 2

◆ BORDER_SIMPLE_COLOR

const sal_Int16 xmlscript::BORDER_SIMPLE_COLOR = 3

◆ g_pEventTranslations

StringTriple const *const xmlscript::g_pEventTranslations = s_aEventTranslations

◆ s_aEventTranslations

StringTriple const xmlscript::s_aEventTranslations[]

Definition at line 1385 of file xmldlg_import.cxx.

◆ UID_UNKNOWN

const sal_Int32 xmlscript::UID_UNKNOWN = -1

Definition at line 46 of file xml_impctx.cxx.