summaryrefslogtreecommitdiff
path: root/xml2cmp/source/inc
diff options
context:
space:
mode:
Diffstat (limited to 'xml2cmp/source/inc')
-rw-r--r--xml2cmp/source/inc/lst_str.h92
-rw-r--r--xml2cmp/source/inc/new_del.h48
-rw-r--r--xml2cmp/source/inc/str.h64
-rw-r--r--xml2cmp/source/inc/textbuff.h78
-rw-r--r--xml2cmp/source/inc/textfile.h69
5 files changed, 0 insertions, 351 deletions
diff --git a/xml2cmp/source/inc/lst_str.h b/xml2cmp/source/inc/lst_str.h
deleted file mode 100644
index 0f289033c978..000000000000
--- a/xml2cmp/source/inc/lst_str.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CPV_LST_STR_H
-#define CPV_LST_STR_H
-
-#include "str.h"
-
-
-typedef struct LSElem
-{
- Cstring * pData;
- struct LSElem * pNext;
-} LSElem;
-
-
-typedef struct LSIterator
-{
- LSElem * pElement;
-} LSIterator;
-
-
-typedef struct ListCstring
-{
- LSElem * dpStart;
- LSElem * pEnd;
- Bool bAutoDeleteData;
-} ListCstring;
-
-
-#define ListCstring_THIS ListCstring * pThis
-#define LSIterator_THIS LSIterator * pThis
-#define LSElem_THIS LSElem * pThis
-
-
-
-void ListCstring_CTOR( ListCstring_THIS,
- Bool i_bAutoDeleteData );
-void ListCstring_DTOR( ListCstring_THIS );
-
-void LS_Add( ListCstring_THIS,
- Cstring * i_pData );
-void LS_Empty( ListCstring_THIS,
- Bool i_bDeleteData );
-void LS_Append( ListCstring_THIS,
- char * i_sStrings[],
- intt i_nNrOfStrings );
-Bool LS_IsEmpty( ListCstring_THIS );
-
-LSIterator LS_Begin( ListCstring_THIS );
-
-
-void LSIterator_CTOR( LSIterator_THIS,
- LSElem * i_pElement );
-void LSI_opp( LSIterator_THIS ); /** operator++() */
-
-Bool LSI_obool( LSIterator_THIS );
-Cstring * LSI_optr( LSIterator_THIS ); /** operator->() */
-
-
-void LSElem_CTOR( LSElem_THIS,
- Cstring * i_pData );
-void LSElem_DTOR( LSElem_THIS );
-
-Cstring * LSE_Data( LSElem_THIS );
-LSElem * LSE_Next( LSElem_THIS );
-
-void LSE_SetNext( LSElem_THIS,
- LSElem * i_pNext );
-void LSE_DeleteData( LSElem_THIS );
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xml2cmp/source/inc/new_del.h b/xml2cmp/source/inc/new_del.h
deleted file mode 100644
index 08e81a1df01b..000000000000
--- a/xml2cmp/source/inc/new_del.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CPV_NEW_DEL_H
-#define CPV_NEW_DEL_H
-
-
-void * New(
- intt i_nSize );
-void Delete(
- void * io_pMemory );
-
-/* at ASSIGN_NEW ptr must be an L-Value. */
-#define ASSIGN_NEW( ptr, type ) \
- { ptr = New( sizeof( type ) ); type##_CTOR( ptr ); }
-
-#define ASSIGN_NEW1( ptr, type, param1 ) \
- { ptr = New( sizeof( type ) ); type##_CTOR( ptr, param1 ); }
-
-#define ASSIGN_NEW2( ptr, type, param1, param2 ) \
- { ptr = New( sizeof( type ) ); type##_CTOR( ptr, param1, param2 ); }
-
-#define ASSIGN_NEW3( ptr, type, param1, param2, param3 ) \
- { ptr = New( sizeof( type ) ); type##_CTOR( ptr, param1, param2, param3 ); }
-
-#define DELETE( ptr, type ) \
- { type##_DTOR( ptr ); Delete(ptr); }
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xml2cmp/source/inc/str.h b/xml2cmp/source/inc/str.h
deleted file mode 100644
index 5c85c201f256..000000000000
--- a/xml2cmp/source/inc/str.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CPV_STR_H
-#define CPV_STR_H
-
-
-#ifdef UNX
-#define stricmp(str1,str2) strcasecmp(str1, str2)
-#define strnicmp(str1,str2,n) strncasecmp(str1, str2, n)
-#endif
-
-
-typedef struct Cstring
-{
- char * dpText;
- intt nLength;
-
-} Cstring;
-
-#define Cstring_THIS Cstring * pThis
-
-
-void Cstring_CTOR( Cstring_THIS,
- char * pText );
-void Cstring_DTOR( Cstring * pThis );
-
-void Cs_Assign( Cstring_THIS,
- char * i_pNewText );
-void Cs_AssignPart( Cstring_THIS,
- char * i_pNewText,
- intt i_nLength );
-
-void Cs_AddCs( Cstring_THIS,
- Cstring * i_pAddedText );
-void Cs_Add( Cstring_THIS,
- char * i_pAddedText );
-
-char * Cs_Str( Cstring_THIS );
-intt Cs_Length( Cstring_THIS );
-
-void Cs_ToUpper( Cstring_THIS );
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xml2cmp/source/inc/textbuff.h b/xml2cmp/source/inc/textbuff.h
deleted file mode 100644
index eecfca7d918d..000000000000
--- a/xml2cmp/source/inc/textbuff.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CTLS_TEXTBUFF_H
-#define CTLS_TEXTBUFF_H
-
-#include "textfile.h"
-
-
-typedef struct TextBuffer
-{
- char * dpText;
- intt nSize;
-
- intt nPosition;
-
-} TextBuffer;
-
-#define TextBuffer_THIS TextBuffer * pThis
-
-
-#define ENDS '\0'
-#define ENDL '\n'
-
-typedef enum E_TB_Relation
-{
- tb_begin,
- tb_cur,
- tb_end
-} E_TB_Relation;
-
-
-void TextBuffer_CTOR( TextBuffer_THIS,
- intt i_nSize );
-void TextBuffer_DTOR( TextBuffer_THIS );
-void TB_Resize( TextBuffer_THIS,
- intt i_nNewSize );
-
-Bool TB_oin( TextBuffer_THIS, /** operator>>(char *) */
- char * i_pText );
-Bool TB_oinChar( TextBuffer_THIS, /** operator>>(char) */
- char i_cChar );
-Bool TB_oinFile( TextBuffer_THIS, /** operator>>(TextFile*) */
- TextFile * i_pFile );
-void TB_opp( TextBuffer_THIS ); /** operator++ */
-
-intt TB_Goto( TextBuffer_THIS,
- intt i_nPosition,
- E_TB_Relation i_nRelation ); /** tb_begin, tb_cur, tb_end */
-
-
-char * TB_Text( TextBuffer_THIS );
-char TB_CurChar( TextBuffer_THIS );
-char * TB_CurCharPtr( TextBuffer_THIS );
-intt TB_Size( TextBuffer_THIS );
-intt TB_Position( TextBuffer_THIS );
-Bool TB_EndOfBuffer( TextBuffer_THIS );
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xml2cmp/source/inc/textfile.h b/xml2cmp/source/inc/textfile.h
deleted file mode 100644
index 6af36a1f2f91..000000000000
--- a/xml2cmp/source/inc/textfile.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CPV_TEXTFILE_H
-#define CPV_TEXTFILE_H
-
-#include <stdio.h>
-#include "str.h"
-
-
-
-typedef struct TextFile
-{
- Cstring sName;
- FILE * hFile;
- intt nLastAction;
-} TextFile;
-
-#define TextFile_THIS TextFile * pThis
-
-
-
-void TextFile_CTOR( TextFile_THIS,
- char * i_pName );
-void TextFile_DTOR( TextFile_THIS );
-
-Bool TF_Open( TextFile_THIS,
- char * i_sOptions ); /* options for second parameter of fopen */
-Bool TF_Create( TextFile_THIS );
-void TF_Close( TextFile_THIS );
-
-void TF_Goto( TextFile_THIS,
- intt i_nPosition );
-intt TF_Read( TextFile_THIS,
- char * o_pBuffer,
- intt i_nNrOfBytes );
-intt TF_Write( TextFile_THIS,
- char * i_pBuffer,
- intt i_nNrOfBytes );
-intt TF_WriteStr( TextFile_THIS,
- char * i_pString );
-
-intt TF_Position( TextFile_THIS );
-intt TF_Size( TextFile_THIS );
-
-
-
-
-#endif
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */