diff options
Diffstat (limited to 'src/tags.h')
-rw-r--r-- | src/tags.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/src/tags.h b/src/tags.h new file mode 100644 index 0000000..d0382cc --- /dev/null +++ b/src/tags.h @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2004, Nate Nielsen + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above + * copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or + * other materials provided with the distribution. + * * The names of contributors to this software may not be + * used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF + * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * + * + * CONTRIBUTORS + * Nate Nielsen <nielsen@memberwebs.com> + * + */ + +#ifndef __TAGS_H__ +#define __TAGS_H__ + +static const char* kElDest = "i_dest"; +static const char* kElBlock = "i_block"; +static const char* kAtFix = "i_fix"; +static const char* kAtCell = "i_cell"; +static const char* kElListtable = "i_listtable"; +static const char* kElListdef = "i_listdef"; + +static const char* kElPara = "para"; +static const char* kElDoc = "document"; +static const char* kElTab = "tab"; +static const char* kElSect = "sect"; +static const char* kElPage = "page"; +static const char* kElStyle = "style"; +static const char* kElLine = "line"; +static const char* kElList = "list"; +static const char* kElStylesheet = "stylesheet"; +static const char* kElInfo = "info"; +static const char* kElTitle = "title"; +static const char* kElAuthor = "author"; +static const char* kElOperator = "operator"; +static const char* kElB = "b"; +static const char* kElHide = "hide"; +static const char* kElI = "i"; +static const char* kElStrike = "strike"; +static const char* kElU = "u"; +static const char* kElColor = "color"; +static const char* kElCell = "cell"; +static const char* kElRow = "row"; +static const char* kElTable = "table"; + +static const char* kAtList = "list"; +static const char* kAtName = "name"; +static const char* kAtBold = "bold"; +static const char* kAtHidden = "hide"; +static const char* kAtItalic = "italic"; +static const char* kAtStrike = "strike"; +static const char* kAtUnderline = "underline"; +static const char* kAtColor = "color"; +static const char* kAtType = "type"; +static const char* kAtOrdered = "ordered"; +static const char* kAtStart = "start"; +static const char* kAtId = "id"; +static const char* kAtIndex = "id"; + +static const wchar_t* kValDisc = L"disc"; +static const wchar_t* kValLowerAlpha = L"lower-alpha"; +static const wchar_t* kValUpperAlpha = L"upper-alpha"; +static const wchar_t* kValLowerRoman = L"lower-roman"; +static const wchar_t* kValUpperRoman = L"upper-roman"; +static const wchar_t* kValArabic = L"arabic"; +static const wchar_t* kValNull = L""; + +static const wchar_t* kValList = L"list"; +static const wchar_t* kValPara = L"para"; +static const wchar_t* kValTable = L"table"; + +static const char* kNoDuplicates[] = + { kElB, kElU, kElI, kElColor, kElHide, kElColor, NULL }; + +static const char* kRemoveTags[] = + { kElDest, kElListdef, kElListtable, NULL }; + +static const char* kBlockTags[] = + { kElTable, kElPara, NULL }; + +static const char* kHideList[] = + { kAtId, kAtList, NULL }; + +static const char* kNSPrefix = "xmlns"; + +#endif // __TAGS_H__ |