tdf#39468: Translate German comments in core/rsc/inc
Change-Id: I5d878192bde816e59ef570731113b526e8098d85 Reviewed-on: https://gerrit.libreoffice.org/18065 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
This commit is contained in:
parent
76c7c225ff
commit
686c85f768
@ -49,16 +49,13 @@ struct RscArrayInst
|
|||||||
RscInstNode * pNode;
|
RscInstNode * pNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Der Baum wird ueber die Werte des Enums sortiert, nicht ueber
|
/* The tree is sorted against its enum value, not gainst its HashId */
|
||||||
seine HashId.
|
|
||||||
*/
|
|
||||||
class RscArray : public RscTop
|
class RscArray : public RscTop
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
RscEnum * pTypeClass; // Typ der Eintraege
|
RscEnum * pTypeClass; // type of entries
|
||||||
sal_uInt32 nSize; // Groesse der Instanzdaten dieser Klasse
|
sal_uInt32 nSize; // size of this class instance data with super class
|
||||||
// mit Superklassen
|
sal_uInt32 nOffInstData;// Offset of self instance data
|
||||||
sal_uInt32 nOffInstData;// Offset auf eigen Instanzdaten
|
|
||||||
void WriteSrcArray( const RSCINST & rInst, FILE * fOutput,
|
void WriteSrcArray( const RSCINST & rInst, FILE * fOutput,
|
||||||
RscTypCont * pTC, sal_uInt32 nTab, const char * );
|
RscTypCont * pTC, sal_uInt32 nTab, const char * );
|
||||||
public:
|
public:
|
||||||
@ -77,7 +74,7 @@ public:
|
|||||||
RscTop * pCreateClass,
|
RscTop * pCreateClass,
|
||||||
RSCINST * pGetInst ) SAL_OVERRIDE;
|
RSCINST * pGetInst ) SAL_OVERRIDE;
|
||||||
|
|
||||||
// Gibt die Groesse der Klasse in Bytes
|
// gives the size of the class in bytes
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
||||||
|
|
||||||
bool IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
|
bool IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
|
||||||
|
@ -33,19 +33,19 @@ protected:
|
|||||||
};
|
};
|
||||||
struct VARTYPE_STRUCT
|
struct VARTYPE_STRUCT
|
||||||
{
|
{
|
||||||
Atom nVarName; // Variablenname
|
Atom nVarName; // variable name
|
||||||
RSCVAR nVarType; // Variablentyp
|
RSCVAR nVarType; // variable type
|
||||||
sal_uInt32 nMask; // Maskierungsbit
|
sal_uInt32 nMask; // bit mask
|
||||||
sal_uInt32 nOffset; // Beginn der Instanzdaten
|
sal_uInt32 nOffset; // start of instance data
|
||||||
RscTop * pClass; // Klasse
|
RscTop * pClass; // class
|
||||||
CLASS_DATA pDefault; // Zeiger auf DefaultDaten
|
CLASS_DATA pDefault; // pointer to default data
|
||||||
Atom nDataBaseName;//Name fuer Fremddatenbereich
|
Atom nDataBaseName;//name of foreign data area
|
||||||
};
|
};
|
||||||
sal_uInt32 nSuperSize; // Groesse der Instanzdaten der SuperKl.
|
sal_uInt32 nSuperSize; // size of super class instance data
|
||||||
sal_uInt32 nSize; // Groesse der Instanzdaten dieser Klasse
|
sal_uInt32 nSize; // size of this class instance data
|
||||||
// mit Superklassen
|
// with super class
|
||||||
sal_uInt32 nEntries; // Eintraege in pVarTypeList
|
sal_uInt32 nEntries; // entries in pVarTypeList
|
||||||
VARTYPE_STRUCT * pVarTypeList; // Variablenliste
|
VARTYPE_STRUCT * pVarTypeList; // variable list
|
||||||
RSCINST GetInstData( CLASS_DATA pData, sal_uInt32 nEle,
|
RSCINST GetInstData( CLASS_DATA pData, sal_uInt32 nEle,
|
||||||
bool bGetCopy = false );
|
bool bGetCopy = false );
|
||||||
CLASS_DATA GetDfltData( sal_uInt32 nEle );
|
CLASS_DATA GetDfltData( sal_uInt32 nEle );
|
||||||
@ -73,7 +73,7 @@ public:
|
|||||||
RscTop * pCreateClass = NULL ) SAL_OVERRIDE;
|
RscTop * pCreateClass = NULL ) SAL_OVERRIDE;
|
||||||
RSCINST GetCopyVar( const RSCINST & rInst, Atom nVarName ) SAL_OVERRIDE;
|
RSCINST GetCopyVar( const RSCINST & rInst, Atom nVarName ) SAL_OVERRIDE;
|
||||||
|
|
||||||
// Gibt die Groesse der Klasse in Bytes
|
// gives the class size in bytes
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
||||||
|
|
||||||
bool IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
|
bool IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
|
||||||
|
@ -29,16 +29,16 @@ class RscConst : public RscTop
|
|||||||
protected:
|
protected:
|
||||||
struct VarEle
|
struct VarEle
|
||||||
{
|
{
|
||||||
Atom nId; // Name der Konstante
|
Atom nId; // constant name
|
||||||
sal_Int32 lValue; // Wert der Konstante
|
sal_Int32 lValue; // constant value
|
||||||
};
|
};
|
||||||
VarEle * pVarArray; // Zeiger auf das Feld mit Konstanten
|
VarEle * pVarArray; // pointer to the field with constant
|
||||||
sal_uInt32 nEntries; // Anzahle der Eintraege im Feld
|
sal_uInt32 nEntries; // number of entries in field
|
||||||
public:
|
public:
|
||||||
RscConst( Atom nId, sal_uInt32 nTypId );
|
RscConst( Atom nId, sal_uInt32 nTypId );
|
||||||
virtual ~RscConst();
|
virtual ~RscConst();
|
||||||
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
||||||
// Die erlaubten Werte werden gesetzt
|
// sets the allowed values
|
||||||
ERRTYPE SetConstant( Atom nVarName, sal_Int32 lValue );
|
ERRTYPE SetConstant( Atom nVarName, sal_Int32 lValue );
|
||||||
bool GetConstValue( Atom nConstId, sal_Int32 * pVal ) const;
|
bool GetConstValue( Atom nConstId, sal_Int32 * pVal ) const;
|
||||||
bool GetValueConst( sal_Int32 nValue, Atom * pConstId ) const;
|
bool GetValueConst( sal_Int32 nValue, Atom * pConstId ) const;
|
||||||
@ -49,8 +49,8 @@ class RscEnum : public RscConst
|
|||||||
{
|
{
|
||||||
struct RscEnumInst
|
struct RscEnumInst
|
||||||
{
|
{
|
||||||
sal_uInt32 nValue; // Position der Konstanten im Array
|
sal_uInt32 nValue; // constant position in the array
|
||||||
bool bDflt; // Ist Default
|
bool bDflt; // is default
|
||||||
};
|
};
|
||||||
sal_uInt32 nSize;
|
sal_uInt32 nSize;
|
||||||
public:
|
public:
|
||||||
@ -66,7 +66,7 @@ public:
|
|||||||
{
|
{
|
||||||
return reinterpret_cast<RscEnumInst*>(rInst.pData)->bDflt;
|
return reinterpret_cast<RscEnumInst*>(rInst.pData)->bDflt;
|
||||||
};
|
};
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
||||||
|
|
||||||
ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
|
ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
|
||||||
|
@ -40,12 +40,11 @@ struct RscBaseContInst
|
|||||||
class RscBaseCont : public RscTop
|
class RscBaseCont : public RscTop
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
RscTop * pTypeClass; // Typ der Eintraege
|
RscTop * pTypeClass; // type of entries
|
||||||
RscTop * pTypeClass1;// Zwei verschiedene Typen moeglich
|
RscTop * pTypeClass1;// two different types may exist
|
||||||
bool bNoId; // Keine Identifier
|
bool bNoId; // whether there is no identifier
|
||||||
sal_uInt32 nSize; // Groesse der Instanzdaten dieser Klasse
|
sal_uInt32 nSize; // size of this class and super classes instance data
|
||||||
// mit Superklassen
|
sal_uInt32 nOffInstData;// offset of own instance data
|
||||||
sal_uInt32 nOffInstData;// Offset auf eigen Instanzdaten
|
|
||||||
static void DestroyElements( RscBaseContInst * pClassData );
|
static void DestroyElements( RscBaseContInst * pClassData );
|
||||||
RSCINST SearchElePos( const RSCINST & rInst, const RscId & rEleName,
|
RSCINST SearchElePos( const RSCINST & rInst, const RscId & rEleName,
|
||||||
RscTop * pClass, sal_uInt32 nPos );
|
RscTop * pClass, sal_uInt32 nPos );
|
||||||
@ -86,7 +85,7 @@ public:
|
|||||||
sal_Int32 nValue ) SAL_OVERRIDE;
|
sal_Int32 nValue ) SAL_OVERRIDE;
|
||||||
ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId ) SAL_OVERRIDE;
|
ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId ) SAL_OVERRIDE;
|
||||||
|
|
||||||
// Gibt die Groesse der Klasse in Bytes
|
// returns the class size in bytes
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
||||||
|
|
||||||
bool IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
|
bool IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
|
||||||
|
@ -53,7 +53,7 @@ struct WriteRcContext
|
|||||||
RscCmdLine* pCmdLine;
|
RscCmdLine* pCmdLine;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Tabelle fuer Systemabhaengige Resourcen
|
// table for system dependent resources
|
||||||
struct RscSysEntry
|
struct RscSysEntry
|
||||||
{
|
{
|
||||||
sal_uInt32 nKey;
|
sal_uInt32 nKey;
|
||||||
@ -66,25 +66,25 @@ struct RscSysEntry
|
|||||||
class RscTypCont
|
class RscTypCont
|
||||||
{
|
{
|
||||||
rtl_TextEncoding nSourceCharSet;
|
rtl_TextEncoding nSourceCharSet;
|
||||||
sal_uInt32 nMachineId; // Globaler Maschinentyp
|
sal_uInt32 nMachineId; // global machine type
|
||||||
RSCBYTEORDER_TYPE nByteOrder; // Intel oder
|
RSCBYTEORDER_TYPE nByteOrder; // Intel oder
|
||||||
OString aLanguage; // output language
|
OString aLanguage; // output language
|
||||||
std::vector< sal_uInt32 > aLangFallbacks; // language fallback list (entry 0 is language itself)
|
std::vector< sal_uInt32 > aLangFallbacks; // language fallback list (entry 0 is language itself)
|
||||||
OString aSearchPath; // Suchen der Bitmap, Icon, Pointer
|
OString aSearchPath; // search path for bitmap, icon and pointer
|
||||||
OString aSysSearchPath; // aSearchPath plus language specific paths
|
OString aSysSearchPath; // aSearchPath plus language specific paths
|
||||||
sal_uInt32 nUniqueId; // eindeutiger Id fuer Systemresourcen
|
sal_uInt32 nUniqueId; // unique id for system resources
|
||||||
sal_uLong nFilePos; // Position in der Datei ( MTF )
|
sal_uLong nFilePos; // position in file (MTF)
|
||||||
sal_uInt32 nPMId; // eindeutiger Id fuer PM-Rseourcefile
|
sal_uInt32 nPMId; // unique id for PR-resource file
|
||||||
// muss groesser als RSC_VERSIONCONTROL_ID sein
|
// must be greater that RSC_VERSIONCONTROL_ID
|
||||||
RscTop * pRoot; // Zeiger auf die Wurzel vom Typenbaum
|
RscTop * pRoot; // pointer to the root of type tree
|
||||||
RSCINST aVersion; // Versionskontrollinstanz
|
RSCINST aVersion; // version control instance
|
||||||
|
|
||||||
::std::vector< RscTop* >
|
::std::vector< RscTop* >
|
||||||
aBaseLst; // Liste der einfachen Resourceklasse
|
aBaseLst; // list of simple resource class
|
||||||
::std::vector< RscSysEntry* >
|
::std::vector< RscSysEntry* >
|
||||||
aSysLst; // Liste der Systemresourcen
|
aSysLst; // list of system resources
|
||||||
|
|
||||||
Atom nWinBitVarId; // Name der Winbitvariablen
|
Atom nWinBitVarId; // name of the winbit variable
|
||||||
Atom nBorderId;
|
Atom nBorderId;
|
||||||
Atom nHideId;
|
Atom nHideId;
|
||||||
Atom nClipChildrenId;
|
Atom nClipChildrenId;
|
||||||
@ -141,7 +141,7 @@ class RscTypCont
|
|||||||
Atom nVertId;
|
Atom nVertId;
|
||||||
Atom nSysWinId;
|
Atom nSysWinId;
|
||||||
|
|
||||||
void Init(); // Initialisiert Klassen und Tabelle
|
void Init(); // initializes classes and tables
|
||||||
void SETCONST( RscConst *, const char *, sal_uInt32 );
|
void SETCONST( RscConst *, const char *, sal_uInt32 );
|
||||||
void SETCONST( RscConst *, Atom, sal_uInt32 );
|
void SETCONST( RscConst *, Atom, sal_uInt32 );
|
||||||
inline void SETCONST( RscConst *p1, const char * p2, SymbolType p3 ) { SETCONST(p1, p2, static_cast<sal_uInt32>(p3)); }
|
inline void SETCONST( RscConst *p1, const char * p2, SymbolType p3 ) { SETCONST(p1, p2, static_cast<sal_uInt32>(p3)); }
|
||||||
@ -246,12 +246,11 @@ public:
|
|||||||
|
|
||||||
Atom nAcceleratorType;
|
Atom nAcceleratorType;
|
||||||
|
|
||||||
RscError* pEH; // Fehlerhandler
|
RscError* pEH; // error handler
|
||||||
RscNameTable aNmTb; // Tabelle fuer Namen
|
RscNameTable aNmTb; // name table
|
||||||
RscFileTab aFileTab; // Tabelle der Dateinamen
|
RscFileTab aFileTab; // fila name table
|
||||||
sal_uInt32 nFlags;
|
sal_uInt32 nFlags;
|
||||||
std::map<sal_uInt64, sal_uLong> aIdTranslator; //Ordnet Resourcetypen und Id's einen Id zu
|
std::map<sal_uInt64, sal_uLong> aIdTranslator; // map resources types and ids to an id (under PM9 or to a file position (MTF)
|
||||||
//(unter PM), oder eine Dateiposition (MTF)
|
|
||||||
|
|
||||||
RscTypCont( RscError *, RSCBYTEORDER_TYPE, const OString& rSearchPath, sal_uInt32 nFlags );
|
RscTypCont( RscError *, RSCBYTEORDER_TYPE, const OString& rSearchPath, sal_uInt32 nFlags );
|
||||||
~RscTypCont();
|
~RscTypCont();
|
||||||
@ -278,7 +277,7 @@ public:
|
|||||||
aBaseLst.push_back( pType );
|
aBaseLst.push_back( pType );
|
||||||
}
|
}
|
||||||
RscTop * SearchType( Atom nTypId );
|
RscTop * SearchType( Atom nTypId );
|
||||||
// loescht alle Resourceobjekte diese Datei
|
// deletes all resource objects of this file
|
||||||
void Delete( sal_uLong lFileKey );
|
void Delete( sal_uLong lFileKey );
|
||||||
RscTop * GetRoot() { return pRoot; }
|
RscTop * GetRoot() { return pRoot; }
|
||||||
sal_uInt32 PutSysName( sal_uInt32 nRscTyp, char * pName, sal_uInt32 nConst,
|
sal_uInt32 PutSysName( sal_uInt32 nRscTyp, char * pName, sal_uInt32 nConst,
|
||||||
|
@ -75,9 +75,9 @@ public:
|
|||||||
/*********** R s c I d ***************************************************/
|
/*********** R s c I d ***************************************************/
|
||||||
class RscId
|
class RscId
|
||||||
{
|
{
|
||||||
static bool bNames;// false, bei den Namenoperation nur Zahlen
|
static bool bNames;// if false, only count name operation
|
||||||
public:
|
public:
|
||||||
RscExpType aExp; // Zahl, Define oder Ausdruck
|
RscExpType aExp; // number, define or expression
|
||||||
sal_Int32 GetNumber() const;
|
sal_Int32 GetNumber() const;
|
||||||
void Create( const RscExpType & rExpType );
|
void Create( const RscExpType & rExpType );
|
||||||
void Create(){ aExp.cType = RSCEXP_NOTHING; }
|
void Create(){ aExp.cType = RSCEXP_NOTHING; }
|
||||||
@ -103,8 +103,8 @@ public:
|
|||||||
RscId& operator = ( const RscId& rRscId );
|
RscId& operator = ( const RscId& rRscId );
|
||||||
|
|
||||||
static void SetNames( bool bSet = true );
|
static void SetNames( bool bSet = true );
|
||||||
operator sal_Int32() const; // Gibt Nummer zurueck
|
operator sal_Int32() const; // returns the number
|
||||||
OString GetName() const; // Gibt den Namen des Defines zurueck
|
OString GetName() const; // returns the define
|
||||||
bool operator < ( const RscId& rRscId ) const;
|
bool operator < ( const RscId& rRscId ) const;
|
||||||
bool operator > ( const RscId& rRscId ) const;
|
bool operator > ( const RscId& rRscId ) const;
|
||||||
bool operator == ( const RscId& rRscId ) const;
|
bool operator == ( const RscId& rRscId ) const;
|
||||||
@ -123,10 +123,10 @@ friend class RscDefineList;
|
|||||||
friend class RscDefTree;
|
friend class RscDefTree;
|
||||||
friend class RscExpression;
|
friend class RscExpression;
|
||||||
friend class RscId;
|
friend class RscId;
|
||||||
sal_uLong lFileKey; // zu welcher Datei gehoert das Define
|
sal_uLong lFileKey; // file the define belongs to
|
||||||
sal_uInt32 nRefCount; // Wieviele Referenzen auf dieses Objekt
|
sal_uInt32 nRefCount; // reference count to this object
|
||||||
sal_Int32 lId; // Identifier
|
sal_Int32 lId; // identifier
|
||||||
RscExpression * pExp; // Ausdruck
|
RscExpression * pExp; // expression
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
RscDefine( sal_uLong lFileKey, const OString& rDefName,
|
RscDefine( sal_uLong lFileKey, const OString& rDefName,
|
||||||
@ -156,7 +156,7 @@ friend class RscFile;
|
|||||||
friend class RscFileTab;
|
friend class RscFileTab;
|
||||||
private:
|
private:
|
||||||
RscSubDefList maList;
|
RscSubDefList maList;
|
||||||
// pExpression wird auf jedenfall Eigentum der Liste
|
// pExpression always belongs to the list
|
||||||
RscDefine * New( sal_uLong lFileKey, const OString& rDefName,
|
RscDefine * New( sal_uLong lFileKey, const OString& rDefName,
|
||||||
sal_Int32 lDefId, size_t lPos );
|
sal_Int32 lDefId, size_t lPos );
|
||||||
RscDefine * New( sal_uLong lFileKey, const OString& rDefName,
|
RscDefine * New( sal_uLong lFileKey, const OString& rDefName,
|
||||||
@ -199,19 +199,19 @@ public:
|
|||||||
|
|
||||||
typedef ::std::vector< RscDepend* > RscDependList;
|
typedef ::std::vector< RscDepend* > RscDependList;
|
||||||
|
|
||||||
// Tabelle die alle Dateinamen enthaelt
|
// table containing al file names
|
||||||
class RscFile
|
class RscFile
|
||||||
{
|
{
|
||||||
friend class RscFileTab;
|
friend class RscFileTab;
|
||||||
bool bIncFile; // Ist es eine Include-Datei
|
bool bIncFile; // whether it is an include file
|
||||||
public:
|
public:
|
||||||
bool bLoaded; // Ist die Datei geladen
|
bool bLoaded; // whether the file is loaded
|
||||||
bool bScanned; // Wurde Datei nach Inclide abgesucht
|
bool bScanned; // whether the file searches for include
|
||||||
bool bDirty; // Dirty-Flag
|
bool bDirty; // dirty-flag
|
||||||
OString aFileName; // Name der Datei
|
OString aFileName; // file name
|
||||||
OString aPathName; // Pfad und Name der Datei
|
OString aPathName; // file path and name
|
||||||
RscDefineList aDefLst; // Liste der Defines
|
RscDefineList aDefLst; // list of defines
|
||||||
RscDependList aDepLst; // List of Depend
|
RscDependList aDepLst; // list of depend
|
||||||
|
|
||||||
RscFile();
|
RscFile();
|
||||||
~RscFile();
|
~RscFile();
|
||||||
@ -261,7 +261,7 @@ public:
|
|||||||
RscDefine * NewDef( sal_uLong lKey, const OString& rDefName,
|
RscDefine * NewDef( sal_uLong lKey, const OString& rDefName,
|
||||||
RscExpression *, sal_uLong lPos );
|
RscExpression *, sal_uLong lPos );
|
||||||
|
|
||||||
// Alle Defines die in dieser Datei Definiert sind loeschen
|
// deletes all defines defined in this file
|
||||||
void DeleteFileContext( sal_uLong lKey );
|
void DeleteFileContext( sal_uLong lKey );
|
||||||
sal_uLong NewCodeFile(const OString& rName);
|
sal_uLong NewCodeFile(const OString& rName);
|
||||||
sal_uLong NewIncFile(const OString& rName, const OString& rPath);
|
sal_uLong NewIncFile(const OString& rName, const OString& rPath);
|
||||||
|
@ -44,10 +44,10 @@ public:
|
|||||||
bool IsDefault( const RSCINST & rInst ) SAL_OVERRIDE;
|
bool IsDefault( const RSCINST & rInst ) SAL_OVERRIDE;
|
||||||
bool IsDefault( const RSCINST & rInst, Atom nConstId );
|
bool IsDefault( const RSCINST & rInst, Atom nConstId );
|
||||||
|
|
||||||
// Ist das Flag gesetzt
|
// whether the flag is set
|
||||||
bool IsSet( const RSCINST & rInst, Atom nConstId );
|
bool IsSet( const RSCINST & rInst, Atom nConstId );
|
||||||
|
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef,
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef,
|
||||||
Atom nConstId );
|
Atom nConstId );
|
||||||
@ -64,8 +64,8 @@ public:
|
|||||||
/******************* R s c C l i e n t ***********************************/
|
/******************* R s c C l i e n t ***********************************/
|
||||||
class RscClient : public RscTop
|
class RscClient : public RscTop
|
||||||
{
|
{
|
||||||
RscFlag * pRefClass; //Klasse die als Server benutzt wird
|
RscFlag * pRefClass; // class which is used as server
|
||||||
Atom nConstId; //Id des zu setzenden Wertes
|
Atom nConstId; // id of the value to set
|
||||||
public:
|
public:
|
||||||
RscClient( Atom nId, sal_uInt32 nTypId, RscFlag * pClass,
|
RscClient( Atom nId, sal_uInt32 nTypId, RscFlag * pClass,
|
||||||
Atom nConstantId );
|
Atom nConstantId );
|
||||||
@ -73,11 +73,11 @@ public:
|
|||||||
RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, bool ) SAL_OVERRIDE;
|
RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, bool ) SAL_OVERRIDE;
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return pRefClass->Size(); }
|
sal_uInt32 Size() SAL_OVERRIDE { return pRefClass->Size(); }
|
||||||
|
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
bool IsDefault( const RSCINST & rInst ) SAL_OVERRIDE {
|
bool IsDefault( const RSCINST & rInst ) SAL_OVERRIDE {
|
||||||
return pRefClass->IsDefault( rInst, nConstId );
|
return pRefClass->IsDefault( rInst, nConstId );
|
||||||
};
|
};
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE
|
||||||
{
|
{
|
||||||
return pRefClass->IsValueDefault( rInst,
|
return pRefClass->IsValueDefault( rInst,
|
||||||
|
@ -33,8 +33,8 @@ typedef struct
|
|||||||
|
|
||||||
class RscNameTable
|
class RscNameTable
|
||||||
{
|
{
|
||||||
bool bSort; //soll bei jedem einfuegen sortiert werden?
|
bool bSort; // whether it must be sorted for each insertion
|
||||||
sal_uInt32 nEntries; //Anzahl der Eintr"age
|
sal_uInt32 nEntries; // number of entries
|
||||||
KEY_STRUCT * pTable;
|
KEY_STRUCT * pTable;
|
||||||
public:
|
public:
|
||||||
RscNameTable();
|
RscNameTable();
|
||||||
@ -45,7 +45,7 @@ public:
|
|||||||
Atom Put( const char * pName, sal_uInt32 nTyp );
|
Atom Put( const char * pName, sal_uInt32 nTyp );
|
||||||
Atom Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
|
Atom Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
|
||||||
|
|
||||||
// true, wurde gefunden
|
// if true, it was found
|
||||||
bool Get( Atom nName, KEY_STRUCT * pEle );
|
bool Get( Atom nName, KEY_STRUCT * pEle );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,21 +29,21 @@ class RscRange : public RscTop
|
|||||||
protected:
|
protected:
|
||||||
struct RscRangeInst
|
struct RscRangeInst
|
||||||
{
|
{
|
||||||
sal_uInt16 nValue; // nValue = Ausgangswert - nMin
|
sal_uInt16 nValue; // nValue = output value - nMin
|
||||||
bool bDflt; // Ist Default
|
bool bDflt; // is default
|
||||||
};
|
};
|
||||||
sal_Int32 nMin; // Minimum des Bereiches
|
sal_Int32 nMin; // range minimum value
|
||||||
sal_Int32 nMax; // Maximum des Bereiches
|
sal_Int32 nMax; // range maximum value
|
||||||
sal_uInt32 nSize;
|
sal_uInt32 nSize;
|
||||||
public:
|
public:
|
||||||
RscRange( Atom nId, sal_uInt32 nTypId );
|
RscRange( Atom nId, sal_uInt32 nTypId );
|
||||||
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
||||||
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
|
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
|
||||||
// Der zulaessige Bereich wird gesetzt
|
// sets the allowed range
|
||||||
ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
|
ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
|
||||||
// Gibt die Groesse der Klasse in Bytes
|
// returns the class size in bytes
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
virtual void SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
|
virtual void SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
|
||||||
{
|
{
|
||||||
reinterpret_cast<RscRangeInst*>(rInst.pData)->bDflt = true;
|
reinterpret_cast<RscRangeInst*>(rInst.pData)->bDflt = true;
|
||||||
@ -52,7 +52,7 @@ public:
|
|||||||
{
|
{
|
||||||
return reinterpret_cast<RscRangeInst*>(rInst.pData)->bDflt;
|
return reinterpret_cast<RscRangeInst*>(rInst.pData)->bDflt;
|
||||||
};
|
};
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
||||||
ERRTYPE SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
|
ERRTYPE SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
|
||||||
ERRTYPE GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
|
ERRTYPE GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
|
||||||
@ -67,21 +67,21 @@ class RscLongRange : public RscTop
|
|||||||
protected:
|
protected:
|
||||||
struct RscLongRangeInst
|
struct RscLongRangeInst
|
||||||
{
|
{
|
||||||
sal_Int32 nValue; // nValue = Ausgangswert - nMin
|
sal_Int32 nValue; // nValue = output value - nMin
|
||||||
bool bDflt; // Ist Default
|
bool bDflt; // is default
|
||||||
};
|
};
|
||||||
sal_Int32 nMin; // Minimum des Bereiches
|
sal_Int32 nMin; // range minimum value
|
||||||
sal_Int32 nMax; // Maximum des Bereiches
|
sal_Int32 nMax; // range maximum value
|
||||||
sal_uInt32 nSize;
|
sal_uInt32 nSize;
|
||||||
public:
|
public:
|
||||||
RscLongRange( Atom nId, sal_uInt32 nTypId );
|
RscLongRange( Atom nId, sal_uInt32 nTypId );
|
||||||
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
||||||
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
|
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
|
||||||
// Der zulaessige Bereich wird gesetzt
|
// sets the alloed range
|
||||||
ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
|
ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
|
||||||
// Gibt die Groesse der Klasse in Bytes
|
// returns the class size in bytes
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
virtual void SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
|
virtual void SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
|
||||||
{
|
{
|
||||||
reinterpret_cast<RscLongRangeInst*>(rInst.pData)->bDflt = true;
|
reinterpret_cast<RscLongRangeInst*>(rInst.pData)->bDflt = true;
|
||||||
@ -90,7 +90,7 @@ public:
|
|||||||
{
|
{
|
||||||
return reinterpret_cast<RscLongRangeInst*>(rInst.pData)->bDflt;
|
return reinterpret_cast<RscLongRangeInst*>(rInst.pData)->bDflt;
|
||||||
};
|
};
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
||||||
ERRTYPE SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
|
ERRTYPE SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
|
||||||
ERRTYPE GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
|
ERRTYPE GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
|
||||||
@ -114,12 +114,12 @@ class RscIdRange : public RscTop
|
|||||||
{
|
{
|
||||||
sal_uInt32 nSize;
|
sal_uInt32 nSize;
|
||||||
protected:
|
protected:
|
||||||
sal_Int32 nMin; // Minimum des Bereiches
|
sal_Int32 nMin; // range minimum value
|
||||||
sal_Int32 nMax; // Maximum des Bereiches
|
sal_Int32 nMax; // range maximum value
|
||||||
public:
|
public:
|
||||||
RscIdRange( Atom nId, sal_uInt32 nTypId );
|
RscIdRange( Atom nId, sal_uInt32 nTypId );
|
||||||
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE;
|
||||||
// Der zulaessige Bereich wird gesetzt
|
// sets the allowed range
|
||||||
ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
|
ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
|
||||||
{
|
{
|
||||||
nMin = nMinimum;
|
nMin = nMinimum;
|
||||||
@ -135,10 +135,10 @@ public:
|
|||||||
}
|
}
|
||||||
bool IsDefault( const RSCINST & rInst) SAL_OVERRIDE
|
bool IsDefault( const RSCINST & rInst) SAL_OVERRIDE
|
||||||
{
|
{
|
||||||
//cUnused wird fuer Defaultkennung verwendet
|
//cUnused is used as default identifier
|
||||||
return reinterpret_cast<RscId*>(rInst.pData)->aExp.cUnused;
|
return reinterpret_cast<RscId*>(rInst.pData)->aExp.cUnused;
|
||||||
}
|
}
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
||||||
ERRTYPE SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
|
ERRTYPE SetNumber( const RSCINST &, sal_Int32 ) SAL_OVERRIDE;
|
||||||
ERRTYPE GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
|
ERRTYPE GetNumber( const RSCINST &, sal_Int32 * ) SAL_OVERRIDE;
|
||||||
|
@ -35,11 +35,11 @@ class RscCmdLine
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
RscStrList aInputList; // Liste der Quelldateien
|
RscStrList aInputList; // source file list
|
||||||
OString aPath; // Liste der Pfade
|
OString aPath; // path list
|
||||||
RSCBYTEORDER_TYPE nByteOrder;
|
RSCBYTEORDER_TYPE nByteOrder;
|
||||||
unsigned short nCommands; // Steuerbits
|
unsigned short nCommands; // command bits
|
||||||
OString aOutputSrs; // Name der Srs-Ausgabedatei
|
OString aOutputSrs; // Srs output file name
|
||||||
OString aILDir;
|
OString aILDir;
|
||||||
|
|
||||||
struct OutputFile
|
struct OutputFile
|
||||||
@ -78,17 +78,17 @@ private:
|
|||||||
const OUString& rSrsOutPath );
|
const OUString& rSrsOutPath );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RscTypCont* pTC; // String und Id-Verwalter
|
RscTypCont* pTC; // string and id manager
|
||||||
RscCmdLine* pCL; // Kommandozeile
|
RscCmdLine* pCL; // command line
|
||||||
FILE * fListing; // Ausgabedatei fuer Listings
|
FILE * fListing; // output file for listings
|
||||||
FILE * fExitFile; // bei Abbruch muss diese Datei geschlossen werden
|
FILE * fExitFile; // when deconstructed, this file must be deleted
|
||||||
|
|
||||||
RscCompiler( RscCmdLine *, RscTypCont * );
|
RscCompiler( RscCmdLine *, RscTypCont * );
|
||||||
~RscCompiler();
|
~RscCompiler();
|
||||||
|
|
||||||
ERRTYPE Start();
|
ERRTYPE Start();
|
||||||
|
|
||||||
// Include Statements lesen
|
// read include statements
|
||||||
ERRTYPE IncludeParser( sal_uLong lFileKey );
|
ERRTYPE IncludeParser( sal_uLong lFileKey );
|
||||||
ERRTYPE ParseOneFile( sal_uLong lFileKey, const RscCmdLine::OutputFile* pOutputFile, const WriteRcContext* pContext );
|
ERRTYPE ParseOneFile( sal_uLong lFileKey, const RscCmdLine::OutputFile* pOutputFile, const WriteRcContext* pContext );
|
||||||
ERRTYPE Link();
|
ERRTYPE Link();
|
||||||
|
@ -29,9 +29,9 @@ class RscString : public RscTop
|
|||||||
RscTop * pRefClass;
|
RscTop * pRefClass;
|
||||||
struct RscStringInst
|
struct RscStringInst
|
||||||
{
|
{
|
||||||
char * pStr; // Zeiger auf String
|
char * pStr; // pointer to string
|
||||||
bool bDflt; // Ist Default
|
bool bDflt; // is default
|
||||||
RscId aRefId; // ReferenzName
|
RscId aRefId; // reference name
|
||||||
};
|
};
|
||||||
sal_uInt32 nSize;
|
sal_uInt32 nSize;
|
||||||
public:
|
public:
|
||||||
@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
void SetRefClass( RscTop * pClass ) { pRefClass = pClass; }
|
void SetRefClass( RscTop * pClass ) { pRefClass = pClass; }
|
||||||
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
|
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE;
|
||||||
// Der zulaessige Bereich wird gesetzt
|
// sets the allowed range
|
||||||
void Destroy( const RSCINST & rInst ) SAL_OVERRIDE;
|
void Destroy( const RSCINST & rInst ) SAL_OVERRIDE;
|
||||||
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
sal_uInt32 Size() SAL_OVERRIDE { return nSize; }
|
||||||
void SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
|
void SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE
|
||||||
@ -51,7 +51,7 @@ public:
|
|||||||
{
|
{
|
||||||
return reinterpret_cast<RscStringInst*>(rInst.pData)->bDflt;
|
return reinterpret_cast<RscStringInst*>(rInst.pData)->bDflt;
|
||||||
}
|
}
|
||||||
// Als Default setzen
|
// sets as default
|
||||||
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
|
||||||
ERRTYPE SetString( const RSCINST &, const char * pStr ) SAL_OVERRIDE;
|
ERRTYPE SetString( const RSCINST &, const char * pStr ) SAL_OVERRIDE;
|
||||||
ERRTYPE GetString( const RSCINST &, char ** ppStr ) SAL_OVERRIDE;
|
ERRTYPE GetString( const RSCINST &, char ** ppStr ) SAL_OVERRIDE;
|
||||||
|
@ -31,7 +31,7 @@ typedef sal_uInt32 RSCVAR;
|
|||||||
#define VAR_NORC 0x0008
|
#define VAR_NORC 0x0008
|
||||||
#define VAR_SVDYNAMIC 0x0010
|
#define VAR_SVDYNAMIC 0x0010
|
||||||
#define VAR_NOENUM 0x0020
|
#define VAR_NOENUM 0x0020
|
||||||
#define VAR_EXTENDABLE 0x0040 /* Auch die Ableitung einer Klasse kann angegeben werden */
|
#define VAR_EXTENDABLE 0x0040 /* class derivation can all be given */
|
||||||
|
|
||||||
class RscTop : public RefNode
|
class RscTop : public RefNode
|
||||||
{
|
{
|
||||||
@ -45,16 +45,16 @@ protected:
|
|||||||
RscTop * pSuperCl = NULL );
|
RscTop * pSuperCl = NULL );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OString aCallPar1; // Klassenaufruf ohne Typen bis ResId
|
OString aCallPar1; // class call without types until ResId
|
||||||
OString aCallPar2; // Klassenaufruf ohne Typen ab ResId
|
OString aCallPar2; // class call without types staring at ResId
|
||||||
OString aCallParType; // Klassenaufruf mit Typen
|
OString aCallParType; // class call with types
|
||||||
|
|
||||||
RscTop* GetSuperClass() const
|
RscTop* GetSuperClass() const
|
||||||
{ return pSuperClass; }
|
{ return pSuperClass; }
|
||||||
// Gibt den Typidentifier zurueck
|
// returns the type identifier
|
||||||
sal_uInt32 GetTypId() const
|
sal_uInt32 GetTypId() const
|
||||||
{ return nTypId; };
|
{ return nTypId; };
|
||||||
// Gibt die Oberklasse zurueck
|
// returns the super class
|
||||||
bool InHierarchy( RscTop * pClass );
|
bool InHierarchy( RscTop * pClass );
|
||||||
void SetCallPar( const OString& rPar1, const OString& rPar2,
|
void SetCallPar( const OString& rPar1, const OString& rPar2,
|
||||||
const OString& rParType );
|
const OString& rParType );
|
||||||
@ -62,34 +62,34 @@ public:
|
|||||||
virtual RSCCLASS_TYPE GetClassType() const = 0;
|
virtual RSCCLASS_TYPE GetClassType() const = 0;
|
||||||
RSCINST GetDefault();
|
RSCINST GetDefault();
|
||||||
|
|
||||||
// Vorbereitung auf den dtor aufruf
|
// preparation fro the destructor call
|
||||||
// Da die Klassen gegenseitige Abhaengigkeiten
|
// given that classes can have mutual dependencies,
|
||||||
// aufweisen koennen, kann man im dtor nicht davon
|
// we cannot assume in destructor that all class pointer
|
||||||
// ausgehen, dass alle Klassenzeiger noch gueltig sind
|
// are still valid
|
||||||
virtual void Pre_dtor();
|
virtual void Pre_dtor();
|
||||||
|
|
||||||
virtual RscTop* GetTypeClass() const;
|
virtual RscTop* GetTypeClass() const;
|
||||||
|
|
||||||
// Gibt die Groesse der Klasse in Bytes
|
// returns the class size in bytes
|
||||||
virtual sal_uInt32 Size();
|
virtual sal_uInt32 Size();
|
||||||
|
|
||||||
// Gibt die Referenz zurueck
|
// returns the reference
|
||||||
virtual ERRTYPE GetRef( const RSCINST & rInst, RscId * );
|
virtual ERRTYPE GetRef( const RSCINST & rInst, RscId * );
|
||||||
|
|
||||||
// Gibt die Referenz zurueck
|
// sets the reference
|
||||||
virtual ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId );
|
virtual ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId );
|
||||||
|
|
||||||
// Variable anlegen
|
// sets the variable
|
||||||
virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
|
virtual ERRTYPE SetVariable( Atom nVarName, RscTop * pClass,
|
||||||
RSCINST * pDflt = NULL,
|
RSCINST * pDflt = NULL,
|
||||||
RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
|
RSCVAR nVarType = 0, sal_uInt32 nMask = 0,
|
||||||
Atom nDataBaseName = InvalidAtom );
|
Atom nDataBaseName = InvalidAtom );
|
||||||
|
|
||||||
// Zaehlt alle Variablen auf
|
// enumerate all variables
|
||||||
virtual void EnumVariables( void * pData, VarEnumCallbackProc );
|
virtual void EnumVariables( void * pData, VarEnumCallbackProc );
|
||||||
|
|
||||||
// Liefert Instanz der Variablen zurueck
|
// returns variable instance
|
||||||
// pData, pClass im return koennen NULL sein
|
// returned pData, pClass may be NULL
|
||||||
virtual RSCINST GetVariable( const RSCINST & rInst, Atom nVarName,
|
virtual RSCINST GetVariable( const RSCINST & rInst, Atom nVarName,
|
||||||
const RSCINST & rInitInst,
|
const RSCINST & rInitInst,
|
||||||
bool nInitDflt = false,
|
bool nInitDflt = false,
|
||||||
@ -99,20 +99,20 @@ public:
|
|||||||
virtual RSCINST GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
|
virtual RSCINST GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
|
||||||
const RSCINST & rInitInst );
|
const RSCINST & rInitInst );
|
||||||
|
|
||||||
// Liefert Instanz aus einem Feld zurueck
|
// returns instance from a field
|
||||||
// pGetInst im return kann NULL sein
|
// returned pGetInst may be NULL
|
||||||
virtual ERRTYPE GetElement( const RSCINST & rInst, const RscId & rEleName,
|
virtual ERRTYPE GetElement( const RSCINST & rInst, const RscId & rEleName,
|
||||||
RscTop *pCreateClass, const RSCINST & rCreateInst,
|
RscTop *pCreateClass, const RSCINST & rCreateInst,
|
||||||
RSCINST * pGetInst );
|
RSCINST * pGetInst );
|
||||||
|
|
||||||
// Liefert Instanz aus einem Feld zurueck
|
// returns instance from a value
|
||||||
// pGetInst im return kann NULL sein
|
// returnd pGetInst may be NULL
|
||||||
virtual ERRTYPE GetValueEle( const RSCINST & rInst, sal_Int32 lValue,
|
virtual ERRTYPE GetValueEle( const RSCINST & rInst, sal_Int32 lValue,
|
||||||
RscTop * pCreateClass,
|
RscTop * pCreateClass,
|
||||||
RSCINST * pGetInst );
|
RSCINST * pGetInst );
|
||||||
|
|
||||||
// Liefert Instanz aus einem Feld zurueck
|
// returns instance from an array
|
||||||
// pGetInst im return kann NULL sein
|
// returnd pGetInst may be NULL
|
||||||
virtual ERRTYPE GetArrayEle( const RSCINST & rInst, Atom nId,
|
virtual ERRTYPE GetArrayEle( const RSCINST & rInst, Atom nId,
|
||||||
RscTop * pCreateClass,
|
RscTop * pCreateClass,
|
||||||
RSCINST * pGetInst );
|
RSCINST * pGetInst );
|
||||||
@ -120,35 +120,34 @@ public:
|
|||||||
virtual RSCINST SearchEle( const RSCINST & rInst, const RscId & rEleName,
|
virtual RSCINST SearchEle( const RSCINST & rInst, const RscId & rEleName,
|
||||||
RscTop * pClass );
|
RscTop * pClass );
|
||||||
|
|
||||||
// Liefert Instanz an der Position zurueck
|
// returns instance at the position
|
||||||
virtual RSCINST GetPosEle( const RSCINST & rInst, sal_uInt32 nPos );
|
virtual RSCINST GetPosEle( const RSCINST & rInst, sal_uInt32 nPos );
|
||||||
|
|
||||||
// verschiebt eine Instanz
|
// smove an instance
|
||||||
virtual ERRTYPE MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
|
virtual ERRTYPE MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
|
||||||
sal_uInt32 nSourcePos );
|
sal_uInt32 nSourcePos );
|
||||||
|
|
||||||
// aendert RscId an Position
|
// changes RscId at position
|
||||||
virtual ERRTYPE SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
|
virtual ERRTYPE SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
|
||||||
const RscId & rRscId);
|
const RscId & rRscId);
|
||||||
|
|
||||||
// Liefert Information ueber Instanz
|
// returns instance information at position
|
||||||
// an der Position zurueck
|
|
||||||
virtual SUBINFO_STRUCT GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos );
|
virtual SUBINFO_STRUCT GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos );
|
||||||
|
|
||||||
// Anzahl der Eintraege
|
// number of entries
|
||||||
virtual sal_uInt32 GetCount( const RSCINST & rInst );
|
virtual sal_uInt32 GetCount( const RSCINST & rInst );
|
||||||
|
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
virtual ERRTYPE SetNumber( const RSCINST & rInst, sal_Int32 lValue );
|
virtual ERRTYPE SetNumber( const RSCINST & rInst, sal_Int32 lValue );
|
||||||
|
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
virtual ERRTYPE SetBool( const RSCINST & rInst, bool bValue );
|
virtual ERRTYPE SetBool( const RSCINST & rInst, bool bValue );
|
||||||
|
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
virtual ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
|
virtual ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
|
||||||
sal_Int32 nValue );
|
sal_Int32 nValue );
|
||||||
|
|
||||||
// Eine Zuweisung an eine Variable
|
// an assignment to a variable
|
||||||
virtual ERRTYPE SetNotConst( const RSCINST & rInst, Atom nId );
|
virtual ERRTYPE SetNotConst( const RSCINST & rInst, Atom nId );
|
||||||
|
|
||||||
virtual ERRTYPE SetString( const RSCINST & rInst, const char * pStr );
|
virtual ERRTYPE SetString( const RSCINST & rInst, const char * pStr );
|
||||||
@ -164,25 +163,25 @@ public:
|
|||||||
virtual RSCINST Create( RSCINST * pInst,
|
virtual RSCINST Create( RSCINST * pInst,
|
||||||
const RSCINST & rDefInst, bool bOwnClass = false );
|
const RSCINST & rDefInst, bool bOwnClass = false );
|
||||||
|
|
||||||
// Instanz zerstoeren
|
// detroys instance
|
||||||
virtual void Destroy( const RSCINST & rInst );
|
virtual void Destroy( const RSCINST & rInst );
|
||||||
|
|
||||||
// prueft auf konsistenz
|
// checks consistency
|
||||||
virtual bool IsConsistent( const RSCINST & rInst );
|
virtual bool IsConsistent( const RSCINST & rInst );
|
||||||
|
|
||||||
// Alles auf Default setzen
|
// sets all default values
|
||||||
virtual void SetToDefault( const RSCINST & rInst );
|
virtual void SetToDefault( const RSCINST & rInst );
|
||||||
|
|
||||||
// Ist Eingabe = Default
|
// wether input is equal to default
|
||||||
virtual bool IsDefault( const RSCINST & rInst );
|
virtual bool IsDefault( const RSCINST & rInst );
|
||||||
|
|
||||||
// Gleiche Werte auf Default setzen
|
// sets value to default
|
||||||
virtual bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
|
virtual bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
|
||||||
|
|
||||||
// Instanz auf Default setzen
|
// sets intance to default
|
||||||
virtual void SetDefault( const RSCINST & rInst, Atom nVarId );
|
virtual void SetDefault( const RSCINST & rInst, Atom nVarId );
|
||||||
|
|
||||||
// Default zu einer Variablen holen
|
// returns a variable default
|
||||||
virtual RSCINST GetDefault( Atom nVarId );
|
virtual RSCINST GetDefault( Atom nVarId );
|
||||||
|
|
||||||
virtual void Delete( const RSCINST & rInst, RscTop * pClass,
|
virtual void Delete( const RSCINST & rInst, RscTop * pClass,
|
||||||
@ -190,8 +189,7 @@ public:
|
|||||||
|
|
||||||
virtual void DeletePos( const RSCINST & rInst, sal_uInt32 nPos );
|
virtual void DeletePos( const RSCINST & rInst, sal_uInt32 nPos );
|
||||||
|
|
||||||
// Schreibt den Kopf und das Ende einer Resource
|
// writes header and footer of a resource script file
|
||||||
// Script Datei
|
|
||||||
virtual void WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
|
virtual void WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
|
||||||
RscTypCont * pTC, sal_uInt32 nTab,
|
RscTypCont * pTC, sal_uInt32 nTab,
|
||||||
const RscId & aId, const char * );
|
const RscId & aId, const char * );
|
||||||
|
@ -30,16 +30,14 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Wandelt eine doppelt verkettete Liste in
|
// convert a double linked list into a binary tree
|
||||||
// einen binaeren Baum um
|
|
||||||
BiNode * ChangeDLListBTree( BiNode * pList );
|
BiNode * ChangeDLListBTree( BiNode * pList );
|
||||||
|
|
||||||
BiNode();
|
BiNode();
|
||||||
virtual ~BiNode();
|
virtual ~BiNode();
|
||||||
|
|
||||||
|
|
||||||
// Wandelt einen binaeren Baum in eine doppelt
|
// convert a binary tree in a double linked list
|
||||||
// verkettete Liste um
|
|
||||||
BiNode* ChangeBTreeDLList();
|
BiNode* ChangeBTreeDLList();
|
||||||
|
|
||||||
BiNode * Left() const { return pLeft ; }
|
BiNode * Left() const { return pLeft ; }
|
||||||
@ -52,7 +50,7 @@ class NameNode : public BiNode
|
|||||||
void SubOrderTree( NameNode * pOrderNode );
|
void SubOrderTree( NameNode * pOrderNode );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// pCmp ist Zeiger auf Namen
|
// pCmp is a pointer to name
|
||||||
NameNode* Search( const void * pCmp ) const;
|
NameNode* Search( const void * pCmp ) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -65,7 +63,7 @@ public:
|
|||||||
virtual COMPARE Compare( const NameNode * ) const;
|
virtual COMPARE Compare( const NameNode * ) const;
|
||||||
virtual COMPARE Compare( const void * ) const;
|
virtual COMPARE Compare( const void * ) const;
|
||||||
NameNode* SearchParent( const NameNode * ) const;
|
NameNode* SearchParent( const NameNode * ) const;
|
||||||
// return ist neue Root
|
// returns the new root
|
||||||
NameNode* Remove( NameNode * );
|
NameNode* Remove( NameNode * );
|
||||||
void OrderTree();
|
void OrderTree();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user