2010-10-14 08:27:31 +02:00
|
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*************************************************************************
|
|
|
|
|
*
|
2008-04-10 08:39:13 +00:00
|
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
2008-04-10 08:39:13 +00:00
|
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
2008-04-10 08:39:13 +00:00
|
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
2008-04-10 08:39:13 +00:00
|
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
2008-04-10 08:39:13 +00:00
|
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
2008-04-10 08:39:13 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:07:07 +00:00
|
|
|
|
*
|
|
|
|
|
************************************************************************/
|
2006-09-17 07:16:49 +00:00
|
|
|
|
|
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
2010-01-25 17:20:55 +01:00
|
|
|
|
#include "precompiled_l10ntools.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <tools/fsys.hxx>
|
|
|
|
|
#include "export.hxx"
|
|
|
|
|
#include "tokens.h"
|
2004-11-18 07:16:38 +00:00
|
|
|
|
#include <iostream>
|
2011-01-23 19:31:48 -08:00
|
|
|
|
#include <vector>
|
2011-07-01 22:27:20 +01:00
|
|
|
|
#include <rtl/strbuf.hxx>
|
2011-08-15 00:22:23 +01:00
|
|
|
|
#include <comphelper/string.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2011-08-29 23:03:08 +01:00
|
|
|
|
using comphelper::string::getToken;
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
extern "C" { int yyerror( const char * ); }
|
|
|
|
|
extern "C" { int YYWarning( const char * ); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
Export *pExport = 0L;
|
|
|
|
|
|
|
|
|
|
// defines to parse command line
|
|
|
|
|
#define STATE_NON 0x0001
|
|
|
|
|
#define STATE_INPUT 0x0002
|
|
|
|
|
#define STATE_OUTPUT 0x0003
|
|
|
|
|
#define STATE_PRJ 0x0004
|
|
|
|
|
#define STATE_ROOT 0x0005
|
|
|
|
|
#define STATE_MERGESRC 0x0006
|
|
|
|
|
#define STATE_ERRORLOG 0x0007
|
|
|
|
|
#define STATE_BREAKHELP 0x0008
|
|
|
|
|
#define STATE_UNMERGE 0x0009
|
2001-04-25 09:17:04 +00:00
|
|
|
|
#define STATE_UTF8 0x000A
|
2001-05-23 07:05:40 +00:00
|
|
|
|
#define STATE_LANGUAGES 0X000B
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
// set of global variables
|
2011-01-23 19:31:48 -08:00
|
|
|
|
typedef ::std::vector< ByteString* > FileList;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
FileList aInputFileList;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bEnableExport;
|
|
|
|
|
sal_Bool bMergeMode;
|
|
|
|
|
sal_Bool bErrorLog;
|
|
|
|
|
sal_Bool bBreakWhenHelpText;
|
|
|
|
|
sal_Bool bUnmerge;
|
|
|
|
|
sal_Bool bUTF8;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sPrj;
|
|
|
|
|
ByteString sPrjRoot;
|
|
|
|
|
ByteString sActFileName;
|
|
|
|
|
ByteString sOutputFile;
|
|
|
|
|
ByteString sMergeSrc;
|
2001-06-07 12:33:31 +00:00
|
|
|
|
ByteString sTempFile;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sFile;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
MergeDataFile *pMergeDataFile;
|
2001-06-07 12:33:31 +00:00
|
|
|
|
FILE *pTempFile;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sStrBuffer;
|
|
|
|
|
bool bMarcro = false;
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
extern "C" {
|
|
|
|
|
// the whole interface to lexer is in this extern "C" section
|
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
extern char *GetOutputFile( int argc, char* argv[])
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bEnableExport = sal_False;
|
|
|
|
|
bMergeMode = sal_False;
|
|
|
|
|
bErrorLog = sal_True;
|
|
|
|
|
bBreakWhenHelpText = sal_False;
|
|
|
|
|
bUnmerge = sal_False;
|
|
|
|
|
bUTF8 = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sPrj = "";
|
|
|
|
|
sPrjRoot = "";
|
|
|
|
|
sActFileName = "";
|
2001-05-23 07:05:40 +00:00
|
|
|
|
Export::sLanguages = "";
|
2004-08-30 16:30:15 +00:00
|
|
|
|
Export::sForcedLanguages = "";
|
2001-06-07 12:33:31 +00:00
|
|
|
|
sTempFile = "";
|
|
|
|
|
pTempFile = NULL;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nState = STATE_NON;
|
|
|
|
|
sal_Bool bInput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
// parse command line
|
|
|
|
|
for( int i = 1; i < argc; i++ ) {
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ByteString sSwitch( argv[ i ] );
|
|
|
|
|
|
|
|
|
|
if (sSwitch == "-i" || sSwitch == "-I" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_INPUT; // next tokens specifies source files
|
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-o" || sSwitch == "-O" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_OUTPUT; // next token specifies the dest file
|
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-p" || sSwitch == "-P" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_PRJ; // next token specifies the cur. project
|
|
|
|
|
}
|
2004-07-13 12:51:32 +00:00
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-r" || sSwitch == "-R" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_ROOT; // next token specifies path to project root
|
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-m" || sSwitch == "-M" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_MERGESRC; // next token specifies the merge database
|
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-e" || sSwitch == "-E" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_ERRORLOG;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bErrorLog = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-b" || sSwitch == "-B" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_BREAKHELP;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bBreakWhenHelpText = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if (sSwitch == "-u" || sSwitch == "-U" ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nState = STATE_UNMERGE;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bUnmerge = sal_True;
|
|
|
|
|
bMergeMode = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if ( sSwitch.ToUpperAscii() == "-UTF8" ) {
|
2001-04-25 09:17:04 +00:00
|
|
|
|
nState = STATE_UTF8;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bUTF8 = sal_True;
|
2001-04-25 09:17:04 +00:00
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if ( sSwitch.ToUpperAscii() == "-NOUTF8" ) {
|
2001-05-31 08:44:37 +00:00
|
|
|
|
nState = STATE_UTF8;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bUTF8 = sal_False;
|
2001-05-31 08:44:37 +00:00
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
else if ( sSwitch == "-l" || sSwitch == "-L" ) {
|
2001-05-23 07:05:40 +00:00
|
|
|
|
nState = STATE_LANGUAGES;
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else {
|
|
|
|
|
switch ( nState ) {
|
|
|
|
|
case STATE_NON: {
|
|
|
|
|
return NULL; // no valid command line
|
|
|
|
|
}
|
|
|
|
|
case STATE_INPUT: {
|
2011-01-23 19:31:48 -08:00
|
|
|
|
aInputFileList.push_back( new ByteString( argv[ i ] ) );
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bInput = sal_True; // min. one source file found
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case STATE_OUTPUT: {
|
|
|
|
|
sOutputFile = ByteString( argv[ i ]); // the dest. file
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case STATE_PRJ: {
|
|
|
|
|
sPrj = ByteString( argv[ i ]);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case STATE_ROOT: {
|
|
|
|
|
sPrjRoot = ByteString( argv[ i ]); // path to project root
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case STATE_MERGESRC: {
|
|
|
|
|
sMergeSrc = ByteString( argv[ i ]);
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bMergeMode = sal_True; // activate merge mode, cause merge database found
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
2001-05-23 07:05:40 +00:00
|
|
|
|
case STATE_LANGUAGES: {
|
|
|
|
|
Export::sLanguages = ByteString( argv[ i ]);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( bUnmerge ) sMergeSrc = ByteString();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bInput ) {
|
|
|
|
|
// command line is valid
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bEnableExport = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
char *pReturn = new char[ sOutputFile.Len() + 1 ];
|
2002-12-12 16:00:09 +00:00
|
|
|
|
strcpy( pReturn, sOutputFile.GetBuffer()); // #100211# - checked
|
2000-09-18 16:07:07 +00:00
|
|
|
|
return pReturn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// command line is not valid
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
2004-07-13 12:51:32 +00:00
|
|
|
|
/*****************************************************************************/
|
2006-03-29 12:26:24 +00:00
|
|
|
|
int InitExport( char *pOutput , char* pFilename )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
// instanciate Export
|
|
|
|
|
ByteString sOutput( pOutput );
|
2006-03-29 12:26:24 +00:00
|
|
|
|
ByteString sFilename( pFilename );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bMergeMode && !bUnmerge ) {
|
|
|
|
|
// merge mode enabled, so read database
|
2006-03-29 12:26:24 +00:00
|
|
|
|
pExport = new Export(sOutput, bEnableExport, sPrj, sPrjRoot, sMergeSrc , sFilename );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
// no merge mode, only export
|
2006-03-29 12:26:24 +00:00
|
|
|
|
pExport = new Export( sOutput, bEnableExport, sPrj, sPrjRoot , sFilename );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int EndExport()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
delete pExport;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2006-03-29 12:26:24 +00:00
|
|
|
|
extern const char* getFilename()
|
|
|
|
|
{
|
2011-01-23 19:31:48 -08:00
|
|
|
|
return (*(aInputFileList[ 0 ])).GetBuffer();
|
2006-03-29 12:26:24 +00:00
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
extern FILE *GetNextFile()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
// look for next valid filename in input file list
|
2001-06-07 12:33:31 +00:00
|
|
|
|
if ( sTempFile.Len()) {
|
|
|
|
|
fclose( pTempFile );
|
|
|
|
|
String sTemp( sTempFile, RTL_TEXTENCODING_ASCII_US );
|
|
|
|
|
DirEntry aTemp( sTemp );
|
|
|
|
|
aTemp.Kill();
|
|
|
|
|
}
|
|
|
|
|
|
2011-01-23 19:31:48 -08:00
|
|
|
|
while ( !aInputFileList.empty() ) {
|
|
|
|
|
ByteString sFileName( *(aInputFileList[ 0 ]) );
|
2001-06-07 12:33:31 +00:00
|
|
|
|
|
|
|
|
|
ByteString sOrigFile( sFileName );
|
|
|
|
|
|
|
|
|
|
sFileName = Export::GetNativeFile( sFileName );
|
2011-01-23 19:31:48 -08:00
|
|
|
|
delete aInputFileList[ 0 ];
|
|
|
|
|
aInputFileList.erase( aInputFileList.begin() );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2001-06-07 12:33:31 +00:00
|
|
|
|
if ( sFileName == "" ) {
|
|
|
|
|
fprintf( stderr, "ERROR: Could not precompile File %s\n",
|
|
|
|
|
sOrigFile.GetBuffer());
|
|
|
|
|
return GetNextFile();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sTempFile = sFileName;
|
2004-11-02 15:04:01 +00:00
|
|
|
|
Export::RemoveUTF8ByteOrderMarkerFromFile( sFileName );
|
2001-06-07 12:33:31 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// able to open file?
|
|
|
|
|
FILE *pFile = fopen( sFileName.GetBuffer(), "r" );
|
|
|
|
|
if ( !pFile )
|
|
|
|
|
fprintf( stderr, "Error: Could not open File %s\n",
|
|
|
|
|
sFileName.GetBuffer());
|
|
|
|
|
else {
|
2001-06-07 12:33:31 +00:00
|
|
|
|
pTempFile = pFile;
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// this is a valid file which can be opened, so
|
|
|
|
|
// create path to project root
|
2001-06-07 12:33:31 +00:00
|
|
|
|
DirEntry aEntry( String( sOrigFile, RTL_TEXTENCODING_ASCII_US ));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
aEntry.ToAbs();
|
|
|
|
|
ByteString sFullEntry( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );
|
|
|
|
|
aEntry += DirEntry( String( "..", RTL_TEXTENCODING_ASCII_US ));
|
|
|
|
|
aEntry += DirEntry( sPrjRoot );
|
|
|
|
|
ByteString sPrjEntry( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );
|
|
|
|
|
|
|
|
|
|
// create file name, beginnig with project root
|
|
|
|
|
// (e.g.: source\ui\src\menue.src)
|
|
|
|
|
sActFileName = sFullEntry.Copy( sPrjEntry.Len() + 1 );
|
|
|
|
|
|
2001-06-06 07:12:57 +00:00
|
|
|
|
|
|
|
|
|
sActFileName.SearchAndReplaceAll( "/", "\\" );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sFile = sActFileName;
|
2001-06-06 07:12:57 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( pExport ) {
|
|
|
|
|
// create instance of class export
|
|
|
|
|
pExport->Init();
|
|
|
|
|
}
|
|
|
|
|
// return the valid file handle
|
|
|
|
|
return pFile;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// this means the file could not be opened
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
int Parse( int nTyp, const char *pTokenText ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
pExport->Execute( nTyp , pTokenText );
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
void Close(){
|
|
|
|
|
pExport->pParseQueue->Close();
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int WorkOnTokenSet( int nTyp, char *pTokenText )
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
pExport->pParseQueue->Push( QueueEntry( nTyp , ByteString( pTokenText ) ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
return 1;
|
|
|
|
|
}
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
} // extern
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int SetError()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
// set error at global instance of class Export
|
|
|
|
|
pExport->SetError();
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int GetError()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
// get error at global instance of class Export
|
|
|
|
|
if ( pExport->GetError())
|
|
|
|
|
return 1;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// class ResData
|
|
|
|
|
//
|
|
|
|
|
|
2004-11-18 07:16:38 +00:00
|
|
|
|
void ResData::Dump(){
|
|
|
|
|
printf("**************\nResData\n");
|
|
|
|
|
printf("sPForm = %s , sResTyp = %s , sId = %s , sGId = %s , sHelpId = %s\n",sPForm.GetBuffer()
|
|
|
|
|
,sResTyp.GetBuffer(),sId.GetBuffer(),sGId.GetBuffer(),sHelpId.GetBuffer());
|
|
|
|
|
|
|
|
|
|
ByteString a("*pStringList");
|
|
|
|
|
ByteString b("*pUIEntries");
|
|
|
|
|
ByteString c("*pFilterList");
|
|
|
|
|
ByteString d("*pItemList");
|
|
|
|
|
ByteString e("*pPairedList");
|
|
|
|
|
ByteString f("sText");
|
|
|
|
|
|
|
|
|
|
Export::DumpMap( f , sText );
|
|
|
|
|
|
|
|
|
|
if( pStringList ) Export::DumpExportList( a , *pStringList );
|
|
|
|
|
if( pUIEntries ) Export::DumpExportList( b , *pUIEntries );
|
|
|
|
|
if( pFilterList ) Export::DumpExportList( c , *pFilterList );
|
|
|
|
|
if( pItemList ) Export::DumpExportList( d , *pItemList );
|
|
|
|
|
if( pPairedList ) Export::DumpExportList( e , *pPairedList );
|
|
|
|
|
printf("\n");
|
|
|
|
|
}
|
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
void ResData::addFallbackData( ByteString& sId_in , const ByteString& sText_in ){
|
|
|
|
|
aFallbackData[ sId_in ] = sText_in;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
2006-06-19 16:21:29 +00:00
|
|
|
|
bool ResData::getFallbackData( ByteString& sId_in , ByteString& sText_inout ){
|
|
|
|
|
sText_inout = aFallbackData[ sId_in ];
|
|
|
|
|
return sText_inout.Len() > 0;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
void ResData::addMergedLanguage(rtl::OString& rLang)
|
|
|
|
|
{
|
|
|
|
|
aMergedLanguages[rLang] = rtl::OString(RTL_CONSTASCII_STRINGPARAM("1"));
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
|
|
|
|
|
bool ResData::isMerged(rtl::OString& rLang)
|
|
|
|
|
{
|
|
|
|
|
return aMergedLanguages[rLang].equalsL(RTL_CONSTASCII_STRINGPARAM("1"));
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool ResData::SetId( const ByteString &rId, sal_uInt16 nLevel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
if ( nLevel > nIdLevel )
|
|
|
|
|
{
|
|
|
|
|
nIdLevel = nLevel;
|
|
|
|
|
sId = rId;
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( bChild && bChildWithText )
|
|
|
|
|
{
|
|
|
|
|
rtl::OString sError(RTL_CONSTASCII_STRINGPARAM("ResId after child definition"));
|
|
|
|
|
yyerror(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
SetError();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( sId.Len() > 255 ) {
|
|
|
|
|
ByteString sWarning( "LocalId > 255 chars, truncating..." );
|
|
|
|
|
YYWarning( sWarning.GetBufferAccess());
|
|
|
|
|
sWarning.ReleaseBufferAccess();
|
|
|
|
|
sId.Erase( 255 );
|
|
|
|
|
sId.EraseTrailingChars( ' ' );
|
|
|
|
|
sId.EraseTrailingChars( '\t' );
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// class Export
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2010-07-29 10:56:19 +08:00
|
|
|
|
Export::Export( const ByteString &rOutput, sal_Bool bWrite,
|
2004-06-25 11:40:49 +00:00
|
|
|
|
const ByteString &rPrj, const ByteString &rPrjRoot , const ByteString& rFile )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
2006-06-19 16:21:29 +00:00
|
|
|
|
:
|
|
|
|
|
pWordTransformer( NULL ),
|
|
|
|
|
aCharSet( RTL_TEXTENCODING_MS_1252 ),
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDefine( sal_False ),
|
|
|
|
|
bNextMustBeDefineEOL( sal_False ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
nLevel( 0 ),
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList( LIST_NON ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
nListIndex( 0 ),
|
|
|
|
|
nListLevel( 0 ),
|
|
|
|
|
bSkipFile( false ),
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sProject( sPrj ),
|
|
|
|
|
sRoot( sPrjRoot ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
bEnableExport( bWrite ),
|
2000-09-18 16:07:07 +00:00
|
|
|
|
bMergeMode( bUnmerge ),
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bError( sal_False ),
|
|
|
|
|
bReadOver( sal_False ),
|
|
|
|
|
bDontWriteOutput( sal_False ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
sFilename( rFile )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
pParseQueue = new ParserQueue( *this );
|
2006-06-19 16:21:29 +00:00
|
|
|
|
(void) rPrj;
|
|
|
|
|
(void) rPrjRoot;
|
|
|
|
|
(void) rFile;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
if( !isInitialized ) InitLanguages();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// used when export is enabled
|
|
|
|
|
|
|
|
|
|
// open output stream
|
|
|
|
|
if ( bEnableExport ) {
|
|
|
|
|
aOutput.Open( String( rOutput, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_WRITE | STREAM_TRUNC );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( !aOutput.IsOpen() ) {
|
|
|
|
|
printf("ERROR : Can't open file %s\n",rOutput.GetBuffer());
|
|
|
|
|
exit ( -1 );
|
|
|
|
|
}
|
2004-08-02 15:24:59 +00:00
|
|
|
|
aOutput.SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
|
|
|
|
|
|
2001-06-07 12:33:31 +00:00
|
|
|
|
aOutput.SetLineDelimiter( LINEEND_CRLF );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2010-07-29 10:56:19 +08:00
|
|
|
|
Export::Export( const ByteString &rOutput, sal_Bool bWrite,
|
2000-09-18 16:07:07 +00:00
|
|
|
|
const ByteString &rPrj, const ByteString &rPrjRoot,
|
2004-06-25 11:40:49 +00:00
|
|
|
|
const ByteString &rMergeSource , const ByteString& rFile )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
2006-06-19 16:21:29 +00:00
|
|
|
|
:
|
|
|
|
|
pWordTransformer( NULL ),
|
|
|
|
|
aCharSet( RTL_TEXTENCODING_MS_1252 ),
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDefine( sal_False ),
|
|
|
|
|
bNextMustBeDefineEOL( sal_False ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
nLevel( 0 ),
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList( LIST_NON ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
nListIndex( 0 ),
|
|
|
|
|
nListLevel( 0 ),
|
|
|
|
|
bSkipFile( false ),
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sProject( sPrj ),
|
|
|
|
|
sRoot( sPrjRoot ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
bEnableExport( bWrite ),
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bMergeMode( sal_True ),
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sMergeSrc( rMergeSource ),
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bError( sal_False ),
|
|
|
|
|
bReadOver( sal_False ),
|
|
|
|
|
bDontWriteOutput( sal_False ),
|
2006-06-19 16:21:29 +00:00
|
|
|
|
sFilename( rFile )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
{
|
2006-06-19 16:21:29 +00:00
|
|
|
|
(void) rPrj;
|
|
|
|
|
(void) rPrjRoot;
|
|
|
|
|
(void) rFile;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
pParseQueue = new ParserQueue( *this );
|
|
|
|
|
if( !isInitialized ) InitLanguages( bMergeMode );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// used when merge is enabled
|
|
|
|
|
|
|
|
|
|
// open output stream
|
2001-06-07 12:33:31 +00:00
|
|
|
|
if ( bEnableExport ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
aOutput.Open( String( rOutput, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_WRITE | STREAM_TRUNC );
|
2004-08-02 15:24:59 +00:00
|
|
|
|
aOutput.SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
|
2001-06-07 12:33:31 +00:00
|
|
|
|
aOutput.SetLineDelimiter( LINEEND_CRLF );
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
void Export::Init()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
// resets the internal status, used before parseing another file
|
|
|
|
|
sActPForm = "";
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDefine = sal_False;
|
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nLevel = 0;
|
|
|
|
|
nList = LIST_NON;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = ByteString( String::CreateFromAscii(""),RTL_TEXTENCODING_ASCII_US );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
2011-01-22 21:51:18 -08:00
|
|
|
|
for ( size_t i = 0, n = aResStack.size(); i < n; ++i )
|
|
|
|
|
delete aResStack[ i ];
|
|
|
|
|
aResStack.clear();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
Export::~Export()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( pParseQueue )
|
|
|
|
|
delete pParseQueue;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// close output stream
|
|
|
|
|
if ( bEnableExport )
|
|
|
|
|
aOutput.Close();
|
2011-01-22 21:51:18 -08:00
|
|
|
|
for ( size_t i = 0, n = aResStack.size(); i < n; ++i )
|
|
|
|
|
delete aResStack[ i ];
|
|
|
|
|
aResStack.clear();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
if ( bMergeMode && !bUnmerge ) {
|
|
|
|
|
if ( !pMergeDataFile )
|
2006-06-19 16:21:29 +00:00
|
|
|
|
pMergeDataFile = new MergeDataFile( sMergeSrc,sFile , bErrorLog, aCharSet);//, bUTF8 );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
delete pMergeDataFile;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2006-06-19 16:21:29 +00:00
|
|
|
|
int Export::Execute( int nToken, const char * pToken )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2006-06-19 16:21:29 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sToken( pToken );
|
|
|
|
|
ByteString sOrig( sToken );
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bWriteToMerged = bMergeMode;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
if ( nToken == CONDITION ) {
|
|
|
|
|
ByteString sTestToken( pToken );
|
|
|
|
|
sTestToken.EraseAllChars( '\t' );
|
|
|
|
|
sTestToken.EraseAllChars( ' ' );
|
|
|
|
|
if (( !bReadOver ) && ( sTestToken.Search( "#ifndef__RSC_PARSER" ) == 0 ))
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bReadOver = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else if (( bReadOver ) && ( sTestToken.Search( "#endif" ) == 0 ))
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bReadOver = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
if ((( nToken < FILTER_LEVEL ) || ( bReadOver )) &&
|
|
|
|
|
(!(( bNextMustBeDefineEOL ) && ( sOrig == "\n" )))) {
|
|
|
|
|
// this tokens are not mandatory for parsing, so ignore them ...
|
|
|
|
|
if ( bMergeMode )
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOrig , false ); // ... ore whrite them directly to dest.
|
2000-09-18 16:07:07 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ResData *pResData = NULL;
|
|
|
|
|
if ( nLevel ) {
|
|
|
|
|
// res. exists at cur. level
|
2011-01-22 21:51:18 -08:00
|
|
|
|
pResData = ( (nLevel-1) < aResStack.size() ) ? aResStack[ nLevel-1 ] : NULL;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else if (( nToken != RESSOURCE ) &&
|
|
|
|
|
( nToken != RESSOURCEEXPR ) &&
|
|
|
|
|
( nToken != SMALRESSOURCE ) &&
|
|
|
|
|
( nToken != LEVELUP ) &&
|
2004-06-25 11:40:49 +00:00
|
|
|
|
( nToken != NORMDEFINE ) &&
|
2000-09-18 16:07:07 +00:00
|
|
|
|
( nToken != RSCDEFINE ) &&
|
|
|
|
|
( nToken != CONDITION ) &&
|
|
|
|
|
( nToken != PRAGMA ))
|
|
|
|
|
{
|
|
|
|
|
// no res. exists at cur. level so return
|
|
|
|
|
if ( bMergeMode )
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOrig , false );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
2004-06-25 11:40:49 +00:00
|
|
|
|
// #define NO_LOCALIZE_EXPORT
|
|
|
|
|
if( bSkipFile ){
|
|
|
|
|
if ( bMergeMode ) {
|
|
|
|
|
WriteToMerged( sOrig , false );
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
if ( bDefine ) {
|
|
|
|
|
if (( nToken != EMPTYLINE ) && ( nToken != LEVELDOWN ) && ( nToken != LEVELUP )) {
|
|
|
|
|
// cur. res. defined in macro
|
|
|
|
|
if ( bNextMustBeDefineEOL ) {
|
|
|
|
|
if ( nToken != RSCDEFINELEND ) {
|
|
|
|
|
// end of macro found, so destroy res.
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDefine = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bMergeMode ) {
|
|
|
|
|
MergeRest( pResData );
|
|
|
|
|
}
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
2006-06-19 16:21:29 +00:00
|
|
|
|
Execute( LEVELDOWN, "" );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
// next line also in macro definition
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bMergeMode )
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOrig , false );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (( nToken != LISTASSIGNMENT ) && ( nToken != UIENTRIES )){
|
|
|
|
|
// cur. line has macro line end
|
|
|
|
|
ByteString sTmpLine( sToken );
|
|
|
|
|
sTmpLine.EraseAllChars( '\t' ); sTmpLine.EraseAllChars( ' ' );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bExecuteDown = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( nToken != LEVELDOWN ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nOpen = 0;
|
|
|
|
|
sal_uInt16 nClose = 0;
|
|
|
|
|
sal_Bool bReadOver1 = sal_False;
|
|
|
|
|
sal_uInt16 i = 0;
|
2003-12-01 15:15:56 +00:00
|
|
|
|
for ( i = 0; i < sToken.Len(); i++ ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( sToken.GetChar( i ) == '\"' )
|
2006-06-19 16:21:29 +00:00
|
|
|
|
bReadOver1 = !bReadOver1;
|
|
|
|
|
if ( !bReadOver1 && ( sToken.GetChar( i ) == '{' ))
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nOpen++;
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bReadOver1 = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
for ( i = 0; i < sToken.Len(); i++ ) {
|
|
|
|
|
if ( sToken.GetChar( i ) == '\"' )
|
2006-06-19 16:21:29 +00:00
|
|
|
|
bReadOver1 = !bReadOver1;
|
|
|
|
|
if ( !bReadOver1 && ( sToken.GetChar( i ) == '}' ))
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nClose++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( nOpen < nClose )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bExecuteDown = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
switch ( nToken ) {
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
case NORMDEFINE:
|
|
|
|
|
while( sToken.SearchAndReplace( "\r", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
while( sToken.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
while( sToken.SearchAndReplace( " ", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
if( sToken.EqualsIgnoreCaseAscii( "#define NO_LOCALIZE_EXPORT" ) ){
|
|
|
|
|
bSkipFile = true;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if ( bMergeMode )
|
|
|
|
|
WriteToMerged( sOrig , false );
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
case RSCDEFINE:
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDefine = sal_True; // res. defined in macro
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
case RESSOURCE:
|
|
|
|
|
case RESSOURCEEXPR: {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( nToken != RSCDEFINE )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// this is the beginning of a new res.
|
|
|
|
|
nLevel++;
|
|
|
|
|
if ( nLevel > 1 ) {
|
Merge commit 'ooo/DEV300_m101' into intm101
The following builds for me:
basebmp, basegfx, comphelper, dtrans, i18npool, i18nutil, l10ntools, o3tl,
psprint_config, regexp, rsc, sax, sot, tools, ucbhelper, unotools, vcl
The rest still needs fixing ;-)
Conflicts:
canvas/prj/build.lst
canvas/source/cairo/cairo_textlayout.cxx
canvas/source/directx/dx_winstuff.hxx
canvas/source/tools/image.cxx
canvas/source/vcl/canvashelper.cxx
comphelper/inc/comphelper/documentconstants.hxx
comphelper/inc/comphelper/optionalvalue.hxx
comphelper/inc/comphelper/querydeep.hxx
comphelper/prj/build.lst
comphelper/qa/complex/makefile.mk
comphelper/qa/string/test_string_noadditional.cxx
comphelper/source/misc/componentmodule.cxx
comphelper/source/misc/mimeconfighelper.cxx
comphelper/source/misc/querydeep.cxx
comphelper/source/misc/uieventslogger.cxx
comphelper/source/property/TypeGeneration.cxx
comphelper/test/uno_iterators/uno_iterators.cxx
comphelper/util/makefile.mk
cppcanvas/source/mtfrenderer/implrenderer.cxx
dtrans/prj/build.lst
dtrans/source/generic/dtrans.cxx
dtrans/source/win32/dtobj/FmtFilter.cxx
i18npool/prj/build.lst
i18npool/source/localedata/data/localedata_others.map
i18npool/source/localedata/data/makefile.mk
i18npool/source/localedata/localedata.cxx
i18npool/source/localedata/saxparser.cxx
i18npool/source/registerservices/registerservices.cxx
i18npool/source/search/textsearch.cxx
l10ntools/inc/cfgmerge.hxx
l10ntools/inc/export.hxx
l10ntools/inc/gsicheck.hxx
l10ntools/inc/l10ntools/vosapp.hxx
l10ntools/inc/tagtest.hxx
l10ntools/inc/xmlparse.hxx
l10ntools/layout/layoutparse.cxx
l10ntools/layout/tralay.cxx
l10ntools/source/cfgmerge.cxx
l10ntools/source/export.cxx
l10ntools/source/export2.cxx
l10ntools/source/gsicheck.cxx
l10ntools/source/help/HelpLinker.cxx
l10ntools/source/lngex.cxx
l10ntools/source/lngmerge.cxx
l10ntools/source/merge.cxx
l10ntools/source/tagtest.cxx
l10ntools/source/xmlparse.cxx
padmin/source/fontentry.cxx
padmin/source/padialog.cxx
padmin/source/padialog.src
padmin/source/pamain.cxx
rsc/inc/rscarray.hxx
rsc/inc/rscclass.hxx
rsc/inc/rscclobj.hxx
rsc/inc/rsccont.hxx
rsc/inc/rscdb.hxx
rsc/inc/rscdef.hxx
rsc/inc/rscmgr.hxx
rsc/inc/rscrange.hxx
rsc/inc/rsctop.hxx
rsc/inc/vclrsc.hxx
rsc/source/parser/rscdb.cxx
rsc/source/parser/rscicpx.cxx
rsc/source/parser/rscinit.cxx
rsc/source/prj/start.cxx
rsc/source/res/rscarray.cxx
rsc/source/res/rscclass.cxx
rsc/source/res/rscclobj.cxx
rsc/source/res/rsccont.cxx
rsc/source/res/rscmgr.cxx
rsc/source/res/rscrange.cxx
rsc/source/res/rsctop.cxx
rsc/source/rsc/rsc.cxx
rsc/source/tools/rscdef.cxx
rsc/source/tools/rsctools.cxx
sax/source/expatwrap/sax_expat.cxx
sax/source/fastparser/facreg.cxx
sax/source/tools/fastserializer.cxx
sot/inc/sot/filelist.hxx
sot/inc/sot/object.hxx
sot/source/base/factory.cxx
sot/source/base/filelist.cxx
sot/source/sdstor/stg.cxx
sot/source/sdstor/stgcache.cxx
sot/source/sdstor/stgole.cxx
sot/source/sdstor/stgstrms.cxx
sot/source/sdstor/storage.cxx
sot/source/sdstor/ucbstorage.cxx
svl/inc/svl/cenumitm.hxx
svl/inc/svl/cintitem.hxx
svl/inc/svl/cntwall.hxx
svl/inc/svl/ctypeitm.hxx
svl/inc/svl/custritm.hxx
svl/inc/svl/dateitem.hxx
svl/inc/svl/filerec.hxx
svl/inc/svl/globalnameitem.hxx
svl/inc/svl/ilstitem.hxx
svl/inc/svl/imageitm.hxx
svl/inc/svl/intitem.hxx
svl/inc/svl/itempool.hxx
svl/inc/svl/itemset.hxx
svl/inc/svl/lckbitem.hxx
svl/inc/svl/poolitem.hxx
svl/inc/svl/ptitem.hxx
svl/inc/svl/rectitem.hxx
svl/inc/svl/sfontitm.hxx
svl/inc/svl/slstitm.hxx
svl/inc/svl/srchitem.hxx
svl/inc/svl/svarray.hxx
svl/inc/svl/svdde.hxx
svl/inc/svl/svstdarr.hxx
svl/inc/svl/szitem.hxx
svl/inc/svl/visitem.hxx
svl/inc/svl/zforlist.hxx
svl/inc/svl/zformat.hxx
svl/prj/build.lst
svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
svl/qa/complex/ConfigItems/helper/makefile.mk
svl/qa/makefile.mk
svl/source/filepicker/pickerhelper.cxx
svl/source/filerec/filerec.cxx
svl/source/items/cenumitm.cxx
svl/source/items/cintitem.cxx
svl/source/items/cntwall.cxx
svl/source/items/ctypeitm.cxx
svl/source/items/custritm.cxx
svl/source/items/dateitem.cxx
svl/source/items/globalnameitem.cxx
svl/source/items/ilstitem.cxx
svl/source/items/imageitm.cxx
svl/source/items/intitem.cxx
svl/source/items/itempool.cxx
svl/source/items/itemprop.cxx
svl/source/items/itemset.cxx
svl/source/items/lckbitem.cxx
svl/source/items/poolio.cxx
svl/source/items/poolitem.cxx
svl/source/items/ptitem.cxx
svl/source/items/rectitem.cxx
svl/source/items/slstitm.cxx
svl/source/items/srchitem.cxx
svl/source/items/style.cxx
svl/source/items/szitem.cxx
svl/source/items/visitem.cxx
svl/source/items/whiter.cxx
svl/source/memtools/svarray.cxx
svl/source/misc/PasswordHelper.cxx
svl/source/misc/adrparse.cxx
svl/source/misc/lngmisc.cxx
svl/source/notify/brdcst.cxx
svl/source/notify/listener.cxx
svl/source/notify/listenerbase.cxx
svl/source/numbers/makefile.mk
svl/source/numbers/nbdll.cxx
svl/source/numbers/zforfind.cxx
svl/source/numbers/zforlist.cxx
svl/source/numbers/zformat.cxx
svl/source/numbers/zforscan.cxx
svl/source/passwordcontainer/passwordcontainer.cxx
svl/source/svdde/ddecli.cxx
svl/source/svdde/ddeimp.hxx
svl/source/svdde/ddemlos2.h
svl/source/svdde/ddesvr.cxx
svl/source/undo/undo.cxx
svl/source/uno/registerservices.cxx
svl/util/makefile.mk
svtools/bmpmaker/bmpsum.cxx
svtools/bmpmaker/g2g.cxx
svtools/bmpmaker/makefile.mk
svtools/inc/borderhelper.hxx
svtools/inc/svtools/accessiblefactory.hxx
svtools/inc/svtools/apearcfg.hxx
svtools/inc/svtools/brwbox.hxx
svtools/inc/svtools/ctrlbox.hxx
svtools/inc/svtools/ctrltool.hxx
svtools/inc/svtools/editbrowsebox.hxx
svtools/inc/svtools/ehdl.hxx
svtools/inc/svtools/embedhlp.hxx
svtools/inc/svtools/filter.hxx
svtools/inc/svtools/ivctrl.hxx
svtools/inc/svtools/parhtml.hxx
svtools/inc/svtools/printdlg.hxx
svtools/inc/svtools/rtftoken.h
svtools/inc/svtools/ruler.hxx
svtools/inc/svtools/svicnvw.hxx
svtools/inc/svtools/svlbitm.hxx
svtools/inc/svtools/svlbox.hxx
svtools/inc/svtools/svtreebx.hxx
svtools/inc/svtools/tabbar.hxx
svtools/inc/svtools/table/abstracttablecontrol.hxx
svtools/inc/svtools/taskbar.hxx
svtools/inc/svtools/textview.hxx
svtools/inc/svtools/valueset.hxx
svtools/source/brwbox/brwbox1.cxx
svtools/source/brwbox/brwbox2.cxx
svtools/source/brwbox/datwin.cxx
svtools/source/brwbox/datwin.hxx
svtools/source/brwbox/makefile.mk
svtools/source/config/apearcfg.cxx
svtools/source/config/htmlcfg.cxx
svtools/source/config/menuoptions.cxx
svtools/source/config/miscopt.cxx
svtools/source/contnr/cont_pch.cxx
svtools/source/contnr/ctrdll.cxx
svtools/source/contnr/fileview.cxx
svtools/source/contnr/imivctl1.cxx
svtools/source/contnr/ivctrl.cxx
svtools/source/contnr/makefile.mk
svtools/source/contnr/svcontnr.src
svtools/source/contnr/svicnvw.cxx
svtools/source/contnr/svimpbox.cxx
svtools/source/contnr/svimpicn.cxx
svtools/source/contnr/svlbitm.cxx
svtools/source/contnr/svtreebx.cxx
svtools/source/contnr/templwin.cxx
svtools/source/contnr/templwin.hxx
svtools/source/control/asynclink.cxx
svtools/source/control/ctrlbox.cxx
svtools/source/control/ctrldll.cxx
svtools/source/control/ctrltool.cxx
svtools/source/control/filectrl.cxx
svtools/source/control/filectrl.src
svtools/source/control/headbar.cxx
svtools/source/control/inettbc.cxx
svtools/source/control/makefile.mk
svtools/source/control/prgsbar.cxx
svtools/source/control/roadmap.cxx
svtools/source/control/ruler.cxx
svtools/source/control/scriptedtext.cxx
svtools/source/control/stdmenu.cxx
svtools/source/control/tabbar.cxx
svtools/source/control/taskbar.cxx
svtools/source/control/taskbox.cxx
svtools/source/control/taskmisc.cxx
svtools/source/control/taskstat.cxx
svtools/source/control/valueacc.cxx
svtools/source/control/valueset.cxx
svtools/source/dialogs/addresstemplate.cxx
svtools/source/dialogs/addresstemplate.src
svtools/source/dialogs/colrdlg.src
svtools/source/dialogs/filedlg2.cxx
svtools/source/dialogs/filedlg2.hxx
svtools/source/dialogs/makefile.mk
svtools/source/dialogs/printdlg.cxx
svtools/source/dialogs/printdlg.src
svtools/source/dialogs/propctrl.cxx
svtools/source/dialogs/propctrl.hxx
svtools/source/dialogs/property.cxx
svtools/source/edit/makefile.mk
svtools/source/edit/sychconv.cxx
svtools/source/edit/syntaxhighlight.cxx
svtools/source/edit/textdoc.cxx
svtools/source/edit/texteng.cxx
svtools/source/edit/textundo.cxx
svtools/source/edit/textview.cxx
svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
svtools/source/filter.vcl/filter/dlgejpg.cxx
svtools/source/filter.vcl/filter/dlgejpg.hxx
svtools/source/filter.vcl/filter/dlgejpg.src
svtools/source/filter.vcl/filter/dlgepng.cxx
svtools/source/filter.vcl/filter/dlgepng.hxx
svtools/source/filter.vcl/filter/dlgepng.src
svtools/source/filter.vcl/filter/dlgexpor.cxx
svtools/source/filter.vcl/filter/dlgexpor.hxx
svtools/source/filter.vcl/filter/dlgexpor.src
svtools/source/filter.vcl/filter/filter2.cxx
svtools/source/filter.vcl/filter/makefile.mk
svtools/source/filter.vcl/filter/sgfbram.cxx
svtools/source/filter.vcl/filter/sgvmain.cxx
svtools/source/filter.vcl/filter/sgvspln.cxx
svtools/source/filter.vcl/filter/strings.src
svtools/source/filter.vcl/jpeg/makefile.mk
svtools/source/filter.vcl/wmf/emfwr.cxx
svtools/source/filter.vcl/wmf/emfwr.hxx
svtools/source/filter.vcl/wmf/enhwmf.cxx
svtools/source/filter.vcl/wmf/winmtf.hxx
svtools/source/filter.vcl/wmf/wmfwr.cxx
svtools/source/filter.vcl/wmf/wmfwr.hxx
svtools/source/graphic/grfcache.cxx
svtools/source/graphic/grfcache.hxx
svtools/source/graphic/grfmgr.cxx
svtools/source/graphic/makefile.mk
svtools/source/inc/accessibletableimp.hxx
svtools/source/inc/svimpbox.hxx
svtools/source/java/patchjavaerror.src
svtools/source/misc/ehdl.cxx
svtools/source/misc/errtxt.src
svtools/source/misc/helpagentwindow.cxx
svtools/source/misc/imagemgr.cxx
svtools/source/misc/imagemgr.src
svtools/source/misc/imageresourceaccess.cxx
svtools/source/misc/imap.cxx
svtools/source/misc/langtab.src
svtools/source/misc/makefile.mk
svtools/source/misc/svtdata.cxx
svtools/source/misc/templatefoldercache.cxx
svtools/source/misc/transfer2.cxx
svtools/source/misc/undo.src
svtools/source/plugapp/commtest.cxx
svtools/source/plugapp/commtest.src
svtools/source/plugapp/makefile.mk
svtools/source/plugapp/testtool.src
svtools/source/productregistration/productregistration.cxx
svtools/source/svhtml/htmlkywd.cxx
svtools/source/svhtml/parhtml.cxx
svtools/source/svrtf/rtfkey2.cxx
svtools/source/svrtf/rtfkeywd.cxx
svtools/source/table/defaultinputhandler.cxx
svtools/source/table/makefile.mk
svtools/source/table/tablecontrol.cxx
svtools/source/table/tablecontrol_impl.cxx
svtools/source/table/tablecontrol_impl.hxx
svtools/source/table/tabledatawindow.cxx
svtools/source/table/tablegeometry.cxx
svtools/source/table/tablegeometry.hxx
svtools/source/toolpanel/makefile.mk
svtools/source/toolpanel/toolpaneldrawer.cxx
svtools/source/uno/addrtempuno.cxx
svtools/source/uno/miscservices.cxx
svtools/source/uno/svtxgridcontrol.cxx
svtools/source/uno/svtxgridcontrol.hxx
svtools/source/uno/toolboxcontroller.cxx
svtools/source/uno/treecontrolpeer.cxx
svtools/source/uno/unocontroltablemodel.cxx
svtools/source/uno/unocontroltablemodel.hxx
svtools/source/uno/unoimap.cxx
svtools/source/urlobj/inetimg.cxx
svtools/util/makefile.mk
svtools/workben/browser.cxx
svtools/workben/cui/makefile.mk
svtools/workben/makefile.mk
svtools/workben/stest.cxx
svtools/workben/toolpanel/makefile.mk
svtools/workben/urange.cxx
toolkit/inc/toolkit/awt/vclxdevice.hxx
toolkit/inc/toolkit/awt/vclxgraphics.hxx
toolkit/inc/toolkit/awt/vclxwindows.hxx
toolkit/inc/toolkit/controls/dialogcontrol.hxx
toolkit/inc/toolkit/helper/property.hxx
toolkit/inc/toolkit/helper/servicenames.hxx
toolkit/inc/toolkit/helper/throbberimpl.hxx
toolkit/qa/complex/toolkit/accessibility/_XAccessibleComponent.java
toolkit/source/awt/asynccallback.cxx
toolkit/source/awt/vclxgraphics.cxx
toolkit/source/awt/vclxtoolkit.cxx
toolkit/source/awt/vclxwindow.cxx
toolkit/source/awt/xsimpleanimation.cxx
toolkit/source/awt/xthrobber.cxx
toolkit/source/controls/dialogcontrol.cxx
toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
toolkit/source/controls/grid/defaultgriddatamodel.cxx
toolkit/source/controls/grid/gridcontrol.cxx
toolkit/source/controls/grid/initguard.hxx
toolkit/source/controls/unocontrol.cxx
toolkit/source/controls/unocontrolcontainer.cxx
toolkit/source/controls/unocontrols.cxx
toolkit/source/helper/listenermultiplexer.cxx
toolkit/source/helper/property.cxx
toolkit/source/helper/registerservices.cxx
toolkit/source/helper/servicenames.cxx
toolkit/source/helper/throbberimpl.cxx
toolkit/source/helper/tkresmgr.cxx
tools/StaticLibrary_ooopathutils.mk
tools/bootstrp/addexes/makefile.mk
tools/bootstrp/addexes2/makefile.mk
tools/bootstrp/addexes2/mkfilt.cxx
tools/bootstrp/command.cxx
tools/bootstrp/cppdep.cxx
tools/bootstrp/iserver.cxx
tools/bootstrp/makefile.mk
tools/bootstrp/mkcreate.cxx
tools/bootstrp/prj.cxx
tools/bootstrp/rscdep.cxx
tools/bootstrp/sstring.cxx
tools/inc/bootstrp/command.hxx
tools/inc/bootstrp/mkcreate.hxx
tools/inc/bootstrp/prj.hxx
tools/inc/bootstrp/sstring.hxx
tools/inc/tools/agapi.hxx
tools/inc/tools/agitem.hxx
tools/inc/tools/chapi.hxx
tools/inc/tools/download.hxx
tools/inc/tools/eacopier.hxx
tools/inc/tools/fract.hxx
tools/inc/tools/fsys.hxx
tools/inc/tools/geninfo.hxx
tools/inc/tools/globname.hxx
tools/inc/tools/inetmime.hxx
tools/inc/tools/multisel.hxx
tools/inc/tools/poly.hxx
tools/inc/tools/postsys.h
tools/inc/tools/postwin.h
tools/inc/tools/presys.h
tools/inc/tools/prewin.h
tools/inc/tools/pstm.hxx
tools/inc/tools/ref.hxx
tools/inc/tools/simplerm.hxx
tools/inc/tools/solar.h
tools/inc/tools/table.hxx
tools/inc/tools/urlkeys.hxx
tools/inc/tools/urlobj.hxx
tools/prj/build.lst
tools/prj/d.lst
tools/qa/makefile.mk
tools/source/communi/geninfo.cxx
tools/source/debug/debug.cxx
tools/source/fsys/dirent.cxx
tools/source/fsys/tdir.cxx
tools/source/fsys/unx.cxx
tools/source/fsys/urlobj.cxx
tools/source/generic/color.cxx
tools/source/generic/config.cxx
tools/source/generic/fract.cxx
tools/source/inet/inetmime.cxx
tools/source/memtools/multisel.cxx
tools/source/memtools/table.cxx
tools/source/rc/resmgr.cxx
tools/source/ref/globname.cxx
tools/source/ref/pstm.cxx
tools/source/solar/solar.c
tools/source/stream/strmos2.cxx
tools/source/stream/strmunx.cxx
tools/source/stream/strmwnt.cxx
tools/source/string/makefile.mk
tools/source/testtoolloader/testtoolloader.cxx
tools/test/makefile.mk
tools/util/makefile.mk
tools/win/inc/dll.hxx
tools/win/inc/parser.hxx
tools/win/inc/shellex.h
tools/win/inc/shutil.h
tools/win/inc/toolsdll.hxx
tools/win/inc/winshell.hxx
tools/workben/makefile.mk
ucbhelper/source/client/proxydecider.cxx
ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
unotools/inc/unotools/unotunnelhelper.hxx
unotools/source/config/fltrcfg.cxx
unotools/source/config/lingucfg.cxx
unotools/source/config/misccfg.cxx
unotools/source/config/pathoptions.cxx
unotools/source/config/searchopt.cxx
unotools/source/i18n/localedatawrapper.cxx
unotools/source/ucbhelper/localfilehelper.cxx
unotools/source/ucbhelper/ucbhelper.cxx
unotools/source/ucbhelper/xtempfile.cxx
vcl/aqua/inc/salbmp.h
vcl/aqua/inc/salgdi.h
vcl/aqua/inc/salinst.h
vcl/aqua/source/app/salinst.cxx
vcl/aqua/source/gdi/aquaprintaccessoryview.mm
vcl/aqua/source/gdi/salgdi.cxx
vcl/aqua/source/gdi/salprn.cxx
vcl/aqua/source/window/salframeview.mm
vcl/aqua/source/window/salobj.cxx
vcl/inc/vcl/bitmap.hxx
vcl/inc/vcl/brdwin.hxx
vcl/inc/vcl/button.hxx
vcl/inc/vcl/cmdevt.hxx
vcl/inc/vcl/cvtgrf.hxx
vcl/inc/vcl/dialog.hxx
vcl/inc/vcl/dockwin.hxx
vcl/inc/vcl/event.hxx
vcl/inc/vcl/fixed.hxx
vcl/inc/vcl/fldunit.hxx
vcl/inc/vcl/floatwin.hxx
vcl/inc/vcl/gdimtf.hxx
vcl/inc/vcl/glyphcache.hxx
vcl/inc/vcl/graphite_adaptors.hxx
vcl/inc/vcl/graphite_features.hxx
vcl/inc/vcl/graphite_layout.hxx
vcl/inc/vcl/ilstbox.hxx
vcl/inc/vcl/image.h
vcl/inc/vcl/imgctrl.hxx
vcl/inc/vcl/impbmpconv.hxx
vcl/inc/vcl/impprn.hxx
vcl/inc/vcl/jobset.h
vcl/inc/vcl/keycodes.hxx
vcl/inc/vcl/lstbox.hxx
vcl/inc/vcl/mapunit.hxx
vcl/inc/vcl/menu.hxx
vcl/inc/vcl/msgbox.hxx
vcl/inc/vcl/outdev.hxx
vcl/inc/vcl/prndlg.hxx
vcl/inc/vcl/salatype.hxx
vcl/inc/vcl/salbmp.hxx
vcl/inc/vcl/salgdi.hxx
vcl/inc/vcl/salinst.hxx
vcl/inc/vcl/seleng.hxx
vcl/inc/vcl/settings.hxx
vcl/inc/vcl/smartid.hxx
vcl/inc/vcl/status.hxx
vcl/inc/vcl/strhelper.hxx
vcl/inc/vcl/svapp.hxx
vcl/inc/vcl/svdata.hxx
vcl/inc/vcl/syschild.hxx
vcl/inc/vcl/sysdata.hxx
vcl/inc/vcl/taskpanelist.hxx
vcl/inc/vcl/toolbox.hxx
vcl/inc/vcl/vclevent.hxx
vcl/inc/vcl/windata.hxx
vcl/inc/vcl/window.hxx
vcl/inc/vcl/wintypes.hxx
vcl/os2/source/app/salinst.cxx
vcl/os2/source/gdi/salgdi.cxx
vcl/os2/source/window/salmenu.cxx
vcl/os2/source/window/salobj.cxx
vcl/prj/build.lst
vcl/source/app/dbggui.cxx
vcl/source/app/help.cxx
vcl/source/app/idlemgr.cxx
vcl/source/app/settings.cxx
vcl/source/app/svapp.cxx
vcl/source/app/svdata.cxx
vcl/source/app/svmain.cxx
vcl/source/app/svmainhook.cxx
vcl/source/app/unohelp.cxx
vcl/source/app/vclevent.cxx
vcl/source/control/button.cxx
vcl/source/control/combobox.cxx
vcl/source/control/edit.cxx
vcl/source/control/field.cxx
vcl/source/control/fixed.cxx
vcl/source/control/ilstbox.cxx
vcl/source/control/imgctrl.cxx
vcl/source/control/makefile.mk
vcl/source/control/tabctrl.cxx
vcl/source/gdi/bitmap.cxx
vcl/source/gdi/bitmap2.cxx
vcl/source/gdi/bitmap4.cxx
vcl/source/gdi/bmpconv.cxx
vcl/source/gdi/cvtsvm.cxx
vcl/source/gdi/font.cxx
vcl/source/gdi/gdimtf.cxx
vcl/source/gdi/image.cxx
vcl/source/gdi/impimage.cxx
vcl/source/gdi/jobset.cxx
vcl/source/gdi/makefile.mk
vcl/source/gdi/metaact.cxx
vcl/source/gdi/outdev.cxx
vcl/source/gdi/outdev3.cxx
vcl/source/gdi/outdev4.cxx
vcl/source/gdi/outdevnative.cxx
vcl/source/gdi/pdfwriter.cxx
vcl/source/gdi/pdfwriter_impl.cxx
vcl/source/gdi/print3.cxx
vcl/source/gdi/salmisc.cxx
vcl/source/glyphs/gcach_ftyp.cxx
vcl/source/glyphs/gcach_ftyp.hxx
vcl/source/glyphs/glyphcache.cxx
vcl/source/glyphs/graphite_cache.cxx
vcl/source/glyphs/graphite_layout.cxx
vcl/source/glyphs/graphite_textsrc.hxx
vcl/source/helper/canvasbitmap.cxx
vcl/source/helper/smartid.cxx
vcl/source/helper/xconnection.cxx
vcl/source/src/btntext.src
vcl/source/src/images.src
vcl/source/src/print.src
vcl/source/window/accel.cxx
vcl/source/window/accmgr.cxx
vcl/source/window/brdwin.cxx
vcl/source/window/btndlg.cxx
vcl/source/window/dlgctrl.cxx
vcl/source/window/javachild.cxx
vcl/source/window/menu.cxx
vcl/source/window/msgbox.cxx
vcl/source/window/printdlg.cxx
vcl/source/window/status.cxx
vcl/source/window/syschild.cxx
vcl/source/window/toolbox.cxx
vcl/source/window/toolbox2.cxx
vcl/source/window/window.cxx
vcl/source/window/window2.cxx
vcl/source/window/wrkwin.cxx
vcl/unx/gtk/app/gtkdata.cxx
vcl/unx/gtk/app/gtkinst.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
vcl/unx/gtk/window/gtkframe.cxx
vcl/unx/gtk/window/gtkobject.cxx
vcl/unx/headless/svpbmp.hxx
vcl/unx/headless/svpgdi.cxx
vcl/unx/headless/svpgdi.hxx
vcl/unx/headless/svpinst.cxx
vcl/unx/headless/svpinst.hxx
vcl/unx/headless/svpprn.cxx
vcl/unx/headless/svpprn.hxx
vcl/unx/headless/svppspgraphics.cxx
vcl/unx/headless/svppspgraphics.hxx
vcl/unx/headless/svptext.cxx
vcl/unx/inc/dtint.hxx
vcl/unx/inc/plugins/gtk/gtkdata.hxx
vcl/unx/inc/pspgraphics.h
vcl/unx/inc/salbmp.h
vcl/unx/inc/saldata.hxx
vcl/unx/inc/saldisp.hxx
vcl/unx/inc/salgdi.h
vcl/unx/inc/salinst.h
vcl/unx/inc/xfont.hxx
vcl/unx/kde/kdedata.cxx
vcl/unx/kde4/KDESalGraphics.cxx
vcl/unx/source/app/keysymnames.cxx
vcl/unx/source/app/saldata.cxx
vcl/unx/source/app/saldisp.cxx
vcl/unx/source/app/salinst.cxx
vcl/unx/source/app/wmadaptor.cxx
vcl/unx/source/dtrans/X11_selection.cxx
vcl/unx/source/dtrans/X11_service.cxx
vcl/unx/source/gdi/makefile.mk
vcl/unx/source/gdi/pspgraphics.cxx
vcl/unx/source/gdi/salgdi.cxx
vcl/unx/source/gdi/salgdi3.cxx
vcl/unx/source/gdi/salprnpsp.cxx
vcl/unx/source/gdi/xfont.cxx
vcl/unx/source/gdi/xlfd_attr.cxx
vcl/unx/source/gdi/xlfd_attr.hxx
vcl/unx/source/gdi/xlfd_extd.cxx
vcl/unx/source/gdi/xlfd_extd.hxx
vcl/unx/source/gdi/xlfd_smpl.cxx
vcl/unx/source/gdi/xlfd_smpl.hxx
vcl/unx/source/printer/ppdparser.cxx
vcl/unx/source/printer/printerinfomanager.cxx
vcl/unx/source/window/salframe.cxx
vcl/unx/source/window/salmenu.cxx
vcl/unx/source/window/salobj.cxx
vcl/util/makefile2.pmk
vcl/win/inc/salbmp.h
vcl/win/inc/saldata.hxx
vcl/win/inc/salgdi.h
vcl/win/inc/salinst.h
vcl/win/source/app/saldata.cxx
vcl/win/source/app/salinst.cxx
vcl/win/source/gdi/salgdi.cxx
vcl/win/source/gdi/salgdi3.cxx
vcl/win/source/gdi/salprn.cxx
vcl/win/source/gdi/winlayout.cxx
vcl/win/source/window/salframe.cxx
vcl/win/source/window/salobj.cxx
vcl/workben/outdevgrind.cxx
vos/inc/vos/execabl.hxx
vos/inc/vos/macros.hxx
vos/inc/vos/pipe.hxx
vos/inc/vos/process.hxx
vos/inc/vos/refernce.hxx
vos/inc/vos/signal.hxx
vos/inc/vos/socket.hxx
vos/inc/vos/stream.hxx
vos/inc/vos/thread.hxx
vos/source/pipe.cxx
vos/source/process.cxx
vos/source/signal.cxx
vos/source/thread.cxx
vos/source/timer.cxx
2011-03-11 14:24:23 +01:00
|
|
|
|
aResStack[ nLevel - 2 ]->bChild = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// create new instance for this res. and fill mandatory fields
|
|
|
|
|
|
2006-03-29 12:26:24 +00:00
|
|
|
|
pResData = new ResData( sActPForm, FullId() , sFilename );
|
2011-01-22 21:51:18 -08:00
|
|
|
|
aResStack.push_back( pResData );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sBackup( sToken );
|
|
|
|
|
sToken.EraseAllChars( '\n' );
|
2001-06-07 12:33:31 +00:00
|
|
|
|
sToken.EraseAllChars( '\r' );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sToken.EraseAllChars( '{' );
|
|
|
|
|
while( sToken.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
sToken.EraseTrailingChars( ' ' );
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sT = getToken(sToken, 0, ' ');
|
2006-06-19 16:21:29 +00:00
|
|
|
|
pResData->sResTyp = sT.ToLowerAscii();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sId( sToken.Copy( pResData->sResTyp.Len() + 1 ));
|
|
|
|
|
ByteString sCondition;
|
|
|
|
|
if ( sId.Search( "#" ) != STRING_NOTFOUND ) {
|
|
|
|
|
// between ResTyp, Id and paranthes is a precomp. condition
|
|
|
|
|
sCondition = "#";
|
2011-08-29 23:03:08 +01:00
|
|
|
|
sCondition += ByteString(getToken(sId, 1, '#'));
|
|
|
|
|
sId = getToken(sId, 0, '#');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-08-29 23:03:08 +01:00
|
|
|
|
sId = getToken(sId, 0, '/');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
CleanValue( sId );
|
|
|
|
|
sId = sId.EraseAllChars( '\t' );
|
|
|
|
|
pResData->SetId( sId, ID_LEVEL_IDENTIFIER );
|
|
|
|
|
if ( sCondition.Len()) {
|
|
|
|
|
ByteString sEmpty( "" );
|
|
|
|
|
Execute( CONDITION, sEmpty.GetBufferAccess()); // execute the
|
|
|
|
|
// precomp.
|
|
|
|
|
// condition
|
|
|
|
|
sEmpty.ReleaseBufferAccess();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case SMALRESSOURCE: {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// this is the beginning of a new res.
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nLevel++;
|
|
|
|
|
if ( nLevel > 1 ) {
|
Merge commit 'ooo/DEV300_m101' into intm101
The following builds for me:
basebmp, basegfx, comphelper, dtrans, i18npool, i18nutil, l10ntools, o3tl,
psprint_config, regexp, rsc, sax, sot, tools, ucbhelper, unotools, vcl
The rest still needs fixing ;-)
Conflicts:
canvas/prj/build.lst
canvas/source/cairo/cairo_textlayout.cxx
canvas/source/directx/dx_winstuff.hxx
canvas/source/tools/image.cxx
canvas/source/vcl/canvashelper.cxx
comphelper/inc/comphelper/documentconstants.hxx
comphelper/inc/comphelper/optionalvalue.hxx
comphelper/inc/comphelper/querydeep.hxx
comphelper/prj/build.lst
comphelper/qa/complex/makefile.mk
comphelper/qa/string/test_string_noadditional.cxx
comphelper/source/misc/componentmodule.cxx
comphelper/source/misc/mimeconfighelper.cxx
comphelper/source/misc/querydeep.cxx
comphelper/source/misc/uieventslogger.cxx
comphelper/source/property/TypeGeneration.cxx
comphelper/test/uno_iterators/uno_iterators.cxx
comphelper/util/makefile.mk
cppcanvas/source/mtfrenderer/implrenderer.cxx
dtrans/prj/build.lst
dtrans/source/generic/dtrans.cxx
dtrans/source/win32/dtobj/FmtFilter.cxx
i18npool/prj/build.lst
i18npool/source/localedata/data/localedata_others.map
i18npool/source/localedata/data/makefile.mk
i18npool/source/localedata/localedata.cxx
i18npool/source/localedata/saxparser.cxx
i18npool/source/registerservices/registerservices.cxx
i18npool/source/search/textsearch.cxx
l10ntools/inc/cfgmerge.hxx
l10ntools/inc/export.hxx
l10ntools/inc/gsicheck.hxx
l10ntools/inc/l10ntools/vosapp.hxx
l10ntools/inc/tagtest.hxx
l10ntools/inc/xmlparse.hxx
l10ntools/layout/layoutparse.cxx
l10ntools/layout/tralay.cxx
l10ntools/source/cfgmerge.cxx
l10ntools/source/export.cxx
l10ntools/source/export2.cxx
l10ntools/source/gsicheck.cxx
l10ntools/source/help/HelpLinker.cxx
l10ntools/source/lngex.cxx
l10ntools/source/lngmerge.cxx
l10ntools/source/merge.cxx
l10ntools/source/tagtest.cxx
l10ntools/source/xmlparse.cxx
padmin/source/fontentry.cxx
padmin/source/padialog.cxx
padmin/source/padialog.src
padmin/source/pamain.cxx
rsc/inc/rscarray.hxx
rsc/inc/rscclass.hxx
rsc/inc/rscclobj.hxx
rsc/inc/rsccont.hxx
rsc/inc/rscdb.hxx
rsc/inc/rscdef.hxx
rsc/inc/rscmgr.hxx
rsc/inc/rscrange.hxx
rsc/inc/rsctop.hxx
rsc/inc/vclrsc.hxx
rsc/source/parser/rscdb.cxx
rsc/source/parser/rscicpx.cxx
rsc/source/parser/rscinit.cxx
rsc/source/prj/start.cxx
rsc/source/res/rscarray.cxx
rsc/source/res/rscclass.cxx
rsc/source/res/rscclobj.cxx
rsc/source/res/rsccont.cxx
rsc/source/res/rscmgr.cxx
rsc/source/res/rscrange.cxx
rsc/source/res/rsctop.cxx
rsc/source/rsc/rsc.cxx
rsc/source/tools/rscdef.cxx
rsc/source/tools/rsctools.cxx
sax/source/expatwrap/sax_expat.cxx
sax/source/fastparser/facreg.cxx
sax/source/tools/fastserializer.cxx
sot/inc/sot/filelist.hxx
sot/inc/sot/object.hxx
sot/source/base/factory.cxx
sot/source/base/filelist.cxx
sot/source/sdstor/stg.cxx
sot/source/sdstor/stgcache.cxx
sot/source/sdstor/stgole.cxx
sot/source/sdstor/stgstrms.cxx
sot/source/sdstor/storage.cxx
sot/source/sdstor/ucbstorage.cxx
svl/inc/svl/cenumitm.hxx
svl/inc/svl/cintitem.hxx
svl/inc/svl/cntwall.hxx
svl/inc/svl/ctypeitm.hxx
svl/inc/svl/custritm.hxx
svl/inc/svl/dateitem.hxx
svl/inc/svl/filerec.hxx
svl/inc/svl/globalnameitem.hxx
svl/inc/svl/ilstitem.hxx
svl/inc/svl/imageitm.hxx
svl/inc/svl/intitem.hxx
svl/inc/svl/itempool.hxx
svl/inc/svl/itemset.hxx
svl/inc/svl/lckbitem.hxx
svl/inc/svl/poolitem.hxx
svl/inc/svl/ptitem.hxx
svl/inc/svl/rectitem.hxx
svl/inc/svl/sfontitm.hxx
svl/inc/svl/slstitm.hxx
svl/inc/svl/srchitem.hxx
svl/inc/svl/svarray.hxx
svl/inc/svl/svdde.hxx
svl/inc/svl/svstdarr.hxx
svl/inc/svl/szitem.hxx
svl/inc/svl/visitem.hxx
svl/inc/svl/zforlist.hxx
svl/inc/svl/zformat.hxx
svl/prj/build.lst
svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
svl/qa/complex/ConfigItems/helper/makefile.mk
svl/qa/makefile.mk
svl/source/filepicker/pickerhelper.cxx
svl/source/filerec/filerec.cxx
svl/source/items/cenumitm.cxx
svl/source/items/cintitem.cxx
svl/source/items/cntwall.cxx
svl/source/items/ctypeitm.cxx
svl/source/items/custritm.cxx
svl/source/items/dateitem.cxx
svl/source/items/globalnameitem.cxx
svl/source/items/ilstitem.cxx
svl/source/items/imageitm.cxx
svl/source/items/intitem.cxx
svl/source/items/itempool.cxx
svl/source/items/itemprop.cxx
svl/source/items/itemset.cxx
svl/source/items/lckbitem.cxx
svl/source/items/poolio.cxx
svl/source/items/poolitem.cxx
svl/source/items/ptitem.cxx
svl/source/items/rectitem.cxx
svl/source/items/slstitm.cxx
svl/source/items/srchitem.cxx
svl/source/items/style.cxx
svl/source/items/szitem.cxx
svl/source/items/visitem.cxx
svl/source/items/whiter.cxx
svl/source/memtools/svarray.cxx
svl/source/misc/PasswordHelper.cxx
svl/source/misc/adrparse.cxx
svl/source/misc/lngmisc.cxx
svl/source/notify/brdcst.cxx
svl/source/notify/listener.cxx
svl/source/notify/listenerbase.cxx
svl/source/numbers/makefile.mk
svl/source/numbers/nbdll.cxx
svl/source/numbers/zforfind.cxx
svl/source/numbers/zforlist.cxx
svl/source/numbers/zformat.cxx
svl/source/numbers/zforscan.cxx
svl/source/passwordcontainer/passwordcontainer.cxx
svl/source/svdde/ddecli.cxx
svl/source/svdde/ddeimp.hxx
svl/source/svdde/ddemlos2.h
svl/source/svdde/ddesvr.cxx
svl/source/undo/undo.cxx
svl/source/uno/registerservices.cxx
svl/util/makefile.mk
svtools/bmpmaker/bmpsum.cxx
svtools/bmpmaker/g2g.cxx
svtools/bmpmaker/makefile.mk
svtools/inc/borderhelper.hxx
svtools/inc/svtools/accessiblefactory.hxx
svtools/inc/svtools/apearcfg.hxx
svtools/inc/svtools/brwbox.hxx
svtools/inc/svtools/ctrlbox.hxx
svtools/inc/svtools/ctrltool.hxx
svtools/inc/svtools/editbrowsebox.hxx
svtools/inc/svtools/ehdl.hxx
svtools/inc/svtools/embedhlp.hxx
svtools/inc/svtools/filter.hxx
svtools/inc/svtools/ivctrl.hxx
svtools/inc/svtools/parhtml.hxx
svtools/inc/svtools/printdlg.hxx
svtools/inc/svtools/rtftoken.h
svtools/inc/svtools/ruler.hxx
svtools/inc/svtools/svicnvw.hxx
svtools/inc/svtools/svlbitm.hxx
svtools/inc/svtools/svlbox.hxx
svtools/inc/svtools/svtreebx.hxx
svtools/inc/svtools/tabbar.hxx
svtools/inc/svtools/table/abstracttablecontrol.hxx
svtools/inc/svtools/taskbar.hxx
svtools/inc/svtools/textview.hxx
svtools/inc/svtools/valueset.hxx
svtools/source/brwbox/brwbox1.cxx
svtools/source/brwbox/brwbox2.cxx
svtools/source/brwbox/datwin.cxx
svtools/source/brwbox/datwin.hxx
svtools/source/brwbox/makefile.mk
svtools/source/config/apearcfg.cxx
svtools/source/config/htmlcfg.cxx
svtools/source/config/menuoptions.cxx
svtools/source/config/miscopt.cxx
svtools/source/contnr/cont_pch.cxx
svtools/source/contnr/ctrdll.cxx
svtools/source/contnr/fileview.cxx
svtools/source/contnr/imivctl1.cxx
svtools/source/contnr/ivctrl.cxx
svtools/source/contnr/makefile.mk
svtools/source/contnr/svcontnr.src
svtools/source/contnr/svicnvw.cxx
svtools/source/contnr/svimpbox.cxx
svtools/source/contnr/svimpicn.cxx
svtools/source/contnr/svlbitm.cxx
svtools/source/contnr/svtreebx.cxx
svtools/source/contnr/templwin.cxx
svtools/source/contnr/templwin.hxx
svtools/source/control/asynclink.cxx
svtools/source/control/ctrlbox.cxx
svtools/source/control/ctrldll.cxx
svtools/source/control/ctrltool.cxx
svtools/source/control/filectrl.cxx
svtools/source/control/filectrl.src
svtools/source/control/headbar.cxx
svtools/source/control/inettbc.cxx
svtools/source/control/makefile.mk
svtools/source/control/prgsbar.cxx
svtools/source/control/roadmap.cxx
svtools/source/control/ruler.cxx
svtools/source/control/scriptedtext.cxx
svtools/source/control/stdmenu.cxx
svtools/source/control/tabbar.cxx
svtools/source/control/taskbar.cxx
svtools/source/control/taskbox.cxx
svtools/source/control/taskmisc.cxx
svtools/source/control/taskstat.cxx
svtools/source/control/valueacc.cxx
svtools/source/control/valueset.cxx
svtools/source/dialogs/addresstemplate.cxx
svtools/source/dialogs/addresstemplate.src
svtools/source/dialogs/colrdlg.src
svtools/source/dialogs/filedlg2.cxx
svtools/source/dialogs/filedlg2.hxx
svtools/source/dialogs/makefile.mk
svtools/source/dialogs/printdlg.cxx
svtools/source/dialogs/printdlg.src
svtools/source/dialogs/propctrl.cxx
svtools/source/dialogs/propctrl.hxx
svtools/source/dialogs/property.cxx
svtools/source/edit/makefile.mk
svtools/source/edit/sychconv.cxx
svtools/source/edit/syntaxhighlight.cxx
svtools/source/edit/textdoc.cxx
svtools/source/edit/texteng.cxx
svtools/source/edit/textundo.cxx
svtools/source/edit/textview.cxx
svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
svtools/source/filter.vcl/filter/dlgejpg.cxx
svtools/source/filter.vcl/filter/dlgejpg.hxx
svtools/source/filter.vcl/filter/dlgejpg.src
svtools/source/filter.vcl/filter/dlgepng.cxx
svtools/source/filter.vcl/filter/dlgepng.hxx
svtools/source/filter.vcl/filter/dlgepng.src
svtools/source/filter.vcl/filter/dlgexpor.cxx
svtools/source/filter.vcl/filter/dlgexpor.hxx
svtools/source/filter.vcl/filter/dlgexpor.src
svtools/source/filter.vcl/filter/filter2.cxx
svtools/source/filter.vcl/filter/makefile.mk
svtools/source/filter.vcl/filter/sgfbram.cxx
svtools/source/filter.vcl/filter/sgvmain.cxx
svtools/source/filter.vcl/filter/sgvspln.cxx
svtools/source/filter.vcl/filter/strings.src
svtools/source/filter.vcl/jpeg/makefile.mk
svtools/source/filter.vcl/wmf/emfwr.cxx
svtools/source/filter.vcl/wmf/emfwr.hxx
svtools/source/filter.vcl/wmf/enhwmf.cxx
svtools/source/filter.vcl/wmf/winmtf.hxx
svtools/source/filter.vcl/wmf/wmfwr.cxx
svtools/source/filter.vcl/wmf/wmfwr.hxx
svtools/source/graphic/grfcache.cxx
svtools/source/graphic/grfcache.hxx
svtools/source/graphic/grfmgr.cxx
svtools/source/graphic/makefile.mk
svtools/source/inc/accessibletableimp.hxx
svtools/source/inc/svimpbox.hxx
svtools/source/java/patchjavaerror.src
svtools/source/misc/ehdl.cxx
svtools/source/misc/errtxt.src
svtools/source/misc/helpagentwindow.cxx
svtools/source/misc/imagemgr.cxx
svtools/source/misc/imagemgr.src
svtools/source/misc/imageresourceaccess.cxx
svtools/source/misc/imap.cxx
svtools/source/misc/langtab.src
svtools/source/misc/makefile.mk
svtools/source/misc/svtdata.cxx
svtools/source/misc/templatefoldercache.cxx
svtools/source/misc/transfer2.cxx
svtools/source/misc/undo.src
svtools/source/plugapp/commtest.cxx
svtools/source/plugapp/commtest.src
svtools/source/plugapp/makefile.mk
svtools/source/plugapp/testtool.src
svtools/source/productregistration/productregistration.cxx
svtools/source/svhtml/htmlkywd.cxx
svtools/source/svhtml/parhtml.cxx
svtools/source/svrtf/rtfkey2.cxx
svtools/source/svrtf/rtfkeywd.cxx
svtools/source/table/defaultinputhandler.cxx
svtools/source/table/makefile.mk
svtools/source/table/tablecontrol.cxx
svtools/source/table/tablecontrol_impl.cxx
svtools/source/table/tablecontrol_impl.hxx
svtools/source/table/tabledatawindow.cxx
svtools/source/table/tablegeometry.cxx
svtools/source/table/tablegeometry.hxx
svtools/source/toolpanel/makefile.mk
svtools/source/toolpanel/toolpaneldrawer.cxx
svtools/source/uno/addrtempuno.cxx
svtools/source/uno/miscservices.cxx
svtools/source/uno/svtxgridcontrol.cxx
svtools/source/uno/svtxgridcontrol.hxx
svtools/source/uno/toolboxcontroller.cxx
svtools/source/uno/treecontrolpeer.cxx
svtools/source/uno/unocontroltablemodel.cxx
svtools/source/uno/unocontroltablemodel.hxx
svtools/source/uno/unoimap.cxx
svtools/source/urlobj/inetimg.cxx
svtools/util/makefile.mk
svtools/workben/browser.cxx
svtools/workben/cui/makefile.mk
svtools/workben/makefile.mk
svtools/workben/stest.cxx
svtools/workben/toolpanel/makefile.mk
svtools/workben/urange.cxx
toolkit/inc/toolkit/awt/vclxdevice.hxx
toolkit/inc/toolkit/awt/vclxgraphics.hxx
toolkit/inc/toolkit/awt/vclxwindows.hxx
toolkit/inc/toolkit/controls/dialogcontrol.hxx
toolkit/inc/toolkit/helper/property.hxx
toolkit/inc/toolkit/helper/servicenames.hxx
toolkit/inc/toolkit/helper/throbberimpl.hxx
toolkit/qa/complex/toolkit/accessibility/_XAccessibleComponent.java
toolkit/source/awt/asynccallback.cxx
toolkit/source/awt/vclxgraphics.cxx
toolkit/source/awt/vclxtoolkit.cxx
toolkit/source/awt/vclxwindow.cxx
toolkit/source/awt/xsimpleanimation.cxx
toolkit/source/awt/xthrobber.cxx
toolkit/source/controls/dialogcontrol.cxx
toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
toolkit/source/controls/grid/defaultgriddatamodel.cxx
toolkit/source/controls/grid/gridcontrol.cxx
toolkit/source/controls/grid/initguard.hxx
toolkit/source/controls/unocontrol.cxx
toolkit/source/controls/unocontrolcontainer.cxx
toolkit/source/controls/unocontrols.cxx
toolkit/source/helper/listenermultiplexer.cxx
toolkit/source/helper/property.cxx
toolkit/source/helper/registerservices.cxx
toolkit/source/helper/servicenames.cxx
toolkit/source/helper/throbberimpl.cxx
toolkit/source/helper/tkresmgr.cxx
tools/StaticLibrary_ooopathutils.mk
tools/bootstrp/addexes/makefile.mk
tools/bootstrp/addexes2/makefile.mk
tools/bootstrp/addexes2/mkfilt.cxx
tools/bootstrp/command.cxx
tools/bootstrp/cppdep.cxx
tools/bootstrp/iserver.cxx
tools/bootstrp/makefile.mk
tools/bootstrp/mkcreate.cxx
tools/bootstrp/prj.cxx
tools/bootstrp/rscdep.cxx
tools/bootstrp/sstring.cxx
tools/inc/bootstrp/command.hxx
tools/inc/bootstrp/mkcreate.hxx
tools/inc/bootstrp/prj.hxx
tools/inc/bootstrp/sstring.hxx
tools/inc/tools/agapi.hxx
tools/inc/tools/agitem.hxx
tools/inc/tools/chapi.hxx
tools/inc/tools/download.hxx
tools/inc/tools/eacopier.hxx
tools/inc/tools/fract.hxx
tools/inc/tools/fsys.hxx
tools/inc/tools/geninfo.hxx
tools/inc/tools/globname.hxx
tools/inc/tools/inetmime.hxx
tools/inc/tools/multisel.hxx
tools/inc/tools/poly.hxx
tools/inc/tools/postsys.h
tools/inc/tools/postwin.h
tools/inc/tools/presys.h
tools/inc/tools/prewin.h
tools/inc/tools/pstm.hxx
tools/inc/tools/ref.hxx
tools/inc/tools/simplerm.hxx
tools/inc/tools/solar.h
tools/inc/tools/table.hxx
tools/inc/tools/urlkeys.hxx
tools/inc/tools/urlobj.hxx
tools/prj/build.lst
tools/prj/d.lst
tools/qa/makefile.mk
tools/source/communi/geninfo.cxx
tools/source/debug/debug.cxx
tools/source/fsys/dirent.cxx
tools/source/fsys/tdir.cxx
tools/source/fsys/unx.cxx
tools/source/fsys/urlobj.cxx
tools/source/generic/color.cxx
tools/source/generic/config.cxx
tools/source/generic/fract.cxx
tools/source/inet/inetmime.cxx
tools/source/memtools/multisel.cxx
tools/source/memtools/table.cxx
tools/source/rc/resmgr.cxx
tools/source/ref/globname.cxx
tools/source/ref/pstm.cxx
tools/source/solar/solar.c
tools/source/stream/strmos2.cxx
tools/source/stream/strmunx.cxx
tools/source/stream/strmwnt.cxx
tools/source/string/makefile.mk
tools/source/testtoolloader/testtoolloader.cxx
tools/test/makefile.mk
tools/util/makefile.mk
tools/win/inc/dll.hxx
tools/win/inc/parser.hxx
tools/win/inc/shellex.h
tools/win/inc/shutil.h
tools/win/inc/toolsdll.hxx
tools/win/inc/winshell.hxx
tools/workben/makefile.mk
ucbhelper/source/client/proxydecider.cxx
ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
unotools/inc/unotools/unotunnelhelper.hxx
unotools/source/config/fltrcfg.cxx
unotools/source/config/lingucfg.cxx
unotools/source/config/misccfg.cxx
unotools/source/config/pathoptions.cxx
unotools/source/config/searchopt.cxx
unotools/source/i18n/localedatawrapper.cxx
unotools/source/ucbhelper/localfilehelper.cxx
unotools/source/ucbhelper/ucbhelper.cxx
unotools/source/ucbhelper/xtempfile.cxx
vcl/aqua/inc/salbmp.h
vcl/aqua/inc/salgdi.h
vcl/aqua/inc/salinst.h
vcl/aqua/source/app/salinst.cxx
vcl/aqua/source/gdi/aquaprintaccessoryview.mm
vcl/aqua/source/gdi/salgdi.cxx
vcl/aqua/source/gdi/salprn.cxx
vcl/aqua/source/window/salframeview.mm
vcl/aqua/source/window/salobj.cxx
vcl/inc/vcl/bitmap.hxx
vcl/inc/vcl/brdwin.hxx
vcl/inc/vcl/button.hxx
vcl/inc/vcl/cmdevt.hxx
vcl/inc/vcl/cvtgrf.hxx
vcl/inc/vcl/dialog.hxx
vcl/inc/vcl/dockwin.hxx
vcl/inc/vcl/event.hxx
vcl/inc/vcl/fixed.hxx
vcl/inc/vcl/fldunit.hxx
vcl/inc/vcl/floatwin.hxx
vcl/inc/vcl/gdimtf.hxx
vcl/inc/vcl/glyphcache.hxx
vcl/inc/vcl/graphite_adaptors.hxx
vcl/inc/vcl/graphite_features.hxx
vcl/inc/vcl/graphite_layout.hxx
vcl/inc/vcl/ilstbox.hxx
vcl/inc/vcl/image.h
vcl/inc/vcl/imgctrl.hxx
vcl/inc/vcl/impbmpconv.hxx
vcl/inc/vcl/impprn.hxx
vcl/inc/vcl/jobset.h
vcl/inc/vcl/keycodes.hxx
vcl/inc/vcl/lstbox.hxx
vcl/inc/vcl/mapunit.hxx
vcl/inc/vcl/menu.hxx
vcl/inc/vcl/msgbox.hxx
vcl/inc/vcl/outdev.hxx
vcl/inc/vcl/prndlg.hxx
vcl/inc/vcl/salatype.hxx
vcl/inc/vcl/salbmp.hxx
vcl/inc/vcl/salgdi.hxx
vcl/inc/vcl/salinst.hxx
vcl/inc/vcl/seleng.hxx
vcl/inc/vcl/settings.hxx
vcl/inc/vcl/smartid.hxx
vcl/inc/vcl/status.hxx
vcl/inc/vcl/strhelper.hxx
vcl/inc/vcl/svapp.hxx
vcl/inc/vcl/svdata.hxx
vcl/inc/vcl/syschild.hxx
vcl/inc/vcl/sysdata.hxx
vcl/inc/vcl/taskpanelist.hxx
vcl/inc/vcl/toolbox.hxx
vcl/inc/vcl/vclevent.hxx
vcl/inc/vcl/windata.hxx
vcl/inc/vcl/window.hxx
vcl/inc/vcl/wintypes.hxx
vcl/os2/source/app/salinst.cxx
vcl/os2/source/gdi/salgdi.cxx
vcl/os2/source/window/salmenu.cxx
vcl/os2/source/window/salobj.cxx
vcl/prj/build.lst
vcl/source/app/dbggui.cxx
vcl/source/app/help.cxx
vcl/source/app/idlemgr.cxx
vcl/source/app/settings.cxx
vcl/source/app/svapp.cxx
vcl/source/app/svdata.cxx
vcl/source/app/svmain.cxx
vcl/source/app/svmainhook.cxx
vcl/source/app/unohelp.cxx
vcl/source/app/vclevent.cxx
vcl/source/control/button.cxx
vcl/source/control/combobox.cxx
vcl/source/control/edit.cxx
vcl/source/control/field.cxx
vcl/source/control/fixed.cxx
vcl/source/control/ilstbox.cxx
vcl/source/control/imgctrl.cxx
vcl/source/control/makefile.mk
vcl/source/control/tabctrl.cxx
vcl/source/gdi/bitmap.cxx
vcl/source/gdi/bitmap2.cxx
vcl/source/gdi/bitmap4.cxx
vcl/source/gdi/bmpconv.cxx
vcl/source/gdi/cvtsvm.cxx
vcl/source/gdi/font.cxx
vcl/source/gdi/gdimtf.cxx
vcl/source/gdi/image.cxx
vcl/source/gdi/impimage.cxx
vcl/source/gdi/jobset.cxx
vcl/source/gdi/makefile.mk
vcl/source/gdi/metaact.cxx
vcl/source/gdi/outdev.cxx
vcl/source/gdi/outdev3.cxx
vcl/source/gdi/outdev4.cxx
vcl/source/gdi/outdevnative.cxx
vcl/source/gdi/pdfwriter.cxx
vcl/source/gdi/pdfwriter_impl.cxx
vcl/source/gdi/print3.cxx
vcl/source/gdi/salmisc.cxx
vcl/source/glyphs/gcach_ftyp.cxx
vcl/source/glyphs/gcach_ftyp.hxx
vcl/source/glyphs/glyphcache.cxx
vcl/source/glyphs/graphite_cache.cxx
vcl/source/glyphs/graphite_layout.cxx
vcl/source/glyphs/graphite_textsrc.hxx
vcl/source/helper/canvasbitmap.cxx
vcl/source/helper/smartid.cxx
vcl/source/helper/xconnection.cxx
vcl/source/src/btntext.src
vcl/source/src/images.src
vcl/source/src/print.src
vcl/source/window/accel.cxx
vcl/source/window/accmgr.cxx
vcl/source/window/brdwin.cxx
vcl/source/window/btndlg.cxx
vcl/source/window/dlgctrl.cxx
vcl/source/window/javachild.cxx
vcl/source/window/menu.cxx
vcl/source/window/msgbox.cxx
vcl/source/window/printdlg.cxx
vcl/source/window/status.cxx
vcl/source/window/syschild.cxx
vcl/source/window/toolbox.cxx
vcl/source/window/toolbox2.cxx
vcl/source/window/window.cxx
vcl/source/window/window2.cxx
vcl/source/window/wrkwin.cxx
vcl/unx/gtk/app/gtkdata.cxx
vcl/unx/gtk/app/gtkinst.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
vcl/unx/gtk/window/gtkframe.cxx
vcl/unx/gtk/window/gtkobject.cxx
vcl/unx/headless/svpbmp.hxx
vcl/unx/headless/svpgdi.cxx
vcl/unx/headless/svpgdi.hxx
vcl/unx/headless/svpinst.cxx
vcl/unx/headless/svpinst.hxx
vcl/unx/headless/svpprn.cxx
vcl/unx/headless/svpprn.hxx
vcl/unx/headless/svppspgraphics.cxx
vcl/unx/headless/svppspgraphics.hxx
vcl/unx/headless/svptext.cxx
vcl/unx/inc/dtint.hxx
vcl/unx/inc/plugins/gtk/gtkdata.hxx
vcl/unx/inc/pspgraphics.h
vcl/unx/inc/salbmp.h
vcl/unx/inc/saldata.hxx
vcl/unx/inc/saldisp.hxx
vcl/unx/inc/salgdi.h
vcl/unx/inc/salinst.h
vcl/unx/inc/xfont.hxx
vcl/unx/kde/kdedata.cxx
vcl/unx/kde4/KDESalGraphics.cxx
vcl/unx/source/app/keysymnames.cxx
vcl/unx/source/app/saldata.cxx
vcl/unx/source/app/saldisp.cxx
vcl/unx/source/app/salinst.cxx
vcl/unx/source/app/wmadaptor.cxx
vcl/unx/source/dtrans/X11_selection.cxx
vcl/unx/source/dtrans/X11_service.cxx
vcl/unx/source/gdi/makefile.mk
vcl/unx/source/gdi/pspgraphics.cxx
vcl/unx/source/gdi/salgdi.cxx
vcl/unx/source/gdi/salgdi3.cxx
vcl/unx/source/gdi/salprnpsp.cxx
vcl/unx/source/gdi/xfont.cxx
vcl/unx/source/gdi/xlfd_attr.cxx
vcl/unx/source/gdi/xlfd_attr.hxx
vcl/unx/source/gdi/xlfd_extd.cxx
vcl/unx/source/gdi/xlfd_extd.hxx
vcl/unx/source/gdi/xlfd_smpl.cxx
vcl/unx/source/gdi/xlfd_smpl.hxx
vcl/unx/source/printer/ppdparser.cxx
vcl/unx/source/printer/printerinfomanager.cxx
vcl/unx/source/window/salframe.cxx
vcl/unx/source/window/salmenu.cxx
vcl/unx/source/window/salobj.cxx
vcl/util/makefile2.pmk
vcl/win/inc/salbmp.h
vcl/win/inc/saldata.hxx
vcl/win/inc/salgdi.h
vcl/win/inc/salinst.h
vcl/win/source/app/saldata.cxx
vcl/win/source/app/salinst.cxx
vcl/win/source/gdi/salgdi.cxx
vcl/win/source/gdi/salgdi3.cxx
vcl/win/source/gdi/salprn.cxx
vcl/win/source/gdi/winlayout.cxx
vcl/win/source/window/salframe.cxx
vcl/win/source/window/salobj.cxx
vcl/workben/outdevgrind.cxx
vos/inc/vos/execabl.hxx
vos/inc/vos/macros.hxx
vos/inc/vos/pipe.hxx
vos/inc/vos/process.hxx
vos/inc/vos/refernce.hxx
vos/inc/vos/signal.hxx
vos/inc/vos/socket.hxx
vos/inc/vos/stream.hxx
vos/inc/vos/thread.hxx
vos/source/pipe.cxx
vos/source/process.cxx
vos/source/signal.cxx
vos/source/thread.cxx
vos/source/timer.cxx
2011-03-11 14:24:23 +01:00
|
|
|
|
aResStack[ nLevel - 2 ]->bChild = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// create new instance for this res. and fill mandatory fields
|
|
|
|
|
|
2006-03-29 12:26:24 +00:00
|
|
|
|
pResData = new ResData( sActPForm, FullId() , sFilename );
|
2011-01-22 21:51:18 -08:00
|
|
|
|
aResStack.push_back( pResData );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sToken.EraseAllChars( '\n' );
|
2001-06-07 12:33:31 +00:00
|
|
|
|
sToken.EraseAllChars( '\r' );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sToken.EraseAllChars( '{' );
|
|
|
|
|
sToken.EraseAllChars( '\t' );
|
|
|
|
|
sToken.EraseAllChars( ' ' );
|
|
|
|
|
sToken.EraseAllChars( '\\' );
|
|
|
|
|
pResData->sResTyp = sToken.ToLowerAscii();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LEVELUP: {
|
|
|
|
|
// push
|
|
|
|
|
if ( nList )
|
|
|
|
|
nListLevel++;
|
|
|
|
|
if ( nList )
|
|
|
|
|
break;
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sLowerTyp;
|
|
|
|
|
if ( pResData )
|
|
|
|
|
sLowerTyp = "unknown";
|
|
|
|
|
nLevel++;
|
|
|
|
|
if ( nLevel > 1 ) {
|
Merge commit 'ooo/DEV300_m101' into intm101
The following builds for me:
basebmp, basegfx, comphelper, dtrans, i18npool, i18nutil, l10ntools, o3tl,
psprint_config, regexp, rsc, sax, sot, tools, ucbhelper, unotools, vcl
The rest still needs fixing ;-)
Conflicts:
canvas/prj/build.lst
canvas/source/cairo/cairo_textlayout.cxx
canvas/source/directx/dx_winstuff.hxx
canvas/source/tools/image.cxx
canvas/source/vcl/canvashelper.cxx
comphelper/inc/comphelper/documentconstants.hxx
comphelper/inc/comphelper/optionalvalue.hxx
comphelper/inc/comphelper/querydeep.hxx
comphelper/prj/build.lst
comphelper/qa/complex/makefile.mk
comphelper/qa/string/test_string_noadditional.cxx
comphelper/source/misc/componentmodule.cxx
comphelper/source/misc/mimeconfighelper.cxx
comphelper/source/misc/querydeep.cxx
comphelper/source/misc/uieventslogger.cxx
comphelper/source/property/TypeGeneration.cxx
comphelper/test/uno_iterators/uno_iterators.cxx
comphelper/util/makefile.mk
cppcanvas/source/mtfrenderer/implrenderer.cxx
dtrans/prj/build.lst
dtrans/source/generic/dtrans.cxx
dtrans/source/win32/dtobj/FmtFilter.cxx
i18npool/prj/build.lst
i18npool/source/localedata/data/localedata_others.map
i18npool/source/localedata/data/makefile.mk
i18npool/source/localedata/localedata.cxx
i18npool/source/localedata/saxparser.cxx
i18npool/source/registerservices/registerservices.cxx
i18npool/source/search/textsearch.cxx
l10ntools/inc/cfgmerge.hxx
l10ntools/inc/export.hxx
l10ntools/inc/gsicheck.hxx
l10ntools/inc/l10ntools/vosapp.hxx
l10ntools/inc/tagtest.hxx
l10ntools/inc/xmlparse.hxx
l10ntools/layout/layoutparse.cxx
l10ntools/layout/tralay.cxx
l10ntools/source/cfgmerge.cxx
l10ntools/source/export.cxx
l10ntools/source/export2.cxx
l10ntools/source/gsicheck.cxx
l10ntools/source/help/HelpLinker.cxx
l10ntools/source/lngex.cxx
l10ntools/source/lngmerge.cxx
l10ntools/source/merge.cxx
l10ntools/source/tagtest.cxx
l10ntools/source/xmlparse.cxx
padmin/source/fontentry.cxx
padmin/source/padialog.cxx
padmin/source/padialog.src
padmin/source/pamain.cxx
rsc/inc/rscarray.hxx
rsc/inc/rscclass.hxx
rsc/inc/rscclobj.hxx
rsc/inc/rsccont.hxx
rsc/inc/rscdb.hxx
rsc/inc/rscdef.hxx
rsc/inc/rscmgr.hxx
rsc/inc/rscrange.hxx
rsc/inc/rsctop.hxx
rsc/inc/vclrsc.hxx
rsc/source/parser/rscdb.cxx
rsc/source/parser/rscicpx.cxx
rsc/source/parser/rscinit.cxx
rsc/source/prj/start.cxx
rsc/source/res/rscarray.cxx
rsc/source/res/rscclass.cxx
rsc/source/res/rscclobj.cxx
rsc/source/res/rsccont.cxx
rsc/source/res/rscmgr.cxx
rsc/source/res/rscrange.cxx
rsc/source/res/rsctop.cxx
rsc/source/rsc/rsc.cxx
rsc/source/tools/rscdef.cxx
rsc/source/tools/rsctools.cxx
sax/source/expatwrap/sax_expat.cxx
sax/source/fastparser/facreg.cxx
sax/source/tools/fastserializer.cxx
sot/inc/sot/filelist.hxx
sot/inc/sot/object.hxx
sot/source/base/factory.cxx
sot/source/base/filelist.cxx
sot/source/sdstor/stg.cxx
sot/source/sdstor/stgcache.cxx
sot/source/sdstor/stgole.cxx
sot/source/sdstor/stgstrms.cxx
sot/source/sdstor/storage.cxx
sot/source/sdstor/ucbstorage.cxx
svl/inc/svl/cenumitm.hxx
svl/inc/svl/cintitem.hxx
svl/inc/svl/cntwall.hxx
svl/inc/svl/ctypeitm.hxx
svl/inc/svl/custritm.hxx
svl/inc/svl/dateitem.hxx
svl/inc/svl/filerec.hxx
svl/inc/svl/globalnameitem.hxx
svl/inc/svl/ilstitem.hxx
svl/inc/svl/imageitm.hxx
svl/inc/svl/intitem.hxx
svl/inc/svl/itempool.hxx
svl/inc/svl/itemset.hxx
svl/inc/svl/lckbitem.hxx
svl/inc/svl/poolitem.hxx
svl/inc/svl/ptitem.hxx
svl/inc/svl/rectitem.hxx
svl/inc/svl/sfontitm.hxx
svl/inc/svl/slstitm.hxx
svl/inc/svl/srchitem.hxx
svl/inc/svl/svarray.hxx
svl/inc/svl/svdde.hxx
svl/inc/svl/svstdarr.hxx
svl/inc/svl/szitem.hxx
svl/inc/svl/visitem.hxx
svl/inc/svl/zforlist.hxx
svl/inc/svl/zformat.hxx
svl/prj/build.lst
svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
svl/qa/complex/ConfigItems/helper/makefile.mk
svl/qa/makefile.mk
svl/source/filepicker/pickerhelper.cxx
svl/source/filerec/filerec.cxx
svl/source/items/cenumitm.cxx
svl/source/items/cintitem.cxx
svl/source/items/cntwall.cxx
svl/source/items/ctypeitm.cxx
svl/source/items/custritm.cxx
svl/source/items/dateitem.cxx
svl/source/items/globalnameitem.cxx
svl/source/items/ilstitem.cxx
svl/source/items/imageitm.cxx
svl/source/items/intitem.cxx
svl/source/items/itempool.cxx
svl/source/items/itemprop.cxx
svl/source/items/itemset.cxx
svl/source/items/lckbitem.cxx
svl/source/items/poolio.cxx
svl/source/items/poolitem.cxx
svl/source/items/ptitem.cxx
svl/source/items/rectitem.cxx
svl/source/items/slstitm.cxx
svl/source/items/srchitem.cxx
svl/source/items/style.cxx
svl/source/items/szitem.cxx
svl/source/items/visitem.cxx
svl/source/items/whiter.cxx
svl/source/memtools/svarray.cxx
svl/source/misc/PasswordHelper.cxx
svl/source/misc/adrparse.cxx
svl/source/misc/lngmisc.cxx
svl/source/notify/brdcst.cxx
svl/source/notify/listener.cxx
svl/source/notify/listenerbase.cxx
svl/source/numbers/makefile.mk
svl/source/numbers/nbdll.cxx
svl/source/numbers/zforfind.cxx
svl/source/numbers/zforlist.cxx
svl/source/numbers/zformat.cxx
svl/source/numbers/zforscan.cxx
svl/source/passwordcontainer/passwordcontainer.cxx
svl/source/svdde/ddecli.cxx
svl/source/svdde/ddeimp.hxx
svl/source/svdde/ddemlos2.h
svl/source/svdde/ddesvr.cxx
svl/source/undo/undo.cxx
svl/source/uno/registerservices.cxx
svl/util/makefile.mk
svtools/bmpmaker/bmpsum.cxx
svtools/bmpmaker/g2g.cxx
svtools/bmpmaker/makefile.mk
svtools/inc/borderhelper.hxx
svtools/inc/svtools/accessiblefactory.hxx
svtools/inc/svtools/apearcfg.hxx
svtools/inc/svtools/brwbox.hxx
svtools/inc/svtools/ctrlbox.hxx
svtools/inc/svtools/ctrltool.hxx
svtools/inc/svtools/editbrowsebox.hxx
svtools/inc/svtools/ehdl.hxx
svtools/inc/svtools/embedhlp.hxx
svtools/inc/svtools/filter.hxx
svtools/inc/svtools/ivctrl.hxx
svtools/inc/svtools/parhtml.hxx
svtools/inc/svtools/printdlg.hxx
svtools/inc/svtools/rtftoken.h
svtools/inc/svtools/ruler.hxx
svtools/inc/svtools/svicnvw.hxx
svtools/inc/svtools/svlbitm.hxx
svtools/inc/svtools/svlbox.hxx
svtools/inc/svtools/svtreebx.hxx
svtools/inc/svtools/tabbar.hxx
svtools/inc/svtools/table/abstracttablecontrol.hxx
svtools/inc/svtools/taskbar.hxx
svtools/inc/svtools/textview.hxx
svtools/inc/svtools/valueset.hxx
svtools/source/brwbox/brwbox1.cxx
svtools/source/brwbox/brwbox2.cxx
svtools/source/brwbox/datwin.cxx
svtools/source/brwbox/datwin.hxx
svtools/source/brwbox/makefile.mk
svtools/source/config/apearcfg.cxx
svtools/source/config/htmlcfg.cxx
svtools/source/config/menuoptions.cxx
svtools/source/config/miscopt.cxx
svtools/source/contnr/cont_pch.cxx
svtools/source/contnr/ctrdll.cxx
svtools/source/contnr/fileview.cxx
svtools/source/contnr/imivctl1.cxx
svtools/source/contnr/ivctrl.cxx
svtools/source/contnr/makefile.mk
svtools/source/contnr/svcontnr.src
svtools/source/contnr/svicnvw.cxx
svtools/source/contnr/svimpbox.cxx
svtools/source/contnr/svimpicn.cxx
svtools/source/contnr/svlbitm.cxx
svtools/source/contnr/svtreebx.cxx
svtools/source/contnr/templwin.cxx
svtools/source/contnr/templwin.hxx
svtools/source/control/asynclink.cxx
svtools/source/control/ctrlbox.cxx
svtools/source/control/ctrldll.cxx
svtools/source/control/ctrltool.cxx
svtools/source/control/filectrl.cxx
svtools/source/control/filectrl.src
svtools/source/control/headbar.cxx
svtools/source/control/inettbc.cxx
svtools/source/control/makefile.mk
svtools/source/control/prgsbar.cxx
svtools/source/control/roadmap.cxx
svtools/source/control/ruler.cxx
svtools/source/control/scriptedtext.cxx
svtools/source/control/stdmenu.cxx
svtools/source/control/tabbar.cxx
svtools/source/control/taskbar.cxx
svtools/source/control/taskbox.cxx
svtools/source/control/taskmisc.cxx
svtools/source/control/taskstat.cxx
svtools/source/control/valueacc.cxx
svtools/source/control/valueset.cxx
svtools/source/dialogs/addresstemplate.cxx
svtools/source/dialogs/addresstemplate.src
svtools/source/dialogs/colrdlg.src
svtools/source/dialogs/filedlg2.cxx
svtools/source/dialogs/filedlg2.hxx
svtools/source/dialogs/makefile.mk
svtools/source/dialogs/printdlg.cxx
svtools/source/dialogs/printdlg.src
svtools/source/dialogs/propctrl.cxx
svtools/source/dialogs/propctrl.hxx
svtools/source/dialogs/property.cxx
svtools/source/edit/makefile.mk
svtools/source/edit/sychconv.cxx
svtools/source/edit/syntaxhighlight.cxx
svtools/source/edit/textdoc.cxx
svtools/source/edit/texteng.cxx
svtools/source/edit/textundo.cxx
svtools/source/edit/textview.cxx
svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
svtools/source/filter.vcl/filter/dlgejpg.cxx
svtools/source/filter.vcl/filter/dlgejpg.hxx
svtools/source/filter.vcl/filter/dlgejpg.src
svtools/source/filter.vcl/filter/dlgepng.cxx
svtools/source/filter.vcl/filter/dlgepng.hxx
svtools/source/filter.vcl/filter/dlgepng.src
svtools/source/filter.vcl/filter/dlgexpor.cxx
svtools/source/filter.vcl/filter/dlgexpor.hxx
svtools/source/filter.vcl/filter/dlgexpor.src
svtools/source/filter.vcl/filter/filter2.cxx
svtools/source/filter.vcl/filter/makefile.mk
svtools/source/filter.vcl/filter/sgfbram.cxx
svtools/source/filter.vcl/filter/sgvmain.cxx
svtools/source/filter.vcl/filter/sgvspln.cxx
svtools/source/filter.vcl/filter/strings.src
svtools/source/filter.vcl/jpeg/makefile.mk
svtools/source/filter.vcl/wmf/emfwr.cxx
svtools/source/filter.vcl/wmf/emfwr.hxx
svtools/source/filter.vcl/wmf/enhwmf.cxx
svtools/source/filter.vcl/wmf/winmtf.hxx
svtools/source/filter.vcl/wmf/wmfwr.cxx
svtools/source/filter.vcl/wmf/wmfwr.hxx
svtools/source/graphic/grfcache.cxx
svtools/source/graphic/grfcache.hxx
svtools/source/graphic/grfmgr.cxx
svtools/source/graphic/makefile.mk
svtools/source/inc/accessibletableimp.hxx
svtools/source/inc/svimpbox.hxx
svtools/source/java/patchjavaerror.src
svtools/source/misc/ehdl.cxx
svtools/source/misc/errtxt.src
svtools/source/misc/helpagentwindow.cxx
svtools/source/misc/imagemgr.cxx
svtools/source/misc/imagemgr.src
svtools/source/misc/imageresourceaccess.cxx
svtools/source/misc/imap.cxx
svtools/source/misc/langtab.src
svtools/source/misc/makefile.mk
svtools/source/misc/svtdata.cxx
svtools/source/misc/templatefoldercache.cxx
svtools/source/misc/transfer2.cxx
svtools/source/misc/undo.src
svtools/source/plugapp/commtest.cxx
svtools/source/plugapp/commtest.src
svtools/source/plugapp/makefile.mk
svtools/source/plugapp/testtool.src
svtools/source/productregistration/productregistration.cxx
svtools/source/svhtml/htmlkywd.cxx
svtools/source/svhtml/parhtml.cxx
svtools/source/svrtf/rtfkey2.cxx
svtools/source/svrtf/rtfkeywd.cxx
svtools/source/table/defaultinputhandler.cxx
svtools/source/table/makefile.mk
svtools/source/table/tablecontrol.cxx
svtools/source/table/tablecontrol_impl.cxx
svtools/source/table/tablecontrol_impl.hxx
svtools/source/table/tabledatawindow.cxx
svtools/source/table/tablegeometry.cxx
svtools/source/table/tablegeometry.hxx
svtools/source/toolpanel/makefile.mk
svtools/source/toolpanel/toolpaneldrawer.cxx
svtools/source/uno/addrtempuno.cxx
svtools/source/uno/miscservices.cxx
svtools/source/uno/svtxgridcontrol.cxx
svtools/source/uno/svtxgridcontrol.hxx
svtools/source/uno/toolboxcontroller.cxx
svtools/source/uno/treecontrolpeer.cxx
svtools/source/uno/unocontroltablemodel.cxx
svtools/source/uno/unocontroltablemodel.hxx
svtools/source/uno/unoimap.cxx
svtools/source/urlobj/inetimg.cxx
svtools/util/makefile.mk
svtools/workben/browser.cxx
svtools/workben/cui/makefile.mk
svtools/workben/makefile.mk
svtools/workben/stest.cxx
svtools/workben/toolpanel/makefile.mk
svtools/workben/urange.cxx
toolkit/inc/toolkit/awt/vclxdevice.hxx
toolkit/inc/toolkit/awt/vclxgraphics.hxx
toolkit/inc/toolkit/awt/vclxwindows.hxx
toolkit/inc/toolkit/controls/dialogcontrol.hxx
toolkit/inc/toolkit/helper/property.hxx
toolkit/inc/toolkit/helper/servicenames.hxx
toolkit/inc/toolkit/helper/throbberimpl.hxx
toolkit/qa/complex/toolkit/accessibility/_XAccessibleComponent.java
toolkit/source/awt/asynccallback.cxx
toolkit/source/awt/vclxgraphics.cxx
toolkit/source/awt/vclxtoolkit.cxx
toolkit/source/awt/vclxwindow.cxx
toolkit/source/awt/xsimpleanimation.cxx
toolkit/source/awt/xthrobber.cxx
toolkit/source/controls/dialogcontrol.cxx
toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
toolkit/source/controls/grid/defaultgriddatamodel.cxx
toolkit/source/controls/grid/gridcontrol.cxx
toolkit/source/controls/grid/initguard.hxx
toolkit/source/controls/unocontrol.cxx
toolkit/source/controls/unocontrolcontainer.cxx
toolkit/source/controls/unocontrols.cxx
toolkit/source/helper/listenermultiplexer.cxx
toolkit/source/helper/property.cxx
toolkit/source/helper/registerservices.cxx
toolkit/source/helper/servicenames.cxx
toolkit/source/helper/throbberimpl.cxx
toolkit/source/helper/tkresmgr.cxx
tools/StaticLibrary_ooopathutils.mk
tools/bootstrp/addexes/makefile.mk
tools/bootstrp/addexes2/makefile.mk
tools/bootstrp/addexes2/mkfilt.cxx
tools/bootstrp/command.cxx
tools/bootstrp/cppdep.cxx
tools/bootstrp/iserver.cxx
tools/bootstrp/makefile.mk
tools/bootstrp/mkcreate.cxx
tools/bootstrp/prj.cxx
tools/bootstrp/rscdep.cxx
tools/bootstrp/sstring.cxx
tools/inc/bootstrp/command.hxx
tools/inc/bootstrp/mkcreate.hxx
tools/inc/bootstrp/prj.hxx
tools/inc/bootstrp/sstring.hxx
tools/inc/tools/agapi.hxx
tools/inc/tools/agitem.hxx
tools/inc/tools/chapi.hxx
tools/inc/tools/download.hxx
tools/inc/tools/eacopier.hxx
tools/inc/tools/fract.hxx
tools/inc/tools/fsys.hxx
tools/inc/tools/geninfo.hxx
tools/inc/tools/globname.hxx
tools/inc/tools/inetmime.hxx
tools/inc/tools/multisel.hxx
tools/inc/tools/poly.hxx
tools/inc/tools/postsys.h
tools/inc/tools/postwin.h
tools/inc/tools/presys.h
tools/inc/tools/prewin.h
tools/inc/tools/pstm.hxx
tools/inc/tools/ref.hxx
tools/inc/tools/simplerm.hxx
tools/inc/tools/solar.h
tools/inc/tools/table.hxx
tools/inc/tools/urlkeys.hxx
tools/inc/tools/urlobj.hxx
tools/prj/build.lst
tools/prj/d.lst
tools/qa/makefile.mk
tools/source/communi/geninfo.cxx
tools/source/debug/debug.cxx
tools/source/fsys/dirent.cxx
tools/source/fsys/tdir.cxx
tools/source/fsys/unx.cxx
tools/source/fsys/urlobj.cxx
tools/source/generic/color.cxx
tools/source/generic/config.cxx
tools/source/generic/fract.cxx
tools/source/inet/inetmime.cxx
tools/source/memtools/multisel.cxx
tools/source/memtools/table.cxx
tools/source/rc/resmgr.cxx
tools/source/ref/globname.cxx
tools/source/ref/pstm.cxx
tools/source/solar/solar.c
tools/source/stream/strmos2.cxx
tools/source/stream/strmunx.cxx
tools/source/stream/strmwnt.cxx
tools/source/string/makefile.mk
tools/source/testtoolloader/testtoolloader.cxx
tools/test/makefile.mk
tools/util/makefile.mk
tools/win/inc/dll.hxx
tools/win/inc/parser.hxx
tools/win/inc/shellex.h
tools/win/inc/shutil.h
tools/win/inc/toolsdll.hxx
tools/win/inc/winshell.hxx
tools/workben/makefile.mk
ucbhelper/source/client/proxydecider.cxx
ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
unotools/inc/unotools/unotunnelhelper.hxx
unotools/source/config/fltrcfg.cxx
unotools/source/config/lingucfg.cxx
unotools/source/config/misccfg.cxx
unotools/source/config/pathoptions.cxx
unotools/source/config/searchopt.cxx
unotools/source/i18n/localedatawrapper.cxx
unotools/source/ucbhelper/localfilehelper.cxx
unotools/source/ucbhelper/ucbhelper.cxx
unotools/source/ucbhelper/xtempfile.cxx
vcl/aqua/inc/salbmp.h
vcl/aqua/inc/salgdi.h
vcl/aqua/inc/salinst.h
vcl/aqua/source/app/salinst.cxx
vcl/aqua/source/gdi/aquaprintaccessoryview.mm
vcl/aqua/source/gdi/salgdi.cxx
vcl/aqua/source/gdi/salprn.cxx
vcl/aqua/source/window/salframeview.mm
vcl/aqua/source/window/salobj.cxx
vcl/inc/vcl/bitmap.hxx
vcl/inc/vcl/brdwin.hxx
vcl/inc/vcl/button.hxx
vcl/inc/vcl/cmdevt.hxx
vcl/inc/vcl/cvtgrf.hxx
vcl/inc/vcl/dialog.hxx
vcl/inc/vcl/dockwin.hxx
vcl/inc/vcl/event.hxx
vcl/inc/vcl/fixed.hxx
vcl/inc/vcl/fldunit.hxx
vcl/inc/vcl/floatwin.hxx
vcl/inc/vcl/gdimtf.hxx
vcl/inc/vcl/glyphcache.hxx
vcl/inc/vcl/graphite_adaptors.hxx
vcl/inc/vcl/graphite_features.hxx
vcl/inc/vcl/graphite_layout.hxx
vcl/inc/vcl/ilstbox.hxx
vcl/inc/vcl/image.h
vcl/inc/vcl/imgctrl.hxx
vcl/inc/vcl/impbmpconv.hxx
vcl/inc/vcl/impprn.hxx
vcl/inc/vcl/jobset.h
vcl/inc/vcl/keycodes.hxx
vcl/inc/vcl/lstbox.hxx
vcl/inc/vcl/mapunit.hxx
vcl/inc/vcl/menu.hxx
vcl/inc/vcl/msgbox.hxx
vcl/inc/vcl/outdev.hxx
vcl/inc/vcl/prndlg.hxx
vcl/inc/vcl/salatype.hxx
vcl/inc/vcl/salbmp.hxx
vcl/inc/vcl/salgdi.hxx
vcl/inc/vcl/salinst.hxx
vcl/inc/vcl/seleng.hxx
vcl/inc/vcl/settings.hxx
vcl/inc/vcl/smartid.hxx
vcl/inc/vcl/status.hxx
vcl/inc/vcl/strhelper.hxx
vcl/inc/vcl/svapp.hxx
vcl/inc/vcl/svdata.hxx
vcl/inc/vcl/syschild.hxx
vcl/inc/vcl/sysdata.hxx
vcl/inc/vcl/taskpanelist.hxx
vcl/inc/vcl/toolbox.hxx
vcl/inc/vcl/vclevent.hxx
vcl/inc/vcl/windata.hxx
vcl/inc/vcl/window.hxx
vcl/inc/vcl/wintypes.hxx
vcl/os2/source/app/salinst.cxx
vcl/os2/source/gdi/salgdi.cxx
vcl/os2/source/window/salmenu.cxx
vcl/os2/source/window/salobj.cxx
vcl/prj/build.lst
vcl/source/app/dbggui.cxx
vcl/source/app/help.cxx
vcl/source/app/idlemgr.cxx
vcl/source/app/settings.cxx
vcl/source/app/svapp.cxx
vcl/source/app/svdata.cxx
vcl/source/app/svmain.cxx
vcl/source/app/svmainhook.cxx
vcl/source/app/unohelp.cxx
vcl/source/app/vclevent.cxx
vcl/source/control/button.cxx
vcl/source/control/combobox.cxx
vcl/source/control/edit.cxx
vcl/source/control/field.cxx
vcl/source/control/fixed.cxx
vcl/source/control/ilstbox.cxx
vcl/source/control/imgctrl.cxx
vcl/source/control/makefile.mk
vcl/source/control/tabctrl.cxx
vcl/source/gdi/bitmap.cxx
vcl/source/gdi/bitmap2.cxx
vcl/source/gdi/bitmap4.cxx
vcl/source/gdi/bmpconv.cxx
vcl/source/gdi/cvtsvm.cxx
vcl/source/gdi/font.cxx
vcl/source/gdi/gdimtf.cxx
vcl/source/gdi/image.cxx
vcl/source/gdi/impimage.cxx
vcl/source/gdi/jobset.cxx
vcl/source/gdi/makefile.mk
vcl/source/gdi/metaact.cxx
vcl/source/gdi/outdev.cxx
vcl/source/gdi/outdev3.cxx
vcl/source/gdi/outdev4.cxx
vcl/source/gdi/outdevnative.cxx
vcl/source/gdi/pdfwriter.cxx
vcl/source/gdi/pdfwriter_impl.cxx
vcl/source/gdi/print3.cxx
vcl/source/gdi/salmisc.cxx
vcl/source/glyphs/gcach_ftyp.cxx
vcl/source/glyphs/gcach_ftyp.hxx
vcl/source/glyphs/glyphcache.cxx
vcl/source/glyphs/graphite_cache.cxx
vcl/source/glyphs/graphite_layout.cxx
vcl/source/glyphs/graphite_textsrc.hxx
vcl/source/helper/canvasbitmap.cxx
vcl/source/helper/smartid.cxx
vcl/source/helper/xconnection.cxx
vcl/source/src/btntext.src
vcl/source/src/images.src
vcl/source/src/print.src
vcl/source/window/accel.cxx
vcl/source/window/accmgr.cxx
vcl/source/window/brdwin.cxx
vcl/source/window/btndlg.cxx
vcl/source/window/dlgctrl.cxx
vcl/source/window/javachild.cxx
vcl/source/window/menu.cxx
vcl/source/window/msgbox.cxx
vcl/source/window/printdlg.cxx
vcl/source/window/status.cxx
vcl/source/window/syschild.cxx
vcl/source/window/toolbox.cxx
vcl/source/window/toolbox2.cxx
vcl/source/window/window.cxx
vcl/source/window/window2.cxx
vcl/source/window/wrkwin.cxx
vcl/unx/gtk/app/gtkdata.cxx
vcl/unx/gtk/app/gtkinst.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
vcl/unx/gtk/window/gtkframe.cxx
vcl/unx/gtk/window/gtkobject.cxx
vcl/unx/headless/svpbmp.hxx
vcl/unx/headless/svpgdi.cxx
vcl/unx/headless/svpgdi.hxx
vcl/unx/headless/svpinst.cxx
vcl/unx/headless/svpinst.hxx
vcl/unx/headless/svpprn.cxx
vcl/unx/headless/svpprn.hxx
vcl/unx/headless/svppspgraphics.cxx
vcl/unx/headless/svppspgraphics.hxx
vcl/unx/headless/svptext.cxx
vcl/unx/inc/dtint.hxx
vcl/unx/inc/plugins/gtk/gtkdata.hxx
vcl/unx/inc/pspgraphics.h
vcl/unx/inc/salbmp.h
vcl/unx/inc/saldata.hxx
vcl/unx/inc/saldisp.hxx
vcl/unx/inc/salgdi.h
vcl/unx/inc/salinst.h
vcl/unx/inc/xfont.hxx
vcl/unx/kde/kdedata.cxx
vcl/unx/kde4/KDESalGraphics.cxx
vcl/unx/source/app/keysymnames.cxx
vcl/unx/source/app/saldata.cxx
vcl/unx/source/app/saldisp.cxx
vcl/unx/source/app/salinst.cxx
vcl/unx/source/app/wmadaptor.cxx
vcl/unx/source/dtrans/X11_selection.cxx
vcl/unx/source/dtrans/X11_service.cxx
vcl/unx/source/gdi/makefile.mk
vcl/unx/source/gdi/pspgraphics.cxx
vcl/unx/source/gdi/salgdi.cxx
vcl/unx/source/gdi/salgdi3.cxx
vcl/unx/source/gdi/salprnpsp.cxx
vcl/unx/source/gdi/xfont.cxx
vcl/unx/source/gdi/xlfd_attr.cxx
vcl/unx/source/gdi/xlfd_attr.hxx
vcl/unx/source/gdi/xlfd_extd.cxx
vcl/unx/source/gdi/xlfd_extd.hxx
vcl/unx/source/gdi/xlfd_smpl.cxx
vcl/unx/source/gdi/xlfd_smpl.hxx
vcl/unx/source/printer/ppdparser.cxx
vcl/unx/source/printer/printerinfomanager.cxx
vcl/unx/source/window/salframe.cxx
vcl/unx/source/window/salmenu.cxx
vcl/unx/source/window/salobj.cxx
vcl/util/makefile2.pmk
vcl/win/inc/salbmp.h
vcl/win/inc/saldata.hxx
vcl/win/inc/salgdi.h
vcl/win/inc/salinst.h
vcl/win/source/app/saldata.cxx
vcl/win/source/app/salinst.cxx
vcl/win/source/gdi/salgdi.cxx
vcl/win/source/gdi/salgdi3.cxx
vcl/win/source/gdi/salprn.cxx
vcl/win/source/gdi/winlayout.cxx
vcl/win/source/window/salframe.cxx
vcl/win/source/window/salobj.cxx
vcl/workben/outdevgrind.cxx
vos/inc/vos/execabl.hxx
vos/inc/vos/macros.hxx
vos/inc/vos/pipe.hxx
vos/inc/vos/process.hxx
vos/inc/vos/refernce.hxx
vos/inc/vos/signal.hxx
vos/inc/vos/socket.hxx
vos/inc/vos/stream.hxx
vos/inc/vos/thread.hxx
vos/source/pipe.cxx
vos/source/process.cxx
vos/source/signal.cxx
vos/source/thread.cxx
vos/source/timer.cxx
2011-03-11 14:24:23 +01:00
|
|
|
|
aResStack[ nLevel - 2 ]->bChild = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2006-03-29 12:26:24 +00:00
|
|
|
|
ResData *pNewData = new ResData( sActPForm, FullId() , sFilename );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
pNewData->sResTyp = sLowerTyp;
|
2011-01-22 21:51:18 -08:00
|
|
|
|
aResStack.push_back( pNewData );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LEVELDOWN: {
|
|
|
|
|
// pop
|
|
|
|
|
if ( !nList ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( nLevel ) {
|
|
|
|
|
if ( bDefine && (nLevel == 1 )) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDefine = sal_False;
|
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
WriteData( pResData );
|
2011-01-22 21:51:18 -08:00
|
|
|
|
ResStack::iterator it = aResStack.begin();
|
|
|
|
|
::std::advance( it, nLevel-1 );
|
|
|
|
|
delete *it;
|
|
|
|
|
aResStack.erase( it );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nLevel--;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
2001-08-29 10:50:41 +00:00
|
|
|
|
if ( bDefine )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bNextMustBeDefineEOL = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( !nListLevel ) {
|
|
|
|
|
if ( bMergeMode )
|
|
|
|
|
MergeRest( pResData, MERGE_MODE_LIST );
|
|
|
|
|
nList = LIST_NON;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
nListLevel--;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case ASSIGNMENT: {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// interpret different types of assignement
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sKey = getToken(sToken, 0, '=');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sKey.EraseAllChars( ' ' );
|
|
|
|
|
sKey.EraseAllChars( '\t' );
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sValue = getToken(sToken, 1, '=');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
CleanValue( sValue );
|
|
|
|
|
if ( sKey.ToUpperAscii() == "IDENTIFIER" ) {
|
|
|
|
|
ByteString sId( sValue.EraseAllChars( '\t' ));
|
|
|
|
|
pResData->SetId( sId.EraseAllChars( ' ' ), ID_LEVEL_IDENTIFIER );
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "HELPID" ) {
|
|
|
|
|
pResData->sHelpId = sValue;
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "STRINGLIST" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_STRING;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "FILTERLIST" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_FILTER;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "UIENTRIES" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_UIENTRIES;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
if (( sToken.Search( "{" ) != STRING_NOTFOUND ) &&
|
|
|
|
|
( sToken.GetTokenCount( '{' ) > sToken.GetTokenCount( '}' )))
|
|
|
|
|
{
|
2006-06-19 16:21:29 +00:00
|
|
|
|
Parse( LEVELUP, "" );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case UIENTRIES:
|
|
|
|
|
case LISTASSIGNMENT: {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sTmpToken( sToken);
|
|
|
|
|
sTmpToken.EraseAllChars(' ');
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nPos = 0;
|
2007-04-19 14:18:22 +00:00
|
|
|
|
nPos = sTmpToken.ToLowerAscii().Search("[en-us]=");
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( nPos != STRING_NOTFOUND ) {
|
|
|
|
|
ByteString sKey = sTmpToken.Copy( 0 , nPos );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sKey.EraseAllChars( ' ' );
|
|
|
|
|
sKey.EraseAllChars( '\t' );
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sValue = getToken(sToken, 1, '=');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
CleanValue( sValue );
|
|
|
|
|
if ( sKey.ToUpperAscii() == "STRINGLIST" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_STRING;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "FILTERLIST" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_FILTER;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
// PairedList
|
|
|
|
|
else if ( sKey == "PAIREDLIST" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
nList = LIST_PAIRED;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else if ( sKey == "ITEMLIST" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_ITEM;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "UIENTRIES" ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bList = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nList = LIST_UIENTRIES;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = SOURCE_LANGUAGE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
// new res. is a String- or FilterList
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sKey = getToken(sToken, 0, '[');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sKey.EraseAllChars( ' ' );
|
|
|
|
|
sKey.EraseAllChars( '\t' );
|
|
|
|
|
if ( sKey.ToUpperAscii() == "STRINGLIST" )
|
|
|
|
|
nList = LIST_STRING;
|
|
|
|
|
else if ( sKey == "FILTERLIST" )
|
|
|
|
|
nList = LIST_FILTER;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
else if ( sKey == "PAIREDLIST" )
|
|
|
|
|
nList = LIST_PAIRED; // abcd
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else if ( sKey == "ITEMLIST" )
|
|
|
|
|
nList = LIST_ITEM;
|
|
|
|
|
else if ( sKey == "UIENTRIES" )
|
|
|
|
|
nList = LIST_UIENTRIES;
|
|
|
|
|
if ( nList ) {
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sLang = getToken(getToken(sToken, 1, '['), 0, ']');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
CleanValue( sLang );
|
2011-07-01 22:27:20 +01:00
|
|
|
|
m_sListLang = sLang;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex = 0;
|
|
|
|
|
nListLevel = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case TEXT:
|
|
|
|
|
case _LISTTEXT:
|
|
|
|
|
case LISTTEXT: {
|
|
|
|
|
// this is an entry for a String- or FilterList
|
|
|
|
|
if ( nList ) {
|
|
|
|
|
SetChildWithText();
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sEntry(getToken(sToken, 1, '\"'));
|
2003-04-29 15:48:05 +00:00
|
|
|
|
if ( sToken.GetTokenCount( '\"' ) > 3 )
|
|
|
|
|
sEntry += "\"";
|
|
|
|
|
if ( sEntry == "\\\"" )
|
|
|
|
|
sEntry = "\"";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
InsertListEntry( sEntry, sOrig );
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( bMergeMode && ( sEntry != "\"" ))
|
|
|
|
|
{
|
|
|
|
|
PrepareTextToMerge( sOrig, nList, m_sListLang, pResData );
|
2001-05-11 07:58:14 +00:00
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LONGTEXTLINE:
|
|
|
|
|
case TEXTLINE:
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( nLevel ) {
|
|
|
|
|
CutComment( sToken );
|
|
|
|
|
|
|
|
|
|
// this is a text line!!!
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sKey = getToken(getToken(sToken, 0, '='), 0, '[');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sKey.EraseAllChars( ' ' );
|
|
|
|
|
sKey.EraseAllChars( '\t' );
|
|
|
|
|
ByteString sText( GetText( sToken, nToken ));
|
|
|
|
|
if ( !bMergeMode )
|
|
|
|
|
sText = sText.Convert( aCharSet, RTL_TEXTENCODING_MS_1252 );
|
2005-01-13 18:16:42 +00:00
|
|
|
|
ByteString sLang;
|
2011-08-29 23:03:08 +01:00
|
|
|
|
if ( getToken(sToken, 0, '=').indexOf('[') != -1 )
|
|
|
|
|
{
|
|
|
|
|
sLang = getToken(getToken(getToken(sToken, 0, '='), 1, '['), 0, ']');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
CleanValue( sLang );
|
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
rtl::OString sLangIndex = sLang;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sOrigKey = sKey;
|
2005-01-13 18:16:42 +00:00
|
|
|
|
if ( sText.Len() && sLang.Len() ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if (( sKey.ToUpperAscii() == "TEXT" ) ||
|
|
|
|
|
( sKey == "MESSAGE" ) ||
|
|
|
|
|
( sKey == "CUSTOMUNITTEXT" ) ||
|
|
|
|
|
( sKey == "SLOTNAME" ) ||
|
|
|
|
|
( sKey == "UINAME" ))
|
|
|
|
|
{
|
|
|
|
|
SetChildWithText();
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( Export::isSourceLanguage( sLangIndex ) )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
pResData->SetId( sText, ID_LEVEL_TEXT );
|
2007-04-19 14:18:22 +00:00
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bText = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
pResData->sTextTyp = sOrigKey;
|
|
|
|
|
if ( bMergeMode ) {
|
2011-07-01 22:27:20 +01:00
|
|
|
|
PrepareTextToMerge( sOrig, STRING_TYP_TEXT, sLangIndex, pResData );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (pResData->sText[ sLangIndex ].getLength())
|
|
|
|
|
{
|
|
|
|
|
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
|
|
|
|
|
sError.append(sLangIndex);
|
|
|
|
|
sError.append(RTL_CONSTASCII_STRINGPARAM("defined twice"));
|
|
|
|
|
yyerror(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
pResData->sText[ sLangIndex ] = sText;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "HELPTEXT" ) {
|
|
|
|
|
SetChildWithText();
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bHelpText = sal_True;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( bBreakWhenHelpText )
|
|
|
|
|
{
|
|
|
|
|
rtl::OString sError(
|
|
|
|
|
RTL_CONSTASCII_STRINGPARAM("\"HelpText\" found in source\n"));
|
|
|
|
|
YYWarning(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
SetError();
|
|
|
|
|
}
|
|
|
|
|
if ( bMergeMode )
|
2011-07-01 22:27:20 +01:00
|
|
|
|
PrepareTextToMerge( sOrig, STRING_TYP_HELPTEXT, sLangIndex, pResData );
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (pResData->sHelpText[ sLangIndex ].getLength())
|
|
|
|
|
{
|
|
|
|
|
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
|
|
|
|
|
sError.append(sLangIndex);
|
|
|
|
|
sError.append(" defined twice");
|
|
|
|
|
YYWarning(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
pResData->sHelpText[ sLangIndex ] = sText;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "QUICKHELPTEXT" ) {
|
|
|
|
|
SetChildWithText();
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bQuickHelpText = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bMergeMode )
|
2011-07-01 22:27:20 +01:00
|
|
|
|
PrepareTextToMerge( sOrig, STRING_TYP_QUICKHELPTEXT, sLangIndex, pResData );
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (pResData->sQuickHelpText[ sLangIndex ].getLength())
|
|
|
|
|
{
|
|
|
|
|
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
|
|
|
|
|
sError.append(sLangIndex);
|
|
|
|
|
sError.append(RTL_CONSTASCII_STRINGPARAM(" defined twice"));
|
|
|
|
|
YYWarning(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
pResData->sQuickHelpText[ sLangIndex ] = sText;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "TITLE" ) {
|
|
|
|
|
SetChildWithText();
|
2010-07-29 10:56:19 +08:00
|
|
|
|
pResData->bTitle = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bMergeMode )
|
2011-07-01 22:27:20 +01:00
|
|
|
|
PrepareTextToMerge( sOrig, STRING_TYP_TITLE, sLangIndex, pResData );
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if ( pResData->sTitle[ sLangIndex ].getLength())
|
|
|
|
|
{
|
|
|
|
|
rtl::OStringBuffer sError(RTL_CONSTASCII_STRINGPARAM("Language "));
|
|
|
|
|
sError.append(sLangIndex);
|
|
|
|
|
sError.append(RTL_CONSTASCII_STRINGPARAM(" defined twice"));
|
|
|
|
|
YYWarning(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
pResData->sTitle[ sLangIndex ] = sText;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "ACCESSPATH" ) {
|
|
|
|
|
pResData->SetId( sText, ID_LEVEL_ACCESSPATH );
|
|
|
|
|
}
|
|
|
|
|
else if ( sKey == "FIELDNAME" ) {
|
|
|
|
|
pResData->SetId( sText, ID_LEVEL_FIELDNAME );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case NEWTEXTINRES: {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
2011-08-15 00:22:23 +01:00
|
|
|
|
case APPFONTMAPPING:
|
|
|
|
|
{
|
|
|
|
|
using comphelper::string::replace;
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// this is a AppfontMapping, so look if its a definition
|
|
|
|
|
// of field size
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sKey = getToken(sToken, 0, '=');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sKey.EraseAllChars( ' ' );
|
|
|
|
|
sKey.EraseAllChars( '\t' );
|
2011-08-29 23:03:08 +01:00
|
|
|
|
rtl::OString sMapping = getToken(sToken, 1, '=');
|
2011-08-15 00:22:23 +01:00
|
|
|
|
sMapping = getToken(sMapping, 1, '(');
|
|
|
|
|
sMapping = getToken(sMapping, 0, ')');
|
|
|
|
|
sMapping = replace(sMapping, rtl::OString(' '), rtl::OString());
|
|
|
|
|
sMapping = replace(sMapping, rtl::OString('\t'), rtl::OString());
|
|
|
|
|
if ( sKey.ToUpperAscii() == "SIZE" )
|
|
|
|
|
{
|
|
|
|
|
pResData->nWidth = ( sal_uInt16 ) getToken(sMapping, 0, ',').toInt32();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-08-15 00:22:23 +01:00
|
|
|
|
else if ( sKey == "POSSIZE" )
|
|
|
|
|
{
|
|
|
|
|
pResData->nWidth = ( sal_uInt16 ) getToken(sMapping, 2, ',').toInt32();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case RSCDEFINELEND:
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
break;
|
|
|
|
|
case CONDITION: {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2001-06-07 12:33:31 +00:00
|
|
|
|
while( sToken.SearchAndReplace( "\r", " " ) != STRING_NOTFOUND ) {};
|
2000-09-18 16:07:07 +00:00
|
|
|
|
while( sToken.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
while( sToken.SearchAndReplace( " ", " " ) != STRING_NOTFOUND ) {};
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sCondition = getToken(sToken, 0, ' ');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( sCondition == "#ifndef" ) {
|
|
|
|
|
sActPForm = "!defined ";
|
2011-08-29 23:03:08 +01:00
|
|
|
|
sActPForm += ByteString(getToken(sToken, 1, ' '));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else if ( sCondition == "#ifdef" ) {
|
|
|
|
|
sActPForm = "defined ";
|
2011-08-29 23:03:08 +01:00
|
|
|
|
sActPForm += ByteString(getToken(sToken, 1, ' '));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else if ( sCondition == "#if" ) {
|
|
|
|
|
sActPForm = sToken.Copy( 4 );
|
|
|
|
|
while ( sActPForm.SearchAndReplace( "||", "\\or" ) != STRING_NOTFOUND ) {};
|
|
|
|
|
}
|
|
|
|
|
else if ( sCondition == "#elif" ) {
|
|
|
|
|
sActPForm = sToken.Copy( 6 );
|
|
|
|
|
while ( sActPForm.SearchAndReplace( "||", "\\or" ) != STRING_NOTFOUND ) {};
|
|
|
|
|
}
|
|
|
|
|
else if ( sCondition == "#else" ) {
|
|
|
|
|
sActPForm = sCondition;
|
|
|
|
|
}
|
|
|
|
|
else if ( sCondition == "#endif" ) {
|
|
|
|
|
sActPForm = "";
|
|
|
|
|
}
|
|
|
|
|
else break;
|
|
|
|
|
if ( nLevel ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
WriteData( pResData, sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
pResData->sPForm = sActPForm;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case EMPTYLINE : {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bDefine ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bNextMustBeDefineEOL = sal_False;
|
|
|
|
|
bDefine = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
while ( nLevel )
|
2006-06-19 16:21:29 +00:00
|
|
|
|
Parse( LEVELDOWN, "" );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case PRAGMA : {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
while( sToken.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
while( sToken.SearchAndReplace( " ", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
sToken.EraseLeadingChars( ' ' );
|
|
|
|
|
sToken.EraseTrailingChars( ' ' );
|
|
|
|
|
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sCharset = getToken(sToken, 1, ' ');
|
|
|
|
|
ByteString sSet = getToken(sToken, 2, ' ');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if (( sCharset.ToUpperAscii() == "CHARSET_IBMPC" ) ||
|
|
|
|
|
( sCharset == "RTL_TEXTENCODING_IBM_850" ) ||
|
|
|
|
|
(( sCharset == "CHARSET" ) && ( sSet.ToUpperAscii() == "IBMPC" )))
|
|
|
|
|
{
|
|
|
|
|
aCharSet = RTL_TEXTENCODING_IBM_850;
|
|
|
|
|
}
|
|
|
|
|
else if (( sCharset == "CHARSET_ANSI" ) ||
|
|
|
|
|
( sCharset == "RTL_TEXTENCODING_MS_1252" ) ||
|
|
|
|
|
(( sCharset == "CHARSET" ) && ( sSet.ToUpperAscii() == "ANSI" )))
|
|
|
|
|
{
|
|
|
|
|
aCharSet = RTL_TEXTENCODING_MS_1252;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case TEXTREFID : {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bDontWriteOutput = sal_True;
|
2007-04-19 14:18:22 +00:00
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
if ( bWriteToMerged ) {
|
|
|
|
|
// the current token must be written to dest. without merging
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
if( bDefine && sOrig.Len() > 2 ){
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for( sal_uInt16 n = 0 ; n < sOrig.Len() ; n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( sOrig.GetChar( n ) == '\n' && sOrig.GetChar( n-1 ) != '\\'){
|
|
|
|
|
sOrig.Insert('\\' , n++ );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
WriteToMerged( sOrig , false);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( bExecuteDown ) {
|
2006-06-19 16:21:29 +00:00
|
|
|
|
Parse( LEVELDOWN, "" );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
void Export::CutComment( ByteString &rText )
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
if ( rText.Search( "//" ) != STRING_NOTFOUND ) {
|
|
|
|
|
ByteString sWork( rText );
|
|
|
|
|
sWork.SearchAndReplaceAll( "\\\"", "XX" );
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 i = 0;
|
|
|
|
|
sal_Bool bInner = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
while ( i < sWork.Len() - 1 ) {
|
|
|
|
|
if ( sWork.GetChar( i ) == '\"' )
|
|
|
|
|
bInner = !bInner;
|
|
|
|
|
else if
|
|
|
|
|
(( sWork.GetChar( i ) == '/' ) &&
|
|
|
|
|
( !bInner ) &&
|
|
|
|
|
( sWork.GetChar( i + 1 ) == '/' ))
|
|
|
|
|
{
|
|
|
|
|
rText.Erase( i );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool Export::WriteData( ResData *pResData, sal_Bool bCreateNew )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
if ( bMergeMode ) {
|
|
|
|
|
MergeRest( pResData );
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( bUnmerge )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2007-04-19 14:18:22 +00:00
|
|
|
|
// mandatory to export: en-US
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (( pResData->sText[ SOURCE_LANGUAGE ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
||
|
2011-07-01 22:27:20 +01:00
|
|
|
|
( pResData->sHelpText[ SOURCE_LANGUAGE ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
||
|
2011-07-01 22:27:20 +01:00
|
|
|
|
( pResData->sQuickHelpText[ SOURCE_LANGUAGE ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
||
|
2011-07-01 22:27:20 +01:00
|
|
|
|
( pResData->sTitle[ SOURCE_LANGUAGE ].getLength()))
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
{
|
2001-06-25 09:08:22 +00:00
|
|
|
|
FillInFallbacks( pResData );
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sGID = pResData->sGId;
|
|
|
|
|
ByteString sLID;
|
|
|
|
|
if ( !sGID.Len())
|
|
|
|
|
sGID = pResData->sId;
|
|
|
|
|
else
|
|
|
|
|
sLID = pResData->sId;
|
|
|
|
|
|
|
|
|
|
ByteString sXText;
|
|
|
|
|
ByteString sXHText;
|
|
|
|
|
ByteString sXQHText;
|
|
|
|
|
ByteString sXTitle;
|
|
|
|
|
|
2001-06-07 12:33:31 +00:00
|
|
|
|
ByteString sTimeStamp( Export::GetTimeStamp());
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sCur;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sCur = aLanguages[ n ];
|
|
|
|
|
if ( !sCur.EqualsIgnoreCaseAscii("x-comment") ){
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (pResData->sText[ sCur ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sXText = pResData->sText[ sCur ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else {
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sXText = pResData->sText[ SOURCE_LANGUAGE ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (pResData->sHelpText[ sCur ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sXHText = pResData->sHelpText[ sCur ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else {
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sXHText = pResData->sHelpText[ SOURCE_LANGUAGE ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (pResData->sQuickHelpText[ sCur ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sXQHText = pResData->sQuickHelpText[ sCur ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else {
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sXQHText = pResData->sQuickHelpText[ SOURCE_LANGUAGE ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (pResData->sTitle[ sCur ].getLength())
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sXTitle = pResData->sTitle[ sCur ];
|
2011-07-01 22:27:20 +01:00
|
|
|
|
else
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sXTitle = pResData->sTitle[ SOURCE_LANGUAGE ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
if ( !sXText.Len())
|
|
|
|
|
sXText = "-";
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( !sXHText.Len())
|
|
|
|
|
{
|
|
|
|
|
if (pResData->sHelpText[ SOURCE_LANGUAGE ].getLength())
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sXHText = pResData->sHelpText[ SOURCE_LANGUAGE ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sXText = pResData->sText[ sCur ];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
if ( bEnableExport ) {
|
|
|
|
|
ByteString sOutput( sProject ); sOutput += "\t";
|
|
|
|
|
if ( sRoot.Len())
|
|
|
|
|
sOutput += sActFileName;
|
|
|
|
|
sOutput += "\t0\t";
|
|
|
|
|
sOutput += pResData->sResTyp; sOutput += "\t";
|
|
|
|
|
sOutput += sGID; sOutput += "\t";
|
|
|
|
|
sOutput += sLID; sOutput += "\t";
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sOutput += pResData->sHelpId; sOutput += "\t";
|
|
|
|
|
sOutput += pResData->sPForm; sOutput += "\t";
|
2011-06-29 09:02:15 +01:00
|
|
|
|
sOutput += ByteString(rtl::OString::valueOf(static_cast<sal_Int64>(pResData->nWidth))); sOutput += "\t";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sOutput += sCur; sOutput += "\t";
|
|
|
|
|
|
2001-05-18 10:27:31 +00:00
|
|
|
|
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sOutput += sXText; sOutput += "\t";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += sXHText; sOutput += "\t";
|
2007-04-19 14:18:22 +00:00
|
|
|
|
sOutput += sXQHText; sOutput+= "\t";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += sXTitle; sOutput += "\t";
|
|
|
|
|
sOutput += sTimeStamp;
|
|
|
|
|
|
2005-09-30 12:18:49 +00:00
|
|
|
|
aOutput.WriteLine( sOutput );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( bCreateNew ) {
|
2007-04-19 14:18:22 +00:00
|
|
|
|
pResData->sText[ sCur ] = "";
|
|
|
|
|
pResData->sHelpText[ sCur ] = "";
|
|
|
|
|
pResData->sQuickHelpText[ sCur ]= "";
|
|
|
|
|
pResData->sTitle[ sCur ] = "";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
FillInFallbacks( pResData );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( pResData->pStringList ) {
|
|
|
|
|
ByteString sList( "stringlist" );
|
|
|
|
|
WriteExportList( pResData, pResData->pStringList, sList, bCreateNew );
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
pResData->pStringList = 0;
|
|
|
|
|
}
|
|
|
|
|
if ( pResData->pFilterList ) {
|
|
|
|
|
ByteString sList( "filterlist" );
|
|
|
|
|
WriteExportList( pResData, pResData->pFilterList, sList, bCreateNew );
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
pResData->pFilterList = 0;
|
|
|
|
|
}
|
|
|
|
|
if ( pResData->pItemList ) {
|
|
|
|
|
ByteString sList( "itemlist" );
|
|
|
|
|
WriteExportList( pResData, pResData->pItemList, sList, bCreateNew );
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
pResData->pItemList = 0;
|
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if ( pResData->pPairedList ) {
|
|
|
|
|
ByteString sList( "pairedlist" );
|
|
|
|
|
WriteExportList( pResData, pResData->pPairedList, sList, bCreateNew );
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
pResData->pItemList = 0;
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( pResData->pUIEntries ) {
|
|
|
|
|
ByteString sList( "uientries" );
|
|
|
|
|
WriteExportList( pResData, pResData->pUIEntries, sList, bCreateNew );
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
pResData->pUIEntries = 0;
|
|
|
|
|
}
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
ByteString Export::GetPairedListID( const ByteString& sText ){
|
|
|
|
|
// < "STRING" ; IDENTIFIER ; > ;
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sIdent = getToken(sText, 1, ';');
|
2006-06-19 16:21:29 +00:00
|
|
|
|
sIdent.ToUpperAscii();
|
2004-11-18 07:16:38 +00:00
|
|
|
|
while( sIdent.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
sIdent.EraseTrailingChars( ' ' );
|
|
|
|
|
sIdent.EraseLeadingChars( ' ' );
|
|
|
|
|
return sIdent;
|
|
|
|
|
}
|
|
|
|
|
ByteString Export::GetPairedListString( const ByteString& sText ){
|
|
|
|
|
// < "STRING" ; IDENTIFIER ; > ;
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sString = getToken(sText, 0, ';');
|
2004-11-18 07:16:38 +00:00
|
|
|
|
while( sString.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
|
|
|
|
|
sString.EraseTrailingChars( ' ' );
|
|
|
|
|
ByteString s1 = sString.Copy( sString.Search( '\"' )+1 );
|
|
|
|
|
sString = s1.Copy( 0 , s1.SearchBackward( '\"' ) );
|
|
|
|
|
sString.EraseTrailingChars( ' ' );
|
|
|
|
|
sString.EraseLeadingChars( ' ' );
|
|
|
|
|
return sString;
|
|
|
|
|
}
|
2005-02-14 10:43:50 +00:00
|
|
|
|
ByteString Export::StripList( const ByteString& sText ){
|
|
|
|
|
ByteString s1 = sText.Copy( sText.Search( '\"' ) + 1 );
|
|
|
|
|
return s1.Copy( 0 , s1.SearchBackward( '\"' ) );
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool Export::WriteExportList( ResData *pResData, ExportList *pExportList,
|
|
|
|
|
const ByteString &rTyp, sal_Bool bCreateNew )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
ByteString sGID = pResData->sGId;
|
|
|
|
|
if ( !sGID.Len())
|
|
|
|
|
sGID = pResData->sId;
|
|
|
|
|
else {
|
|
|
|
|
sGID += ".";
|
|
|
|
|
sGID += pResData->sId;
|
|
|
|
|
sGID.EraseTrailingChars( '.' );
|
|
|
|
|
}
|
|
|
|
|
|
2001-06-07 12:33:31 +00:00
|
|
|
|
ByteString sTimeStamp( Export::GetTimeStamp());
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sCur;
|
2011-01-22 21:21:53 -08:00
|
|
|
|
for ( size_t i = 0; pExportList != NULL && i < pExportList->size(); i++ ) {
|
|
|
|
|
ExportListEntry *pEntry = (*pExportList)[ i ];
|
|
|
|
|
// mandatory for export: german and eng. and/or enus
|
|
|
|
|
// ByteString a("Export::WriteExportList::pEntry");
|
|
|
|
|
// Export::DumpMap( a, *pEntry );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2011-06-29 09:02:15 +01:00
|
|
|
|
ByteString sLID(rtl::OString::valueOf(static_cast<sal_Int64>(i + 1)));
|
2011-07-01 22:27:20 +01:00
|
|
|
|
for (unsigned int n = 0; n < aLanguages.size(); ++n)
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sCur = aLanguages[ n ];
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ((*pEntry)[ SOURCE_LANGUAGE ].getLength())
|
|
|
|
|
{
|
|
|
|
|
if ( bEnableExport )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
{
|
2011-07-01 22:27:20 +01:00
|
|
|
|
ByteString sText((*pEntry)[ SOURCE_LANGUAGE ] );
|
|
|
|
|
|
|
|
|
|
// Strip PairList Line String
|
|
|
|
|
if( rTyp.EqualsIgnoreCaseAscii("pairedlist") )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
{
|
2011-07-01 22:27:20 +01:00
|
|
|
|
sLID = GetPairedListID( sText );
|
|
|
|
|
if ((*pEntry)[ sCur ].getLength())
|
|
|
|
|
sText = (*pEntry)[ sCur ];
|
|
|
|
|
sText = GetPairedListString( sText );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
sText = StripList( (*pEntry)[ sCur ] );
|
|
|
|
|
if( sText == "\\\"" )
|
|
|
|
|
sText = "\"";
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
ByteString sOutput( sProject ); sOutput += "\t";
|
|
|
|
|
if ( sRoot.Len())
|
|
|
|
|
sOutput += sActFileName;
|
|
|
|
|
sOutput += "\t0\t";
|
|
|
|
|
sOutput += rTyp; sOutput += "\t";
|
|
|
|
|
sOutput += sGID; sOutput += "\t";
|
|
|
|
|
sOutput += sLID; sOutput += "\t\t";
|
|
|
|
|
sOutput += pResData->sPForm; sOutput += "\t0\t";
|
|
|
|
|
sOutput += sCur; sOutput += "\t";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
sOutput += sText; sOutput += "\t\t\t\t";
|
|
|
|
|
sOutput += sTimeStamp;
|
2001-04-25 09:17:04 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
aOutput.WriteLine( sOutput );
|
2004-08-02 15:24:59 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
delete [] pEntry;
|
|
|
|
|
}
|
|
|
|
|
if ( bCreateNew )
|
|
|
|
|
delete pExportList;
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
ByteString Export::FullId()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
ByteString sFull;
|
|
|
|
|
if ( nLevel > 1 ) {
|
2011-01-22 21:51:18 -08:00
|
|
|
|
sFull = aResStack[ 0 ]->sId;
|
|
|
|
|
for ( size_t i = 1; i < nLevel - 1; i++ ) {
|
|
|
|
|
ByteString sToAdd = aResStack[ i ]->sId;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( sToAdd.Len()) {
|
|
|
|
|
sFull += ".";
|
|
|
|
|
sFull += sToAdd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( sFull.Len() > 255 )
|
|
|
|
|
{
|
|
|
|
|
rtl::OString sError(RTL_CONSTASCII_STRINGPARAM("GroupId > 255 chars"));
|
|
|
|
|
printf("GroupID = %s\n", sFull.GetBuffer());
|
|
|
|
|
yyerror(sError.getStr());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return sFull;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine )
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2011-01-22 21:51:18 -08:00
|
|
|
|
ResData *pResData = ( nLevel-1 < aResStack.size() ) ? aResStack[ nLevel-1 ] : NULL;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
ExportList *pList = NULL;
|
|
|
|
|
if ( nList == LIST_STRING ) {
|
|
|
|
|
pList = pResData->pStringList;
|
|
|
|
|
if ( !pList ) {
|
|
|
|
|
pResData->pStringList = new ExportList();
|
|
|
|
|
pList = pResData->pStringList;
|
|
|
|
|
nListIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( nList == LIST_FILTER ) {
|
|
|
|
|
pList = pResData->pFilterList;
|
|
|
|
|
if ( !pList ) {
|
|
|
|
|
pResData->pFilterList = new ExportList();
|
|
|
|
|
pList = pResData->pFilterList;
|
|
|
|
|
nListIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( nList == LIST_ITEM ) {
|
|
|
|
|
pList = pResData->pItemList;
|
|
|
|
|
if ( !pList ) {
|
|
|
|
|
pResData->pItemList = new ExportList();
|
|
|
|
|
pList = pResData->pItemList;
|
|
|
|
|
nListIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
else if ( nList == LIST_PAIRED ) {
|
|
|
|
|
pList = pResData->pPairedList;
|
|
|
|
|
if ( !pList ) {
|
|
|
|
|
pResData->pPairedList = new ExportList();
|
|
|
|
|
pList = pResData->pPairedList;
|
|
|
|
|
nListIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else if ( nList == LIST_UIENTRIES ) {
|
|
|
|
|
pList = pResData->pUIEntries;
|
|
|
|
|
if ( !pList ) {
|
|
|
|
|
pResData->pUIEntries = new ExportList();
|
|
|
|
|
pList = pResData->pUIEntries;
|
|
|
|
|
nListIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
return;
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( nListIndex + 1 > pList->size())
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ExportListEntry *pNew = new ExportListEntry();
|
2011-07-01 22:27:20 +01:00
|
|
|
|
(*pNew)[LIST_REFID] = rtl::OString::valueOf(static_cast<sal_Int32>(REFID_NONE));
|
|
|
|
|
pList->push_back(pNew);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-01-22 21:21:53 -08:00
|
|
|
|
ExportListEntry *pCurEntry = (*pList)[ nListIndex ];
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
// For paired list use the line to set proper lid
|
|
|
|
|
if( nList == LIST_PAIRED ){
|
2011-07-01 22:27:20 +01:00
|
|
|
|
(*pCurEntry)[ m_sListLang ] = rLine;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}else
|
2011-07-01 22:27:20 +01:00
|
|
|
|
(*pCurEntry)[ m_sListLang ] = rText;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
// Remember en-US fallback string, so each list has the same amount of elements
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( Export::isSourceLanguage( m_sListLang ) ) {
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if( nList == LIST_PAIRED ){
|
|
|
|
|
const ByteString sPlist("pairedlist");
|
2006-03-29 12:26:24 +00:00
|
|
|
|
ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sId , GetPairedListID( rLine ) , sFilename );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
pResData->addFallbackData( sKey , rText );
|
|
|
|
|
}
|
2007-07-18 06:13:03 +00:00
|
|
|
|
// new fallback
|
|
|
|
|
else{
|
|
|
|
|
const ByteString sPlist("list");
|
|
|
|
|
ByteString a( pResData->sGId );
|
|
|
|
|
a.Append( "." );
|
|
|
|
|
a.Append( pResData->sId );
|
|
|
|
|
sal_Int64 x = nListIndex+1;
|
2011-06-29 09:02:15 +01:00
|
|
|
|
ByteString b(rtl::OString::valueOf(x));
|
2007-07-18 06:13:03 +00:00
|
|
|
|
ByteString sKey = MergeDataFile::CreateKey( sPlist , a , b , sFilename );
|
|
|
|
|
pResData->addFallbackData( sKey , rText );
|
|
|
|
|
}
|
|
|
|
|
// new fallback
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( Export::isSourceLanguage( m_sListLang ) ) {
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if( nList == LIST_PAIRED ){
|
2007-04-19 14:18:22 +00:00
|
|
|
|
(*pCurEntry)[ SOURCE_LANGUAGE ] = rLine;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
2007-04-19 14:18:22 +00:00
|
|
|
|
(*pCurEntry)[ SOURCE_LANGUAGE ] = rLine;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2007-04-19 14:18:22 +00:00
|
|
|
|
pList->NewSourceLanguageListEntry();
|
2001-07-31 12:12:26 +00:00
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
//printf("Export::InsertListEntry ResData.id = %s ResData.ListData = %s\n",pResData->sId.GetBuffer() ,(*pCurEntry)[ m_sListLang ].GetBuffer());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
void Export::CleanValue( ByteString &rValue )
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
|
|
|
|
while ( rValue.Len()) {
|
|
|
|
|
if (( rValue.GetChar( 0 ) == ' ' ) || ( rValue.GetChar( 0 ) == '\t' ))
|
|
|
|
|
rValue = rValue.Copy( 1 );
|
|
|
|
|
else
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( rValue.Len()) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 i = rValue.Len() - 1; i > 0; i-- ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if (( rValue.GetChar( i ) == ' ' ) || ( rValue.GetChar( i ) == '\t' ) ||
|
|
|
|
|
( rValue.GetChar( i ) == '\n' ) || ( rValue.GetChar( i ) == ';' ) ||
|
2001-06-07 12:33:31 +00:00
|
|
|
|
( rValue.GetChar( i ) == '{' ) || ( rValue.GetChar( i ) == '\\' ) ||
|
|
|
|
|
( rValue.GetChar( i ) == '\r' ))
|
2000-09-18 16:07:07 +00:00
|
|
|
|
rValue.Erase( i );
|
|
|
|
|
else
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ByteString Export::GetText( const ByteString &rSource, int nToken )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
#define TXT_STATE_NON 0x000
|
|
|
|
|
#define TXT_STATE_TEXT 0x001
|
|
|
|
|
#define TXT_STATE_MACRO 0x002
|
|
|
|
|
{
|
|
|
|
|
ByteString sReturn;
|
|
|
|
|
switch ( nToken ) {
|
|
|
|
|
case TEXTLINE:
|
|
|
|
|
case LONGTEXTLINE: {
|
|
|
|
|
ByteString sTmp( rSource.Copy( rSource.Search( "=" )));
|
|
|
|
|
CleanValue( sTmp );
|
|
|
|
|
sTmp.EraseAllChars( '\n' );
|
2001-06-07 12:33:31 +00:00
|
|
|
|
sTmp.EraseAllChars( '\r' );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
while ( sTmp.SearchAndReplace( "\\\\\"", "-=<[BSlashBSlashHKom]>=-\"" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
while ( sTmp.SearchAndReplace( "\\\"", "-=<[Hochkomma]>=-" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
while ( sTmp.SearchAndReplace( "\\", "-=<[0x7F]>=-" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
while ( sTmp.SearchAndReplace( "\\0x7F", "-=<[0x7F]>=-" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nStart = 0;
|
|
|
|
|
sal_uInt16 nState = TXT_STATE_MACRO;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
nState = TXT_STATE_TEXT;
|
|
|
|
|
nStart = 1;
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 i = nStart; i < sTmp.GetTokenCount( '\"' ); i++ ) {
|
2011-08-29 23:03:08 +01:00
|
|
|
|
ByteString sToken = getToken(sTmp, i, '\"');
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( sToken.Len()) {
|
|
|
|
|
if ( nState == TXT_STATE_TEXT ) {
|
|
|
|
|
sReturn += sToken;
|
|
|
|
|
nState = TXT_STATE_MACRO;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
while( sToken.SearchAndReplace( "\t", " " ) !=
|
|
|
|
|
STRING_NOTFOUND ) {};
|
|
|
|
|
while( sToken.SearchAndReplace( " ", " " ) !=
|
|
|
|
|
STRING_NOTFOUND ) {};
|
|
|
|
|
sToken.EraseLeadingChars( ' ' );
|
|
|
|
|
sToken.EraseTrailingChars( ' ' );
|
|
|
|
|
if ( sToken.Len()) {
|
|
|
|
|
sReturn += "\\\" ";
|
|
|
|
|
sReturn += sToken;
|
|
|
|
|
sReturn += " \\\"";
|
|
|
|
|
}
|
|
|
|
|
nState = TXT_STATE_TEXT;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
while ( sReturn.SearchAndReplace( "-=<[0x7F]>=-", "" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
while ( sReturn.SearchAndReplace( "-=<[Hochkomma]>=-", "\"" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
while ( sReturn.SearchAndReplace( "-=<[BSlashBSlashHKom]>=-", "\\\\" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
while ( sReturn.SearchAndReplace( "\\\\", "-=<[BSlashBSlash]>=-" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
|
|
|
|
while ( sReturn.SearchAndReplace( "-=<[BSlashBSlash]>=-", "\\" )
|
|
|
|
|
!= STRING_NOTFOUND ) {};
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return sReturn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2004-06-25 11:40:49 +00:00
|
|
|
|
void Export::WriteToMerged( const ByteString &rText , bool bSDFContent )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
static ByteString SLASH ('\\');
|
|
|
|
|
static ByteString RETURN ('\n');
|
2007-07-18 06:13:03 +00:00
|
|
|
|
//printf("%s\n",rText.GetBuffer() );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( !bDontWriteOutput || !bUnmerge ) {
|
|
|
|
|
ByteString sText( rText );
|
|
|
|
|
while ( sText.SearchAndReplace( " \n", "\n" ) != STRING_NOTFOUND ) {};
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( pParseQueue->bNextIsM && bSDFContent && sText.Len() > 2 ){
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for( sal_uInt16 n = 0 ; n < sText.Len() ; n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
|
|
|
|
|
sText.Insert('\\' , n++ );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if( pParseQueue->bLastWasM && sText.Len() > 2 ){
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for( sal_uInt16 n = 0 ; n < sText.Len() ; n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
|
|
|
|
|
sText.Insert('\\' , n++ );
|
|
|
|
|
}
|
|
|
|
|
if( sText.GetChar( n ) == '\n' )pParseQueue->bMflag=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if( pParseQueue->bCurrentIsM && bSDFContent && sText.Len() > 2 ){
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for( sal_uInt16 n = 0 ; n < sText.Len() ; n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
|
|
|
|
|
sText.Insert('\\' , n++ );
|
|
|
|
|
pParseQueue->bMflag=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if( pParseQueue->bMflag ){
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for( sal_uInt16 n = 1 ; n < sText.Len() ; n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
|
|
|
|
|
sText.Insert('\\' , n++ );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 i = 0; i < sText.Len(); i++ ) {
|
2007-07-18 06:13:03 +00:00
|
|
|
|
if ( sText.GetChar( i ) != '\n' ){
|
2000-09-18 16:07:07 +00:00
|
|
|
|
aOutput.Write( ByteString( sText.GetChar( i )).GetBuffer(), 1 );
|
2007-07-18 06:13:03 +00:00
|
|
|
|
|
|
|
|
|
}
|
2004-06-25 11:40:49 +00:00
|
|
|
|
else{
|
2000-09-18 16:07:07 +00:00
|
|
|
|
aOutput.WriteLine( ByteString());
|
2004-06-25 11:40:49 +00:00
|
|
|
|
}
|
2007-07-18 06:13:03 +00:00
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2006-06-19 16:21:29 +00:00
|
|
|
|
void Export::ConvertMergeContent( ByteString &rText )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bNoOpen = ( rText.Search( "\\\"" ) != 0 );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sClose( rText.Copy( rText.Len() - 2 ));
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bNoClose = ( sClose != "\\\"" );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sNew;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 i = 0; i < rText.Len(); i++ ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sChar( rText.GetChar( i ));
|
|
|
|
|
if ( sChar == "\\" ) {
|
|
|
|
|
if (( i + 1 ) < rText.Len()) {
|
|
|
|
|
ByteString sNext( rText.GetChar( i + 1 ));
|
|
|
|
|
if ( sNext == "\"" ) {
|
|
|
|
|
sChar = "\"";
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
else if ( sNext == "n" ) {
|
|
|
|
|
sChar = "\\n";
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
else if ( sNext == "t" ) {
|
|
|
|
|
sChar = "\\t";
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
else if ( sNext == "\'" ) {
|
|
|
|
|
sChar = "\\\'";
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
sChar = "\\\\";
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
sChar = "\\\\";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if ( sChar == "\"" ) {
|
|
|
|
|
sChar = "\\\"";
|
|
|
|
|
}
|
|
|
|
|
else if ( sChar == "" ) {
|
|
|
|
|
sChar = "\\0x7F";
|
|
|
|
|
}
|
|
|
|
|
sNew += sChar;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rText = sNew;
|
|
|
|
|
|
|
|
|
|
if ( bNoOpen ) {
|
|
|
|
|
ByteString sTmp( rText );
|
|
|
|
|
rText = "\"";
|
|
|
|
|
rText += sTmp;
|
|
|
|
|
}
|
|
|
|
|
if ( bNoClose )
|
|
|
|
|
rText += "\"";
|
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
sal_Bool Export::PrepareTextToMerge(ByteString &rText, sal_uInt16 nTyp,
|
|
|
|
|
rtl::OString &rLangIndex, ResData *pResData)
|
2000-09-18 16:07:07 +00:00
|
|
|
|
{
|
|
|
|
|
// position to merge in:
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nStart = 0;
|
|
|
|
|
sal_uInt16 nEnd = 0;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sOldId = pResData->sId;
|
|
|
|
|
ByteString sOldGId = pResData->sGId;
|
|
|
|
|
ByteString sOldTyp = pResData->sResTyp;
|
|
|
|
|
|
|
|
|
|
ByteString sOrigText( rText );
|
|
|
|
|
|
|
|
|
|
switch ( nTyp ) {
|
|
|
|
|
case LIST_STRING :
|
|
|
|
|
case LIST_UIENTRIES :
|
|
|
|
|
case LIST_FILTER :
|
2004-11-18 07:16:38 +00:00
|
|
|
|
case LIST_PAIRED:
|
2000-09-18 16:07:07 +00:00
|
|
|
|
case LIST_ITEM :
|
|
|
|
|
{
|
|
|
|
|
if ( bUnmerge )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
ExportList *pList = NULL;
|
|
|
|
|
switch ( nTyp ) {
|
|
|
|
|
case LIST_STRING : {
|
|
|
|
|
pResData->sResTyp = "stringlist";
|
|
|
|
|
pList = pResData->pStringList;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LIST_UIENTRIES : {
|
|
|
|
|
pResData->sResTyp = "uientries";
|
|
|
|
|
pList = pResData->pUIEntries;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LIST_FILTER : {
|
|
|
|
|
pResData->sResTyp = "filterlist";
|
|
|
|
|
pList = pResData->pFilterList;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LIST_ITEM : {
|
|
|
|
|
pResData->sResTyp = "itemlist";
|
|
|
|
|
pList = pResData->pItemList;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
case LIST_PAIRED : {
|
|
|
|
|
pResData->sResTyp = "pairedlist";
|
|
|
|
|
pList = pResData->pPairedList;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (pList)
|
|
|
|
|
{
|
2011-01-22 21:21:53 -08:00
|
|
|
|
ExportListEntry *pCurEntry = (*pList)[ nListIndex - 1 ];
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( pCurEntry )
|
|
|
|
|
{
|
2007-04-19 14:18:22 +00:00
|
|
|
|
rText = (*pCurEntry)[ SOURCE_LANGUAGE ];
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if( nTyp == LIST_PAIRED )
|
|
|
|
|
pResData->addMergedLanguage(rLangIndex);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nStart = rText.Search( "\"" );
|
|
|
|
|
if ( nStart == STRING_NOTFOUND ) {
|
|
|
|
|
rText = sOrigText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bFound = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
for ( nEnd = nStart + 1; nEnd < rText.Len() && !bFound; nEnd++ ) {
|
|
|
|
|
if ( rText.GetChar( nEnd ) == '\"' )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFound = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
if ( !bFound ) {
|
|
|
|
|
rText = sOrigText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nEnd --;
|
|
|
|
|
sLastListLine = rText;
|
2001-08-30 08:43:17 +00:00
|
|
|
|
if (( sLastListLine.Search( ">" ) != STRING_NOTFOUND ) &&
|
|
|
|
|
( sLastListLine.Search( "<" ) == STRING_NOTFOUND ))
|
|
|
|
|
{
|
|
|
|
|
ByteString sTmp = sLastListLine;
|
|
|
|
|
sLastListLine = "<";
|
|
|
|
|
sLastListLine += sTmp;
|
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if ( pResData->sResTyp.EqualsIgnoreCaseAscii( "pairedlist" ) ){
|
|
|
|
|
pResData->sId = GetPairedListID( sLastListLine );
|
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
else pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nListIndex));
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( pResData->sGId.Len())
|
|
|
|
|
pResData->sGId += ".";
|
|
|
|
|
pResData->sGId += sOldId;
|
|
|
|
|
nTyp = STRING_TYP_TEXT;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case STRING_TYP_TEXT :
|
|
|
|
|
case STRING_TYP_HELPTEXT :
|
|
|
|
|
case STRING_TYP_QUICKHELPTEXT :
|
|
|
|
|
case STRING_TYP_TITLE :
|
|
|
|
|
{
|
|
|
|
|
nStart = rText.Search( "=" );
|
|
|
|
|
if ( nStart == STRING_NOTFOUND ) {
|
|
|
|
|
rText = sOrigText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nStart++;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bFound = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
while(( nStart < rText.Len()) && !bFound ) {
|
|
|
|
|
if (( rText.GetChar( nStart ) != ' ' ) && ( rText.GetChar( nStart ) != '\t' ))
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFound = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else
|
|
|
|
|
nStart ++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// no start position found
|
|
|
|
|
if ( !bFound ) {
|
|
|
|
|
rText = sOrigText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// position to end mergeing in
|
|
|
|
|
nEnd = rText.Len() - 1;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFound = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
while (( nEnd > nStart ) && !bFound ) {
|
|
|
|
|
if (( rText.GetChar( nEnd ) != ' ' ) && ( rText.GetChar( nEnd ) != '\t' ) &&
|
|
|
|
|
( rText.GetChar( nEnd ) != '\n' ) && ( rText.GetChar( nEnd ) != ';' ) &&
|
|
|
|
|
( rText.GetChar( nEnd ) != '{' ) && ( rText.GetChar( nEnd ) != '\\' ))
|
|
|
|
|
{
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFound = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
nEnd --;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// search for merge data
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if ( !pMergeDataFile ){
|
2006-06-19 16:21:29 +00:00
|
|
|
|
pMergeDataFile = new MergeDataFile( sMergeSrc, sFile , bErrorLog, aCharSet);//, bUTF8 );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
// Init Languages
|
|
|
|
|
ByteString sTmp = Export::sLanguages;
|
|
|
|
|
if( sTmp.ToUpperAscii().Equals("ALL") )
|
|
|
|
|
SetLanguages( pMergeDataFile->GetLanguages() );
|
|
|
|
|
else if( !isInitialized )InitLanguages();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
}
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
PFormEntrys *pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
|
|
|
|
pResData->sId = sOldId;
|
|
|
|
|
pResData->sGId = sOldGId;
|
|
|
|
|
pResData->sResTyp = sOldTyp;
|
|
|
|
|
|
|
|
|
|
if ( !pEntrys ) {
|
|
|
|
|
rText = sOrigText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False; // no data found
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ByteString sContent;
|
2011-07-01 22:27:20 +01:00
|
|
|
|
pEntrys->GetTransex3Text(sContent, nTyp, rLangIndex);
|
|
|
|
|
if (!sContent.Len() && (!Export::isSourceLanguage(rLangIndex)))
|
|
|
|
|
{
|
2000-09-18 16:07:07 +00:00
|
|
|
|
rText = sOrigText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False; // no data found
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if (Export::isSourceLanguage(rLangIndex))
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
ByteString sPostFix( rText.Copy( ++nEnd ));
|
|
|
|
|
rText.Erase( nStart );
|
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ConvertMergeContent( sContent );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
// merge new res. in text line
|
|
|
|
|
rText += sContent;
|
|
|
|
|
rText += sPostFix;
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
return sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2010-07-29 10:56:19 +08:00
|
|
|
|
void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if ( !pMergeDataFile ){
|
2006-06-19 16:21:29 +00:00
|
|
|
|
pMergeDataFile = new MergeDataFile( sMergeSrc, sFile ,bErrorLog, aCharSet);//, bUTF8 );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
// Init Languages
|
|
|
|
|
ByteString sTmp = Export::sLanguages;
|
|
|
|
|
if( sTmp.ToUpperAscii().Equals("ALL") )
|
|
|
|
|
SetLanguages( pMergeDataFile->GetLanguages() );
|
|
|
|
|
else if( !isInitialized )InitLanguages();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
switch ( nMode ) {
|
|
|
|
|
case MERGE_MODE_NORMAL : {
|
|
|
|
|
PFormEntrys *pEntry = pMergeDataFile->GetPFormEntrys( pResData );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
bool bWriteNoSlash = false;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if ( pEntry && pResData->bText ) {
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bAddSemikolon = sal_False;
|
|
|
|
|
sal_Bool bFirst = sal_True;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sCur;
|
|
|
|
|
ByteString sTmp = Export::sLanguages;
|
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sCur = aLanguages[ n ];
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bText = pEntry->GetTransex3Text( sText, STRING_TYP_TEXT, sCur , sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bText && sText.Len() && sText != "-" ) {
|
|
|
|
|
ByteString sOutput;
|
|
|
|
|
if ( bNextMustBeDefineEOL) {
|
|
|
|
|
if ( bFirst )
|
|
|
|
|
sOutput += "\t\\\n";
|
|
|
|
|
else
|
|
|
|
|
sOutput += ";\t\\\n";
|
|
|
|
|
}
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFirst=sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "\t";
|
|
|
|
|
sOutput += pResData->sTextTyp;
|
2007-04-19 14:18:22 +00:00
|
|
|
|
if ( ! Export::isSourceLanguage( sCur ) ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "[ ";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sOutput += sCur;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += " ] ";
|
|
|
|
|
}
|
|
|
|
|
sOutput += "= ";
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ConvertMergeContent( sText );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += sText;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
if ( bDefine && bWriteNoSlash )
|
|
|
|
|
sOutput += ";\n";
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bDefine )
|
|
|
|
|
sOutput += ";\\\n";
|
|
|
|
|
else if ( !bNextMustBeDefineEOL )
|
|
|
|
|
sOutput += ";\n";
|
|
|
|
|
else
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bAddSemikolon = sal_True;
|
|
|
|
|
for ( sal_uInt16 j = 1; j < nLevel; j++ )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "\t";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOutput , true );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2004-06-25 11:40:49 +00:00
|
|
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bAddSemikolon ) {
|
|
|
|
|
ByteString sOutput( ";" );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOutput , false );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( pEntry && pResData->bQuickHelpText ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bAddSemikolon = sal_False;
|
|
|
|
|
sal_Bool bFirst = sal_True;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sCur;
|
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sCur = aLanguages[ n ];
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bText = pEntry->GetTransex3Text( sText, STRING_TYP_QUICKHELPTEXT, sCur, sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bText && sText.Len() && sText != "-" ) {
|
|
|
|
|
ByteString sOutput;
|
|
|
|
|
if ( bNextMustBeDefineEOL) {
|
|
|
|
|
if ( bFirst )
|
|
|
|
|
sOutput += "\t\\\n";
|
|
|
|
|
else
|
|
|
|
|
sOutput += ";\t\\\n";
|
|
|
|
|
}
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFirst=sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "\t";
|
|
|
|
|
sOutput += "QuickHelpText";
|
2007-04-19 14:18:22 +00:00
|
|
|
|
if ( ! Export::isSourceLanguage( sCur ) ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "[ ";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sOutput += sCur;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += " ] ";
|
|
|
|
|
}
|
|
|
|
|
sOutput += "= ";
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ConvertMergeContent( sText );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += sText;
|
|
|
|
|
if ( bDefine )
|
|
|
|
|
sOutput += ";\\\n";
|
|
|
|
|
else if ( !bNextMustBeDefineEOL )
|
|
|
|
|
sOutput += ";\n";
|
|
|
|
|
else
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bAddSemikolon = sal_True;
|
|
|
|
|
for ( sal_uInt16 j = 1; j < nLevel; j++ )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "\t";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOutput ,true );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( bAddSemikolon ) {
|
|
|
|
|
ByteString sOutput( ";" );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOutput , false );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( pEntry && pResData->bTitle ) {
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bAddSemikolon = sal_False;
|
|
|
|
|
sal_Bool bFirst = sal_True;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
ByteString sCur;
|
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sCur = aLanguages[ n ];
|
|
|
|
|
|
|
|
|
|
ByteString sText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bText = pEntry->GetTransex3Text( sText, STRING_TYP_TITLE, sCur, sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
if ( bText && sText.Len() && sText != "-" ) {
|
|
|
|
|
ByteString sOutput;
|
|
|
|
|
if ( bNextMustBeDefineEOL) {
|
|
|
|
|
if ( bFirst )
|
|
|
|
|
sOutput += "\t\\\n";
|
|
|
|
|
else
|
|
|
|
|
sOutput += ";\t\\\n";
|
|
|
|
|
}
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bFirst=sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "\t";
|
|
|
|
|
sOutput += "Title";
|
2007-04-19 14:18:22 +00:00
|
|
|
|
if ( ! Export::isSourceLanguage( sCur ) ) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "[ ";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sOutput += sCur;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += " ] ";
|
|
|
|
|
}
|
|
|
|
|
sOutput += "= ";
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ConvertMergeContent( sText );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += sText;
|
|
|
|
|
if ( bDefine )
|
|
|
|
|
sOutput += ";\\\n";
|
|
|
|
|
else if ( !bNextMustBeDefineEOL )
|
|
|
|
|
sOutput += ";\n";
|
|
|
|
|
else
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bAddSemikolon = sal_True;
|
|
|
|
|
for ( sal_uInt16 j = 1; j < nLevel; j++ )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sOutput += "\t";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOutput ,true );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( bAddSemikolon ) {
|
|
|
|
|
ByteString sOutput( ";" );
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sOutput ,false);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2007-04-19 14:18:22 +00:00
|
|
|
|
// Merge Lists
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
if ( pResData->bList ) {
|
2004-11-18 07:16:38 +00:00
|
|
|
|
bool bPairedList = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sOldId = pResData->sId;
|
|
|
|
|
ByteString sOldGId = pResData->sGId;
|
|
|
|
|
ByteString sOldTyp = pResData->sResTyp;
|
|
|
|
|
if ( pResData->sGId.Len())
|
|
|
|
|
pResData->sGId += ".";
|
|
|
|
|
pResData->sGId += sOldId;
|
|
|
|
|
ByteString sSpace;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 i = 1; i < nLevel-1; i++ )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sSpace += "\t";
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 nT = LIST_STRING; nT <= LIST_UIENTRIES; nT++ ) {
|
2001-05-11 07:58:14 +00:00
|
|
|
|
ExportList *pList = NULL;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
switch ( nT ) {
|
2004-11-18 07:16:38 +00:00
|
|
|
|
case LIST_STRING : pResData->sResTyp = "stringlist"; pList = pResData->pStringList; bPairedList = false; break;
|
|
|
|
|
case LIST_FILTER : pResData->sResTyp = "filterlist"; pList = pResData->pFilterList; bPairedList = false; break;
|
|
|
|
|
case LIST_UIENTRIES : pResData->sResTyp = "uientries"; pList = pResData->pUIEntries;bPairedList = false; break;
|
|
|
|
|
case LIST_ITEM : pResData->sResTyp = "itemlist"; pList = pResData->pItemList; bPairedList = false; break;
|
|
|
|
|
case LIST_PAIRED : pResData->sResTyp = "pairedlist"; pList = pResData->pPairedList; bPairedList = true; break;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
rtl::OString sCur;
|
|
|
|
|
for( unsigned int n = 0; n < aLanguages.size(); n++ )
|
|
|
|
|
{
|
2004-06-25 11:40:49 +00:00
|
|
|
|
sCur = aLanguages[ n ];
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nIdx = 1;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
// Set matching pairedlist identifier
|
|
|
|
|
if( bPairedList && pResData->pPairedList && ( nIdx == 1 ) ){
|
2011-01-22 21:21:53 -08:00
|
|
|
|
ExportListEntry* pListE = ( ExportListEntry* ) (*pResData->pPairedList)[ nIdx-1 ];
|
2007-04-19 14:18:22 +00:00
|
|
|
|
pResData->sId = GetPairedListID ( (*pListE)[ SOURCE_LANGUAGE ] );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
pResData->sId = ByteString("1");
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
PFormEntrys *pEntrys;
|
2011-01-12 16:14:41 +01:00
|
|
|
|
sal_uLong nLIndex = 0;
|
|
|
|
|
sal_uLong nMaxIndex = 0;
|
2001-08-01 08:08:09 +00:00
|
|
|
|
if ( pList )
|
2007-04-19 14:18:22 +00:00
|
|
|
|
nMaxIndex = pList->GetSourceLanguageListEntryCount();
|
2006-06-19 16:21:29 +00:00
|
|
|
|
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
2006-07-06 13:34:29 +00:00
|
|
|
|
while( pEntrys && ( nLIndex < nMaxIndex )) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sText;
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_Bool bText;
|
|
|
|
|
bText = pEntrys->GetTransex3Text( sText, STRING_TYP_TEXT, sCur, sal_True );
|
2007-04-19 14:18:22 +00:00
|
|
|
|
if( !bText )
|
2010-07-29 10:56:19 +08:00
|
|
|
|
bText = pEntrys->GetTransex3Text( sText , STRING_TYP_TEXT, SOURCE_LANGUAGE , sal_False );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
// Use fallback, if data is missing in sdf file
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if( !bText && bPairedList )
|
|
|
|
|
{
|
|
|
|
|
if( pResData->isMerged( sCur ) )
|
|
|
|
|
break;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
const ByteString sPlist("pairedlist");
|
2006-03-29 12:26:24 +00:00
|
|
|
|
ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
bText = pResData->getFallbackData( sKey , sText );
|
2011-07-01 22:27:20 +01:00
|
|
|
|
}
|
|
|
|
|
else if ( !bText ) // new fallback
|
|
|
|
|
{
|
2007-07-18 06:13:03 +00:00
|
|
|
|
if( pResData->isMerged( sCur ) ) break;
|
|
|
|
|
const ByteString sPlist("list");
|
|
|
|
|
ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename );
|
|
|
|
|
bText = pResData->getFallbackData( sKey , sText );
|
|
|
|
|
} // new fallback
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( bText && sText.Len())
|
|
|
|
|
{
|
|
|
|
|
if ( nIdx == 1 )
|
|
|
|
|
{
|
|
|
|
|
rtl::OStringBuffer sHead;
|
2001-08-29 10:50:41 +00:00
|
|
|
|
if ( bNextMustBeDefineEOL )
|
2011-07-01 22:27:20 +01:00
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("\\\n\t"));
|
|
|
|
|
sHead.append(sSpace);
|
|
|
|
|
switch ( nT )
|
|
|
|
|
{
|
|
|
|
|
case LIST_STRING:
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("StringList "));
|
|
|
|
|
break;
|
|
|
|
|
case LIST_FILTER:
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("FilterList "));
|
|
|
|
|
break;
|
|
|
|
|
case LIST_ITEM:
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("ItemList "));
|
|
|
|
|
break;
|
|
|
|
|
case LIST_PAIRED:
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("PairedList "));
|
|
|
|
|
break;
|
|
|
|
|
case LIST_UIENTRIES:
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("UIEntries "));
|
|
|
|
|
break;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("[ "));
|
|
|
|
|
sHead.append(sCur);
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM(" ] "));
|
2004-06-25 11:40:49 +00:00
|
|
|
|
//}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
if ( bDefine || bNextMustBeDefineEOL )
|
|
|
|
|
{
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("= \\\n"));
|
|
|
|
|
sHead.append(sSpace);
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("\t{\\\n\t"));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("= \n"));
|
|
|
|
|
sHead.append(sSpace);
|
|
|
|
|
sHead.append(RTL_CONSTASCII_STRINGPARAM("\t{\n\t"));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2011-07-01 22:27:20 +01:00
|
|
|
|
WriteToMerged(sHead.makeStringAndClear() , true);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2001-05-11 07:58:14 +00:00
|
|
|
|
ByteString sLine;
|
2011-01-22 21:21:53 -08:00
|
|
|
|
if ( pList && (*pList)[ nLIndex ] )
|
|
|
|
|
sLine = ( *(*pList)[ nLIndex ])[ SOURCE_LANGUAGE ];
|
2001-05-11 07:58:14 +00:00
|
|
|
|
if ( !sLine.Len())
|
|
|
|
|
sLine = sLastListLine;
|
2001-05-15 12:02:37 +00:00
|
|
|
|
|
2001-08-29 12:16:38 +00:00
|
|
|
|
if ( sLastListLine.Search( "<" ) != STRING_NOTFOUND ) {
|
|
|
|
|
if (( nT != LIST_UIENTRIES ) &&
|
|
|
|
|
(( sLine.Search( "{" ) == STRING_NOTFOUND ) ||
|
|
|
|
|
( sLine.Search( "{" ) >= sLine.Search( "\"" ))) &&
|
|
|
|
|
(( sLine.Search( "<" ) == STRING_NOTFOUND ) ||
|
|
|
|
|
( sLine.Search( "<" ) >= sLine.Search( "\"" ))))
|
|
|
|
|
{
|
|
|
|
|
sLine.SearchAndReplace( "\"", "< \"" );
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nStart, nEnd;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nStart = sLine.Search( "\"" );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
ByteString sPostFix;
|
|
|
|
|
if( !bPairedList ){
|
|
|
|
|
nEnd = sLine.SearchBackward( '\"' );
|
|
|
|
|
sPostFix = ByteString( sLine.Copy( ++nEnd ));
|
|
|
|
|
sLine.Erase( nStart );
|
|
|
|
|
}
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ConvertMergeContent( sText );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
// merge new res. in text line
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if( bPairedList ){
|
|
|
|
|
sLine = MergePairedList( sLine , sText );
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
sLine += sText;
|
|
|
|
|
sLine += sPostFix;
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
2006-06-19 16:21:29 +00:00
|
|
|
|
ByteString sText1( "\t" );
|
|
|
|
|
sText1 += sLine;
|
2001-08-29 10:50:41 +00:00
|
|
|
|
if ( bDefine || bNextMustBeDefineEOL )
|
2006-06-19 16:21:29 +00:00
|
|
|
|
sText1 += " ;\\\n";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
else
|
2006-06-19 16:21:29 +00:00
|
|
|
|
sText1 += " ;\n";
|
|
|
|
|
sText1 += sSpace;
|
|
|
|
|
sText1 += "\t";
|
|
|
|
|
WriteToMerged( sText1 ,true );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
|
|
|
|
|
// Set matching pairedlist identifier
|
|
|
|
|
if ( bPairedList ){
|
|
|
|
|
nIdx++;
|
2011-01-22 21:21:53 -08:00
|
|
|
|
ExportListEntry* pListE = ( ExportListEntry* )(*pResData->pPairedList)[ ( nIdx ) -1 ];
|
2004-11-18 07:16:38 +00:00
|
|
|
|
if( pListE ){
|
2007-04-19 14:18:22 +00:00
|
|
|
|
pResData->sId = GetPairedListID ( (*pListE)[ SOURCE_LANGUAGE ] );
|
2004-11-18 07:16:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
2011-07-01 22:27:20 +01:00
|
|
|
|
pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(++nIdx));
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
break;
|
2001-05-11 07:58:14 +00:00
|
|
|
|
nLIndex ++;
|
2007-07-18 06:13:03 +00:00
|
|
|
|
PFormEntrys *oldEntry = pEntrys;
|
2011-04-16 16:18:45 -03:00
|
|
|
|
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
2007-07-18 06:13:03 +00:00
|
|
|
|
if( !pEntrys )
|
|
|
|
|
pEntrys = oldEntry;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
if ( nIdx > 1 ) {
|
|
|
|
|
ByteString sFooter( sSpace.Copy( 1 ));
|
2001-08-29 10:50:41 +00:00
|
|
|
|
if ( bNextMustBeDefineEOL )
|
|
|
|
|
sFooter += "};";
|
|
|
|
|
else if ( !bDefine )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sFooter += "};\n\t";
|
|
|
|
|
else
|
|
|
|
|
sFooter += "\n\n";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sFooter ,true );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pResData->sId = sOldId;
|
|
|
|
|
pResData->sGId = sOldGId;
|
|
|
|
|
pResData->sResTyp = sOldTyp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case MERGE_MODE_LIST : {
|
2001-05-11 07:58:14 +00:00
|
|
|
|
ExportList *pList = NULL;
|
|
|
|
|
switch ( nList ) {
|
2004-11-18 07:16:38 +00:00
|
|
|
|
// PairedList
|
2001-05-11 07:58:14 +00:00
|
|
|
|
case LIST_STRING : pList = pResData->pStringList; break;
|
|
|
|
|
case LIST_FILTER : pList = pResData->pFilterList; break;
|
|
|
|
|
case LIST_UIENTRIES : pList = pResData->pUIEntries; break;
|
|
|
|
|
case LIST_ITEM : pList = pResData->pItemList; break;
|
2004-11-18 07:16:38 +00:00
|
|
|
|
case LIST_PAIRED : pList = pResData->pPairedList; break;
|
|
|
|
|
|
2001-05-11 07:58:14 +00:00
|
|
|
|
}
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex++;
|
2011-01-12 16:14:41 +01:00
|
|
|
|
sal_uLong nMaxIndex = 0;
|
2001-08-01 08:08:09 +00:00
|
|
|
|
if ( pList )
|
2007-04-19 14:18:22 +00:00
|
|
|
|
nMaxIndex = pList->GetSourceLanguageListEntryCount();
|
2001-05-11 07:58:14 +00:00
|
|
|
|
ByteString sLine;
|
2011-01-22 21:21:53 -08:00
|
|
|
|
if ( pList && (*pList)[ nListIndex ] )
|
|
|
|
|
sLine = ( *(*pList)[ nListIndex ])[ SOURCE_LANGUAGE ];
|
2001-05-11 07:58:14 +00:00
|
|
|
|
if ( !sLine.Len())
|
|
|
|
|
sLine = sLastListLine;
|
2001-05-15 12:02:37 +00:00
|
|
|
|
|
2001-08-29 13:13:57 +00:00
|
|
|
|
if ( sLastListLine.Search( "<" ) != STRING_NOTFOUND ) {
|
|
|
|
|
if (( nList != LIST_UIENTRIES ) &&
|
|
|
|
|
(( sLine.Search( "{" ) == STRING_NOTFOUND ) ||
|
|
|
|
|
( sLine.Search( "{" ) >= sLine.Search( "\"" ))) &&
|
|
|
|
|
(( sLine.Search( "<" ) == STRING_NOTFOUND ) ||
|
|
|
|
|
( sLine.Search( "<" ) >= sLine.Search( "\"" ))))
|
|
|
|
|
{
|
|
|
|
|
sLine.SearchAndReplace( "\"", "< \"" );
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
2006-07-06 13:34:29 +00:00
|
|
|
|
|
2011-07-01 22:27:20 +01:00
|
|
|
|
while( PrepareTextToMerge( sLine, nList, m_sListLang, pResData ) && ( nListIndex <= nMaxIndex )) {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
ByteString sText( "\t" );
|
|
|
|
|
sText += sLine;
|
2001-05-15 12:02:37 +00:00
|
|
|
|
sText += " ;";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sText += "\n";
|
2010-07-29 10:56:19 +08:00
|
|
|
|
for ( sal_uInt16 i = 0; i < nLevel; i++ )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
sText += "\t";
|
2004-06-25 11:40:49 +00:00
|
|
|
|
WriteToMerged( sText ,false );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
nListIndex++;
|
2011-01-22 21:21:53 -08:00
|
|
|
|
if ( pList && (*pList)[ nListIndex ])
|
|
|
|
|
sLine = ( *(*pList)[ nListIndex ])[ SOURCE_LANGUAGE ];
|
2001-05-11 07:58:14 +00:00
|
|
|
|
if ( !sLine.Len())
|
|
|
|
|
sLine = sLastListLine;
|
2001-05-15 12:02:37 +00:00
|
|
|
|
sLine += " ;";
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
2004-06-25 11:40:49 +00:00
|
|
|
|
pParseQueue->bMflag = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2004-11-18 07:16:38 +00:00
|
|
|
|
ByteString Export::MergePairedList( ByteString& sLine , ByteString& sText ){
|
|
|
|
|
// < "xy" ; IDENTIFIER ; >
|
|
|
|
|
ByteString sPre = sLine.Copy( 0 , sLine.Search('\"') );
|
|
|
|
|
ByteString sPost = sLine.Copy( sLine.SearchBackward('\"') + 1 , sLine.Len() );
|
|
|
|
|
sPre.Append( sText );
|
|
|
|
|
sPre.Append( sPost );
|
|
|
|
|
return sPre;
|
|
|
|
|
}
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
void Export::SetChildWithText()
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
{
|
2011-01-22 21:51:18 -08:00
|
|
|
|
if ( aResStack.size() > 1 ) {
|
|
|
|
|
for ( size_t i = 0; i < aResStack.size() - 1; i++ ) {
|
Merge commit 'ooo/DEV300_m101' into intm101
The following builds for me:
basebmp, basegfx, comphelper, dtrans, i18npool, i18nutil, l10ntools, o3tl,
psprint_config, regexp, rsc, sax, sot, tools, ucbhelper, unotools, vcl
The rest still needs fixing ;-)
Conflicts:
canvas/prj/build.lst
canvas/source/cairo/cairo_textlayout.cxx
canvas/source/directx/dx_winstuff.hxx
canvas/source/tools/image.cxx
canvas/source/vcl/canvashelper.cxx
comphelper/inc/comphelper/documentconstants.hxx
comphelper/inc/comphelper/optionalvalue.hxx
comphelper/inc/comphelper/querydeep.hxx
comphelper/prj/build.lst
comphelper/qa/complex/makefile.mk
comphelper/qa/string/test_string_noadditional.cxx
comphelper/source/misc/componentmodule.cxx
comphelper/source/misc/mimeconfighelper.cxx
comphelper/source/misc/querydeep.cxx
comphelper/source/misc/uieventslogger.cxx
comphelper/source/property/TypeGeneration.cxx
comphelper/test/uno_iterators/uno_iterators.cxx
comphelper/util/makefile.mk
cppcanvas/source/mtfrenderer/implrenderer.cxx
dtrans/prj/build.lst
dtrans/source/generic/dtrans.cxx
dtrans/source/win32/dtobj/FmtFilter.cxx
i18npool/prj/build.lst
i18npool/source/localedata/data/localedata_others.map
i18npool/source/localedata/data/makefile.mk
i18npool/source/localedata/localedata.cxx
i18npool/source/localedata/saxparser.cxx
i18npool/source/registerservices/registerservices.cxx
i18npool/source/search/textsearch.cxx
l10ntools/inc/cfgmerge.hxx
l10ntools/inc/export.hxx
l10ntools/inc/gsicheck.hxx
l10ntools/inc/l10ntools/vosapp.hxx
l10ntools/inc/tagtest.hxx
l10ntools/inc/xmlparse.hxx
l10ntools/layout/layoutparse.cxx
l10ntools/layout/tralay.cxx
l10ntools/source/cfgmerge.cxx
l10ntools/source/export.cxx
l10ntools/source/export2.cxx
l10ntools/source/gsicheck.cxx
l10ntools/source/help/HelpLinker.cxx
l10ntools/source/lngex.cxx
l10ntools/source/lngmerge.cxx
l10ntools/source/merge.cxx
l10ntools/source/tagtest.cxx
l10ntools/source/xmlparse.cxx
padmin/source/fontentry.cxx
padmin/source/padialog.cxx
padmin/source/padialog.src
padmin/source/pamain.cxx
rsc/inc/rscarray.hxx
rsc/inc/rscclass.hxx
rsc/inc/rscclobj.hxx
rsc/inc/rsccont.hxx
rsc/inc/rscdb.hxx
rsc/inc/rscdef.hxx
rsc/inc/rscmgr.hxx
rsc/inc/rscrange.hxx
rsc/inc/rsctop.hxx
rsc/inc/vclrsc.hxx
rsc/source/parser/rscdb.cxx
rsc/source/parser/rscicpx.cxx
rsc/source/parser/rscinit.cxx
rsc/source/prj/start.cxx
rsc/source/res/rscarray.cxx
rsc/source/res/rscclass.cxx
rsc/source/res/rscclobj.cxx
rsc/source/res/rsccont.cxx
rsc/source/res/rscmgr.cxx
rsc/source/res/rscrange.cxx
rsc/source/res/rsctop.cxx
rsc/source/rsc/rsc.cxx
rsc/source/tools/rscdef.cxx
rsc/source/tools/rsctools.cxx
sax/source/expatwrap/sax_expat.cxx
sax/source/fastparser/facreg.cxx
sax/source/tools/fastserializer.cxx
sot/inc/sot/filelist.hxx
sot/inc/sot/object.hxx
sot/source/base/factory.cxx
sot/source/base/filelist.cxx
sot/source/sdstor/stg.cxx
sot/source/sdstor/stgcache.cxx
sot/source/sdstor/stgole.cxx
sot/source/sdstor/stgstrms.cxx
sot/source/sdstor/storage.cxx
sot/source/sdstor/ucbstorage.cxx
svl/inc/svl/cenumitm.hxx
svl/inc/svl/cintitem.hxx
svl/inc/svl/cntwall.hxx
svl/inc/svl/ctypeitm.hxx
svl/inc/svl/custritm.hxx
svl/inc/svl/dateitem.hxx
svl/inc/svl/filerec.hxx
svl/inc/svl/globalnameitem.hxx
svl/inc/svl/ilstitem.hxx
svl/inc/svl/imageitm.hxx
svl/inc/svl/intitem.hxx
svl/inc/svl/itempool.hxx
svl/inc/svl/itemset.hxx
svl/inc/svl/lckbitem.hxx
svl/inc/svl/poolitem.hxx
svl/inc/svl/ptitem.hxx
svl/inc/svl/rectitem.hxx
svl/inc/svl/sfontitm.hxx
svl/inc/svl/slstitm.hxx
svl/inc/svl/srchitem.hxx
svl/inc/svl/svarray.hxx
svl/inc/svl/svdde.hxx
svl/inc/svl/svstdarr.hxx
svl/inc/svl/szitem.hxx
svl/inc/svl/visitem.hxx
svl/inc/svl/zforlist.hxx
svl/inc/svl/zformat.hxx
svl/prj/build.lst
svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
svl/qa/complex/ConfigItems/helper/makefile.mk
svl/qa/makefile.mk
svl/source/filepicker/pickerhelper.cxx
svl/source/filerec/filerec.cxx
svl/source/items/cenumitm.cxx
svl/source/items/cintitem.cxx
svl/source/items/cntwall.cxx
svl/source/items/ctypeitm.cxx
svl/source/items/custritm.cxx
svl/source/items/dateitem.cxx
svl/source/items/globalnameitem.cxx
svl/source/items/ilstitem.cxx
svl/source/items/imageitm.cxx
svl/source/items/intitem.cxx
svl/source/items/itempool.cxx
svl/source/items/itemprop.cxx
svl/source/items/itemset.cxx
svl/source/items/lckbitem.cxx
svl/source/items/poolio.cxx
svl/source/items/poolitem.cxx
svl/source/items/ptitem.cxx
svl/source/items/rectitem.cxx
svl/source/items/slstitm.cxx
svl/source/items/srchitem.cxx
svl/source/items/style.cxx
svl/source/items/szitem.cxx
svl/source/items/visitem.cxx
svl/source/items/whiter.cxx
svl/source/memtools/svarray.cxx
svl/source/misc/PasswordHelper.cxx
svl/source/misc/adrparse.cxx
svl/source/misc/lngmisc.cxx
svl/source/notify/brdcst.cxx
svl/source/notify/listener.cxx
svl/source/notify/listenerbase.cxx
svl/source/numbers/makefile.mk
svl/source/numbers/nbdll.cxx
svl/source/numbers/zforfind.cxx
svl/source/numbers/zforlist.cxx
svl/source/numbers/zformat.cxx
svl/source/numbers/zforscan.cxx
svl/source/passwordcontainer/passwordcontainer.cxx
svl/source/svdde/ddecli.cxx
svl/source/svdde/ddeimp.hxx
svl/source/svdde/ddemlos2.h
svl/source/svdde/ddesvr.cxx
svl/source/undo/undo.cxx
svl/source/uno/registerservices.cxx
svl/util/makefile.mk
svtools/bmpmaker/bmpsum.cxx
svtools/bmpmaker/g2g.cxx
svtools/bmpmaker/makefile.mk
svtools/inc/borderhelper.hxx
svtools/inc/svtools/accessiblefactory.hxx
svtools/inc/svtools/apearcfg.hxx
svtools/inc/svtools/brwbox.hxx
svtools/inc/svtools/ctrlbox.hxx
svtools/inc/svtools/ctrltool.hxx
svtools/inc/svtools/editbrowsebox.hxx
svtools/inc/svtools/ehdl.hxx
svtools/inc/svtools/embedhlp.hxx
svtools/inc/svtools/filter.hxx
svtools/inc/svtools/ivctrl.hxx
svtools/inc/svtools/parhtml.hxx
svtools/inc/svtools/printdlg.hxx
svtools/inc/svtools/rtftoken.h
svtools/inc/svtools/ruler.hxx
svtools/inc/svtools/svicnvw.hxx
svtools/inc/svtools/svlbitm.hxx
svtools/inc/svtools/svlbox.hxx
svtools/inc/svtools/svtreebx.hxx
svtools/inc/svtools/tabbar.hxx
svtools/inc/svtools/table/abstracttablecontrol.hxx
svtools/inc/svtools/taskbar.hxx
svtools/inc/svtools/textview.hxx
svtools/inc/svtools/valueset.hxx
svtools/source/brwbox/brwbox1.cxx
svtools/source/brwbox/brwbox2.cxx
svtools/source/brwbox/datwin.cxx
svtools/source/brwbox/datwin.hxx
svtools/source/brwbox/makefile.mk
svtools/source/config/apearcfg.cxx
svtools/source/config/htmlcfg.cxx
svtools/source/config/menuoptions.cxx
svtools/source/config/miscopt.cxx
svtools/source/contnr/cont_pch.cxx
svtools/source/contnr/ctrdll.cxx
svtools/source/contnr/fileview.cxx
svtools/source/contnr/imivctl1.cxx
svtools/source/contnr/ivctrl.cxx
svtools/source/contnr/makefile.mk
svtools/source/contnr/svcontnr.src
svtools/source/contnr/svicnvw.cxx
svtools/source/contnr/svimpbox.cxx
svtools/source/contnr/svimpicn.cxx
svtools/source/contnr/svlbitm.cxx
svtools/source/contnr/svtreebx.cxx
svtools/source/contnr/templwin.cxx
svtools/source/contnr/templwin.hxx
svtools/source/control/asynclink.cxx
svtools/source/control/ctrlbox.cxx
svtools/source/control/ctrldll.cxx
svtools/source/control/ctrltool.cxx
svtools/source/control/filectrl.cxx
svtools/source/control/filectrl.src
svtools/source/control/headbar.cxx
svtools/source/control/inettbc.cxx
svtools/source/control/makefile.mk
svtools/source/control/prgsbar.cxx
svtools/source/control/roadmap.cxx
svtools/source/control/ruler.cxx
svtools/source/control/scriptedtext.cxx
svtools/source/control/stdmenu.cxx
svtools/source/control/tabbar.cxx
svtools/source/control/taskbar.cxx
svtools/source/control/taskbox.cxx
svtools/source/control/taskmisc.cxx
svtools/source/control/taskstat.cxx
svtools/source/control/valueacc.cxx
svtools/source/control/valueset.cxx
svtools/source/dialogs/addresstemplate.cxx
svtools/source/dialogs/addresstemplate.src
svtools/source/dialogs/colrdlg.src
svtools/source/dialogs/filedlg2.cxx
svtools/source/dialogs/filedlg2.hxx
svtools/source/dialogs/makefile.mk
svtools/source/dialogs/printdlg.cxx
svtools/source/dialogs/printdlg.src
svtools/source/dialogs/propctrl.cxx
svtools/source/dialogs/propctrl.hxx
svtools/source/dialogs/property.cxx
svtools/source/edit/makefile.mk
svtools/source/edit/sychconv.cxx
svtools/source/edit/syntaxhighlight.cxx
svtools/source/edit/textdoc.cxx
svtools/source/edit/texteng.cxx
svtools/source/edit/textundo.cxx
svtools/source/edit/textview.cxx
svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
svtools/source/filter.vcl/filter/dlgejpg.cxx
svtools/source/filter.vcl/filter/dlgejpg.hxx
svtools/source/filter.vcl/filter/dlgejpg.src
svtools/source/filter.vcl/filter/dlgepng.cxx
svtools/source/filter.vcl/filter/dlgepng.hxx
svtools/source/filter.vcl/filter/dlgepng.src
svtools/source/filter.vcl/filter/dlgexpor.cxx
svtools/source/filter.vcl/filter/dlgexpor.hxx
svtools/source/filter.vcl/filter/dlgexpor.src
svtools/source/filter.vcl/filter/filter2.cxx
svtools/source/filter.vcl/filter/makefile.mk
svtools/source/filter.vcl/filter/sgfbram.cxx
svtools/source/filter.vcl/filter/sgvmain.cxx
svtools/source/filter.vcl/filter/sgvspln.cxx
svtools/source/filter.vcl/filter/strings.src
svtools/source/filter.vcl/jpeg/makefile.mk
svtools/source/filter.vcl/wmf/emfwr.cxx
svtools/source/filter.vcl/wmf/emfwr.hxx
svtools/source/filter.vcl/wmf/enhwmf.cxx
svtools/source/filter.vcl/wmf/winmtf.hxx
svtools/source/filter.vcl/wmf/wmfwr.cxx
svtools/source/filter.vcl/wmf/wmfwr.hxx
svtools/source/graphic/grfcache.cxx
svtools/source/graphic/grfcache.hxx
svtools/source/graphic/grfmgr.cxx
svtools/source/graphic/makefile.mk
svtools/source/inc/accessibletableimp.hxx
svtools/source/inc/svimpbox.hxx
svtools/source/java/patchjavaerror.src
svtools/source/misc/ehdl.cxx
svtools/source/misc/errtxt.src
svtools/source/misc/helpagentwindow.cxx
svtools/source/misc/imagemgr.cxx
svtools/source/misc/imagemgr.src
svtools/source/misc/imageresourceaccess.cxx
svtools/source/misc/imap.cxx
svtools/source/misc/langtab.src
svtools/source/misc/makefile.mk
svtools/source/misc/svtdata.cxx
svtools/source/misc/templatefoldercache.cxx
svtools/source/misc/transfer2.cxx
svtools/source/misc/undo.src
svtools/source/plugapp/commtest.cxx
svtools/source/plugapp/commtest.src
svtools/source/plugapp/makefile.mk
svtools/source/plugapp/testtool.src
svtools/source/productregistration/productregistration.cxx
svtools/source/svhtml/htmlkywd.cxx
svtools/source/svhtml/parhtml.cxx
svtools/source/svrtf/rtfkey2.cxx
svtools/source/svrtf/rtfkeywd.cxx
svtools/source/table/defaultinputhandler.cxx
svtools/source/table/makefile.mk
svtools/source/table/tablecontrol.cxx
svtools/source/table/tablecontrol_impl.cxx
svtools/source/table/tablecontrol_impl.hxx
svtools/source/table/tabledatawindow.cxx
svtools/source/table/tablegeometry.cxx
svtools/source/table/tablegeometry.hxx
svtools/source/toolpanel/makefile.mk
svtools/source/toolpanel/toolpaneldrawer.cxx
svtools/source/uno/addrtempuno.cxx
svtools/source/uno/miscservices.cxx
svtools/source/uno/svtxgridcontrol.cxx
svtools/source/uno/svtxgridcontrol.hxx
svtools/source/uno/toolboxcontroller.cxx
svtools/source/uno/treecontrolpeer.cxx
svtools/source/uno/unocontroltablemodel.cxx
svtools/source/uno/unocontroltablemodel.hxx
svtools/source/uno/unoimap.cxx
svtools/source/urlobj/inetimg.cxx
svtools/util/makefile.mk
svtools/workben/browser.cxx
svtools/workben/cui/makefile.mk
svtools/workben/makefile.mk
svtools/workben/stest.cxx
svtools/workben/toolpanel/makefile.mk
svtools/workben/urange.cxx
toolkit/inc/toolkit/awt/vclxdevice.hxx
toolkit/inc/toolkit/awt/vclxgraphics.hxx
toolkit/inc/toolkit/awt/vclxwindows.hxx
toolkit/inc/toolkit/controls/dialogcontrol.hxx
toolkit/inc/toolkit/helper/property.hxx
toolkit/inc/toolkit/helper/servicenames.hxx
toolkit/inc/toolkit/helper/throbberimpl.hxx
toolkit/qa/complex/toolkit/accessibility/_XAccessibleComponent.java
toolkit/source/awt/asynccallback.cxx
toolkit/source/awt/vclxgraphics.cxx
toolkit/source/awt/vclxtoolkit.cxx
toolkit/source/awt/vclxwindow.cxx
toolkit/source/awt/xsimpleanimation.cxx
toolkit/source/awt/xthrobber.cxx
toolkit/source/controls/dialogcontrol.cxx
toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
toolkit/source/controls/grid/defaultgriddatamodel.cxx
toolkit/source/controls/grid/gridcontrol.cxx
toolkit/source/controls/grid/initguard.hxx
toolkit/source/controls/unocontrol.cxx
toolkit/source/controls/unocontrolcontainer.cxx
toolkit/source/controls/unocontrols.cxx
toolkit/source/helper/listenermultiplexer.cxx
toolkit/source/helper/property.cxx
toolkit/source/helper/registerservices.cxx
toolkit/source/helper/servicenames.cxx
toolkit/source/helper/throbberimpl.cxx
toolkit/source/helper/tkresmgr.cxx
tools/StaticLibrary_ooopathutils.mk
tools/bootstrp/addexes/makefile.mk
tools/bootstrp/addexes2/makefile.mk
tools/bootstrp/addexes2/mkfilt.cxx
tools/bootstrp/command.cxx
tools/bootstrp/cppdep.cxx
tools/bootstrp/iserver.cxx
tools/bootstrp/makefile.mk
tools/bootstrp/mkcreate.cxx
tools/bootstrp/prj.cxx
tools/bootstrp/rscdep.cxx
tools/bootstrp/sstring.cxx
tools/inc/bootstrp/command.hxx
tools/inc/bootstrp/mkcreate.hxx
tools/inc/bootstrp/prj.hxx
tools/inc/bootstrp/sstring.hxx
tools/inc/tools/agapi.hxx
tools/inc/tools/agitem.hxx
tools/inc/tools/chapi.hxx
tools/inc/tools/download.hxx
tools/inc/tools/eacopier.hxx
tools/inc/tools/fract.hxx
tools/inc/tools/fsys.hxx
tools/inc/tools/geninfo.hxx
tools/inc/tools/globname.hxx
tools/inc/tools/inetmime.hxx
tools/inc/tools/multisel.hxx
tools/inc/tools/poly.hxx
tools/inc/tools/postsys.h
tools/inc/tools/postwin.h
tools/inc/tools/presys.h
tools/inc/tools/prewin.h
tools/inc/tools/pstm.hxx
tools/inc/tools/ref.hxx
tools/inc/tools/simplerm.hxx
tools/inc/tools/solar.h
tools/inc/tools/table.hxx
tools/inc/tools/urlkeys.hxx
tools/inc/tools/urlobj.hxx
tools/prj/build.lst
tools/prj/d.lst
tools/qa/makefile.mk
tools/source/communi/geninfo.cxx
tools/source/debug/debug.cxx
tools/source/fsys/dirent.cxx
tools/source/fsys/tdir.cxx
tools/source/fsys/unx.cxx
tools/source/fsys/urlobj.cxx
tools/source/generic/color.cxx
tools/source/generic/config.cxx
tools/source/generic/fract.cxx
tools/source/inet/inetmime.cxx
tools/source/memtools/multisel.cxx
tools/source/memtools/table.cxx
tools/source/rc/resmgr.cxx
tools/source/ref/globname.cxx
tools/source/ref/pstm.cxx
tools/source/solar/solar.c
tools/source/stream/strmos2.cxx
tools/source/stream/strmunx.cxx
tools/source/stream/strmwnt.cxx
tools/source/string/makefile.mk
tools/source/testtoolloader/testtoolloader.cxx
tools/test/makefile.mk
tools/util/makefile.mk
tools/win/inc/dll.hxx
tools/win/inc/parser.hxx
tools/win/inc/shellex.h
tools/win/inc/shutil.h
tools/win/inc/toolsdll.hxx
tools/win/inc/winshell.hxx
tools/workben/makefile.mk
ucbhelper/source/client/proxydecider.cxx
ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
unotools/inc/unotools/unotunnelhelper.hxx
unotools/source/config/fltrcfg.cxx
unotools/source/config/lingucfg.cxx
unotools/source/config/misccfg.cxx
unotools/source/config/pathoptions.cxx
unotools/source/config/searchopt.cxx
unotools/source/i18n/localedatawrapper.cxx
unotools/source/ucbhelper/localfilehelper.cxx
unotools/source/ucbhelper/ucbhelper.cxx
unotools/source/ucbhelper/xtempfile.cxx
vcl/aqua/inc/salbmp.h
vcl/aqua/inc/salgdi.h
vcl/aqua/inc/salinst.h
vcl/aqua/source/app/salinst.cxx
vcl/aqua/source/gdi/aquaprintaccessoryview.mm
vcl/aqua/source/gdi/salgdi.cxx
vcl/aqua/source/gdi/salprn.cxx
vcl/aqua/source/window/salframeview.mm
vcl/aqua/source/window/salobj.cxx
vcl/inc/vcl/bitmap.hxx
vcl/inc/vcl/brdwin.hxx
vcl/inc/vcl/button.hxx
vcl/inc/vcl/cmdevt.hxx
vcl/inc/vcl/cvtgrf.hxx
vcl/inc/vcl/dialog.hxx
vcl/inc/vcl/dockwin.hxx
vcl/inc/vcl/event.hxx
vcl/inc/vcl/fixed.hxx
vcl/inc/vcl/fldunit.hxx
vcl/inc/vcl/floatwin.hxx
vcl/inc/vcl/gdimtf.hxx
vcl/inc/vcl/glyphcache.hxx
vcl/inc/vcl/graphite_adaptors.hxx
vcl/inc/vcl/graphite_features.hxx
vcl/inc/vcl/graphite_layout.hxx
vcl/inc/vcl/ilstbox.hxx
vcl/inc/vcl/image.h
vcl/inc/vcl/imgctrl.hxx
vcl/inc/vcl/impbmpconv.hxx
vcl/inc/vcl/impprn.hxx
vcl/inc/vcl/jobset.h
vcl/inc/vcl/keycodes.hxx
vcl/inc/vcl/lstbox.hxx
vcl/inc/vcl/mapunit.hxx
vcl/inc/vcl/menu.hxx
vcl/inc/vcl/msgbox.hxx
vcl/inc/vcl/outdev.hxx
vcl/inc/vcl/prndlg.hxx
vcl/inc/vcl/salatype.hxx
vcl/inc/vcl/salbmp.hxx
vcl/inc/vcl/salgdi.hxx
vcl/inc/vcl/salinst.hxx
vcl/inc/vcl/seleng.hxx
vcl/inc/vcl/settings.hxx
vcl/inc/vcl/smartid.hxx
vcl/inc/vcl/status.hxx
vcl/inc/vcl/strhelper.hxx
vcl/inc/vcl/svapp.hxx
vcl/inc/vcl/svdata.hxx
vcl/inc/vcl/syschild.hxx
vcl/inc/vcl/sysdata.hxx
vcl/inc/vcl/taskpanelist.hxx
vcl/inc/vcl/toolbox.hxx
vcl/inc/vcl/vclevent.hxx
vcl/inc/vcl/windata.hxx
vcl/inc/vcl/window.hxx
vcl/inc/vcl/wintypes.hxx
vcl/os2/source/app/salinst.cxx
vcl/os2/source/gdi/salgdi.cxx
vcl/os2/source/window/salmenu.cxx
vcl/os2/source/window/salobj.cxx
vcl/prj/build.lst
vcl/source/app/dbggui.cxx
vcl/source/app/help.cxx
vcl/source/app/idlemgr.cxx
vcl/source/app/settings.cxx
vcl/source/app/svapp.cxx
vcl/source/app/svdata.cxx
vcl/source/app/svmain.cxx
vcl/source/app/svmainhook.cxx
vcl/source/app/unohelp.cxx
vcl/source/app/vclevent.cxx
vcl/source/control/button.cxx
vcl/source/control/combobox.cxx
vcl/source/control/edit.cxx
vcl/source/control/field.cxx
vcl/source/control/fixed.cxx
vcl/source/control/ilstbox.cxx
vcl/source/control/imgctrl.cxx
vcl/source/control/makefile.mk
vcl/source/control/tabctrl.cxx
vcl/source/gdi/bitmap.cxx
vcl/source/gdi/bitmap2.cxx
vcl/source/gdi/bitmap4.cxx
vcl/source/gdi/bmpconv.cxx
vcl/source/gdi/cvtsvm.cxx
vcl/source/gdi/font.cxx
vcl/source/gdi/gdimtf.cxx
vcl/source/gdi/image.cxx
vcl/source/gdi/impimage.cxx
vcl/source/gdi/jobset.cxx
vcl/source/gdi/makefile.mk
vcl/source/gdi/metaact.cxx
vcl/source/gdi/outdev.cxx
vcl/source/gdi/outdev3.cxx
vcl/source/gdi/outdev4.cxx
vcl/source/gdi/outdevnative.cxx
vcl/source/gdi/pdfwriter.cxx
vcl/source/gdi/pdfwriter_impl.cxx
vcl/source/gdi/print3.cxx
vcl/source/gdi/salmisc.cxx
vcl/source/glyphs/gcach_ftyp.cxx
vcl/source/glyphs/gcach_ftyp.hxx
vcl/source/glyphs/glyphcache.cxx
vcl/source/glyphs/graphite_cache.cxx
vcl/source/glyphs/graphite_layout.cxx
vcl/source/glyphs/graphite_textsrc.hxx
vcl/source/helper/canvasbitmap.cxx
vcl/source/helper/smartid.cxx
vcl/source/helper/xconnection.cxx
vcl/source/src/btntext.src
vcl/source/src/images.src
vcl/source/src/print.src
vcl/source/window/accel.cxx
vcl/source/window/accmgr.cxx
vcl/source/window/brdwin.cxx
vcl/source/window/btndlg.cxx
vcl/source/window/dlgctrl.cxx
vcl/source/window/javachild.cxx
vcl/source/window/menu.cxx
vcl/source/window/msgbox.cxx
vcl/source/window/printdlg.cxx
vcl/source/window/status.cxx
vcl/source/window/syschild.cxx
vcl/source/window/toolbox.cxx
vcl/source/window/toolbox2.cxx
vcl/source/window/window.cxx
vcl/source/window/window2.cxx
vcl/source/window/wrkwin.cxx
vcl/unx/gtk/app/gtkdata.cxx
vcl/unx/gtk/app/gtkinst.cxx
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
vcl/unx/gtk/window/gtkframe.cxx
vcl/unx/gtk/window/gtkobject.cxx
vcl/unx/headless/svpbmp.hxx
vcl/unx/headless/svpgdi.cxx
vcl/unx/headless/svpgdi.hxx
vcl/unx/headless/svpinst.cxx
vcl/unx/headless/svpinst.hxx
vcl/unx/headless/svpprn.cxx
vcl/unx/headless/svpprn.hxx
vcl/unx/headless/svppspgraphics.cxx
vcl/unx/headless/svppspgraphics.hxx
vcl/unx/headless/svptext.cxx
vcl/unx/inc/dtint.hxx
vcl/unx/inc/plugins/gtk/gtkdata.hxx
vcl/unx/inc/pspgraphics.h
vcl/unx/inc/salbmp.h
vcl/unx/inc/saldata.hxx
vcl/unx/inc/saldisp.hxx
vcl/unx/inc/salgdi.h
vcl/unx/inc/salinst.h
vcl/unx/inc/xfont.hxx
vcl/unx/kde/kdedata.cxx
vcl/unx/kde4/KDESalGraphics.cxx
vcl/unx/source/app/keysymnames.cxx
vcl/unx/source/app/saldata.cxx
vcl/unx/source/app/saldisp.cxx
vcl/unx/source/app/salinst.cxx
vcl/unx/source/app/wmadaptor.cxx
vcl/unx/source/dtrans/X11_selection.cxx
vcl/unx/source/dtrans/X11_service.cxx
vcl/unx/source/gdi/makefile.mk
vcl/unx/source/gdi/pspgraphics.cxx
vcl/unx/source/gdi/salgdi.cxx
vcl/unx/source/gdi/salgdi3.cxx
vcl/unx/source/gdi/salprnpsp.cxx
vcl/unx/source/gdi/xfont.cxx
vcl/unx/source/gdi/xlfd_attr.cxx
vcl/unx/source/gdi/xlfd_attr.hxx
vcl/unx/source/gdi/xlfd_extd.cxx
vcl/unx/source/gdi/xlfd_extd.hxx
vcl/unx/source/gdi/xlfd_smpl.cxx
vcl/unx/source/gdi/xlfd_smpl.hxx
vcl/unx/source/printer/ppdparser.cxx
vcl/unx/source/printer/printerinfomanager.cxx
vcl/unx/source/window/salframe.cxx
vcl/unx/source/window/salmenu.cxx
vcl/unx/source/window/salobj.cxx
vcl/util/makefile2.pmk
vcl/win/inc/salbmp.h
vcl/win/inc/saldata.hxx
vcl/win/inc/salgdi.h
vcl/win/inc/salinst.h
vcl/win/source/app/saldata.cxx
vcl/win/source/app/salinst.cxx
vcl/win/source/gdi/salgdi.cxx
vcl/win/source/gdi/salgdi3.cxx
vcl/win/source/gdi/salprn.cxx
vcl/win/source/gdi/winlayout.cxx
vcl/win/source/window/salframe.cxx
vcl/win/source/window/salobj.cxx
vcl/workben/outdevgrind.cxx
vos/inc/vos/execabl.hxx
vos/inc/vos/macros.hxx
vos/inc/vos/pipe.hxx
vos/inc/vos/process.hxx
vos/inc/vos/refernce.hxx
vos/inc/vos/signal.hxx
vos/inc/vos/socket.hxx
vos/inc/vos/stream.hxx
vos/inc/vos/thread.hxx
vos/source/pipe.cxx
vos/source/process.cxx
vos/source/signal.cxx
vos/source/thread.cxx
vos/source/timer.cxx
2011-03-11 14:24:23 +01:00
|
|
|
|
aResStack[ i ]->bChildWithText = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
void ParserQueue::Push( const QueueEntry& aEntry ){
|
2010-07-29 10:56:19 +08:00
|
|
|
|
sal_uInt16 nLen = aEntry.sLine.Len();
|
2006-06-19 16:21:29 +00:00
|
|
|
|
|
2004-06-25 11:40:49 +00:00
|
|
|
|
if( !bStart ){
|
|
|
|
|
aQueueCur->push( aEntry );
|
|
|
|
|
if( nLen > 1 && aEntry.sLine.GetChar( nLen-1 ) == '\n' )
|
|
|
|
|
bStart = true;
|
|
|
|
|
else if ( aEntry.nTyp != IGNOREDTOKENS ){
|
|
|
|
|
if( nLen > 1 && ( aEntry.sLine.GetChar( nLen-1 ) == '\\') ){
|
|
|
|
|
// Next is Macro
|
|
|
|
|
bCurrentIsM = true;
|
|
|
|
|
}else{
|
|
|
|
|
// Next is no Macro
|
|
|
|
|
bCurrentIsM = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
aQueueNext->push( aEntry );
|
|
|
|
|
if( nLen > 1 && aEntry.sLine.GetChar( nLen-1 ) != '\n' ){
|
|
|
|
|
if( nLen > 1 && ( aEntry.sLine.GetChar( nLen-1 ) == '\\') ){
|
|
|
|
|
// Next is Macro
|
|
|
|
|
bNextIsM = true;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
// Next is no Macro
|
|
|
|
|
bNextIsM = false;
|
|
|
|
|
}
|
|
|
|
|
}else if( nLen > 2 && aEntry.sLine.GetChar( nLen-1 ) == '\n' ){
|
|
|
|
|
if( aEntry.nTyp != IGNOREDTOKENS ){
|
|
|
|
|
if( nLen > 2 && ( aEntry.sLine.GetChar( nLen-2 ) == '\\') ){
|
|
|
|
|
// Next is Macro
|
|
|
|
|
bNextIsM = true;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
// Next is no Macro
|
|
|
|
|
bNextIsM = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// Pop current
|
|
|
|
|
Pop( *aQueueCur );
|
|
|
|
|
bLastWasM = bCurrentIsM;
|
|
|
|
|
// next -> current
|
|
|
|
|
bCurrentIsM = bNextIsM;
|
|
|
|
|
aQref = aQueueCur;
|
|
|
|
|
aQueueCur = aQueueNext;
|
|
|
|
|
aQueueNext = aQref;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
// Pop current
|
|
|
|
|
Pop( *aQueueCur );
|
|
|
|
|
bLastWasM = bCurrentIsM;
|
|
|
|
|
// next -> current
|
|
|
|
|
bCurrentIsM = bNextIsM;
|
|
|
|
|
aQref = aQueueCur;
|
|
|
|
|
aQueueCur = aQueueNext;
|
|
|
|
|
aQueueNext = aQref;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ParserQueue::Close(){
|
|
|
|
|
// Pop current
|
|
|
|
|
Pop( *aQueueCur );
|
|
|
|
|
// next -> current
|
|
|
|
|
bLastWasM = bCurrentIsM;
|
|
|
|
|
bCurrentIsM = bNextIsM;
|
|
|
|
|
aQref = aQueueCur;
|
|
|
|
|
aQueueCur = aQueueNext;
|
|
|
|
|
aQueueNext = aQref;
|
|
|
|
|
bNextIsM = false;
|
|
|
|
|
Pop( *aQueueNext );
|
|
|
|
|
};
|
|
|
|
|
void ParserQueue::Pop( std::queue<QueueEntry>& aQueue ){
|
|
|
|
|
while( !aQueue.empty() ){
|
|
|
|
|
QueueEntry aEntry = aQueue.front();
|
|
|
|
|
aQueue.pop();
|
|
|
|
|
aExport.Execute( aEntry.nTyp , (char*) aEntry.sLine.GetBuffer() );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ParserQueue::ParserQueue( Export& aExportObj )
|
2006-06-19 16:21:29 +00:00
|
|
|
|
:
|
2004-06-25 11:40:49 +00:00
|
|
|
|
bCurrentIsM( false ),
|
|
|
|
|
bNextIsM( false ) ,
|
2006-06-19 16:21:29 +00:00
|
|
|
|
bLastWasM( false ),
|
2004-06-25 11:40:49 +00:00
|
|
|
|
bMflag( false ) ,
|
2006-06-19 16:21:29 +00:00
|
|
|
|
aExport( aExportObj ) ,
|
|
|
|
|
bStart( false ) ,
|
|
|
|
|
bStartNext( false )
|
|
|
|
|
{
|
2004-08-02 15:24:59 +00:00
|
|
|
|
aQueueNext = new std::queue<QueueEntry>;
|
|
|
|
|
aQueueCur = new std::queue<QueueEntry>;
|
2004-06-25 11:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ParserQueue::~ParserQueue(){
|
|
|
|
|
if( aQueueNext ) delete aQueueNext;
|
|
|
|
|
if( aQueueCur ) delete aQueueCur;
|
|
|
|
|
}
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|