20#ifndef INCLUDED_L10NTOOLS_INC_HELPMERGE_HXX
21#define INCLUDED_L10NTOOLS_INC_HELPMERGE_HXX
30#include <rtl/string.hxx>
38#if OSL_DEBUG_LEVEL > 2
40 static void Dump(
LangHashMap* rElem_in ,
const OString & sKey_in);
52 XMLFile *pXmlFile, std::string_view rGsi1 );
55 bool Merge(
const OString &rDestinationFile_in ,
This Class is responsible for extracting/merging OpenOffice XML Helpfiles.
bool Merge(const OString &rDestinationFile_in, const OString &sLanguage, MergeDataFile *pMergeDataFile)
Method merges the String into XMLfile, which must point to an existing file.
void MergeSingleFile(XMLFile *file, MergeDataFile *pMergeDataFile, const OString &sLanguage, OString const &sPath)
HelpParser(OString sHelpFile)
static bool CreatePO(const OString &rPOFile_in, const OString &sHelpFile, XMLFile *pXmlFile, std::string_view rGsi1)
Method append a PO file with the content of a parsed XML file @PRECOND rHelpFile is valid.
static void ProcessHelp(LangHashMap *aLangHM, const OString &sCur, ResData *pResData, MergeDataFile *pMergeDataFile)
Purpose: holds information of data to merge, read from PO file.
Purpose: holds mandatory data to export a single res.
Holds information of a XML file, is root node of tree.
std::unordered_map< OString, LangHashMap * > XMLHashMap
Mapping XML Element string identifier <-> Language Map.
std::unordered_map< OString, XMLElement * > LangHashMap
Mapping numeric Language code <-> XML Element.