diff --git a/README.md b/README.md
index 113e6fd8e9d75dcb2dd7127ba0d2be918cd7a1d5..2c56ca52d3036b7bb0d4203e4c0a380db3d0722f 100644
--- a/README.md
+++ b/README.md
@@ -11,16 +11,35 @@ win32 : Qt 4.8.6 + MinGW 4.8.2
`windows 10 ` `ubuntu 16.04` `中标麒麟6.0`
## 功能需求
-1. 创建文档:生成基本OFD框架;
-2. 页面设置与分页:设置纸张形式和分页机制;
-3. 文字录入:在控制区域内实现文字的增、改、删;
-4. 版面控制:设置版心、字体、颜色、字号、行距、字距等;
-5. 段落控制:实现段落缩进、居左、居中、居右、撑满等。
-6. 图像控制:实现图像的插入和文字环绕;
-7. 表格编辑:实现表格插入、绘制和文字表格内排版。
-8. 账号管理:能够注册、登录、注销用户账号;
-9. 文件云端备份功能:能够将文件备份在云端、实现多版本保存;
-10. ~~协同编辑:两个或多个用户能够同时编辑同一份文档。~~
+
+1. 创建文档
+>创建文当是本系统的最基本的功能,即新建一个OFD类型的文档。新建的文档应该是一个只有页空白页的,默认纸张大小、默认页边距的文档。
+为了方便用户使用,在创建OFD文档时,应考虑增加几个常用板式模板。这样比如用户,创建完成后,只需要简单的改改自己需要的部分即可。
+
+2. 页面设置与分页
+>页面设置与分页也是比较常用的功能,它要做的是设置纸张的大小与形式,之后再设置纸张的分页机制。本系统在实现时,应该设置到能够快速切换到常用纸张大小,比如:A3、A4、A5等纸张大小。
+
+3. 文字录入
+>文字录入功能可以说是OFD文档原型系统必须实现的功能。本系统需要实现的是如同记事本一样非常自然的输入方式,让用户能够录入文字后立马看到效果,并且要能够做到在通用的OFD阅读器上打开也具有同样的效果。
+
+4. 版面控制
+>版面控制需要实现设置版心、字体、颜色、字号、行距、字距等功能,这些功能都是版面布局时所需要的。同样,版面控制的效果需要在所有的OFD阅读器上都能够看到。
+
+5. 图像控制
+>图像控制功能,即实现插入图片,设置常用的文字环绕方式。这里我们需要能够设置图片的尺寸,长宽比;需要设置文字环绕方式为包围式、嵌入文本行中等。
+
+6. 表格编辑
+>表格编辑功能,需要能够插入表格,在表格中调节文字排版。并且,插入表格时要能够设置表格的行列数量,在后面也要能够对表格的单元格进行大小调整,分离或合并不同单元格。
+
+7. 撤销恢复功能
+>用户在操作中常常遇到需要撤销恢复的情况,为此需要设置撤销恢复功能,最好撤销恢复次数需要大于10次。撤销恢复的功能目前可以说是商用编辑软件的必备功能了。
+
+8. 查找替换功能
+>用户在编辑文档时,当文档过于长时,需要用查找功能查询到某处关键字,或者是需要进行关键词的批量替换。
+
+9. 视图缩放功能
+>有的用户可能会嫌弃页面显示的内容太小;有的用户会觉得应用内容文字过大;而有的用户需要快速的浏览文档的内容。为此,系统需要包含浏览视图的放大缩小功能。此功能能够方便用户浏览,为用户的使用提供很大的便利性。
+
## 工程布局(实时更新)
本工程将采用Qt 多工程组织的形式,将按文件功能将代码文件分为若干个不同的子工程。
@@ -29,30 +48,27 @@ win32 : Qt 4.8.6 + MinGW 4.8.2
```
|-model -> 系统工作时的数据模型及显示渲染
|-ofd -> ofd,主要用与ofd文件读取导出,以及ofd读取初期所使用的数据结构
-|-start -> start,主要存放启动程序已经程序的一些基本的界面文件。
+|-start -> start,程序的启动工程,存放关于主界面相关的
+
+```
-|-test_chaoqun -> 江超群的测试工程
-|-test_pan -> 潘言星的测试工程
-|-test_yang -> 杨语晨的测试工程
+## 软件效果图
+
+
+
+
+## 工程引用外部库
+工程引用了 `quazip 0.73`作为本工程的zip压缩工具,他人在编译本工程时,请预先配置好`quazip 0.73` 的环境,之后才可以正常编译本工程。
+
+## 翻译文件
+本系统编写时设置语言为英文。在`model`和`start`工程下设置了翻译文件。
+```
+\ofdEditor
+ \-model
+ \-cn_model.ts
+ \-start
+ \-cn_start.ts
```
+编译时,使用Qt自带的Linguist程序生成relesae的翻译文件,放在编译完成的bin目录下。
-## Qt 帮助文档
-Qt的帮助文档极为丰富,看完之后能够对Qt的功能产生系统性的了解,这样设计软件时,思路就会更加的清晰。
-
-| 文件名 | 作用 |
-| --- | --- |
-| Qt Data Types.pdf | Qt的一些基础数据类型 |
-| Creating Custom Qt Types.pdf | 创建自定义的Qt 类 |
-| MainWindow.pdf | 主窗口相关的 |
-| Widget Tutorial.pdf | Widget 的简要教程 |
-| Layout.pdf | 布局 |
-| State Machine.pdf | 状态机 |
-| Sighals and Slots.pdf | 信号槽 |
-| Event System.pdf | 事件系统 |
-| Drag and Drop.pdf | 拖拽操作处理 |
-| Painting System.pdf | 绘画系统 |
-| Qgraphics view framework.pdf | Qt的快速响应的图形渲染方式 |
-| Qt 富文本框架.pdf | Qt富文本系统 |
-| Creating Qt Plugins.pdf | 制作Qt插件 |
-| Model View Programming.pdf | 模型视图结构编程 |
-| Model View Tutorial.pdf | 模型视图结构教学 |
+[QuaZip官网](http://quazip.sourceforge.net/)
diff --git a/doc/imgs/image1.png b/doc/imgs/image1.png
new file mode 100644
index 0000000000000000000000000000000000000000..1ae63bdb683779dde2480cf2cb4f3c9adc50e487
Binary files /dev/null and b/doc/imgs/image1.png differ
diff --git a/doc/imgs/image33.png b/doc/imgs/image33.png
new file mode 100644
index 0000000000000000000000000000000000000000..b7399de910e22ad535602d8616230a776bd6c4cc
Binary files /dev/null and b/doc/imgs/image33.png differ
diff --git a/doc/imgs/image34.png b/doc/imgs/image34.png
new file mode 100644
index 0000000000000000000000000000000000000000..c93c988903edd3c285fb59a0cbc6ec5104e1dbd2
Binary files /dev/null and b/doc/imgs/image34.png differ
diff --git a/doc/imgs/image35.png b/doc/imgs/image35.png
new file mode 100644
index 0000000000000000000000000000000000000000..720b71a77985aab42bdd6db3378fb75fecb0e410
Binary files /dev/null and b/doc/imgs/image35.png differ
diff --git a/doc/imgs/image36.png b/doc/imgs/image36.png
new file mode 100644
index 0000000000000000000000000000000000000000..8310efd832f93ed407f8c7cea029a1296aabb7b8
Binary files /dev/null and b/doc/imgs/image36.png differ
diff --git a/doc/imgs/image37.png b/doc/imgs/image37.png
new file mode 100644
index 0000000000000000000000000000000000000000..32827ecc644c24a85ec16c6fb8ab40b3cd24f256
Binary files /dev/null and b/doc/imgs/image37.png differ
diff --git a/doc/imgs/image38.png b/doc/imgs/image38.png
new file mode 100644
index 0000000000000000000000000000000000000000..12519fd615481c3d924a8694e59fa576682b8c54
Binary files /dev/null and b/doc/imgs/image38.png differ
diff --git a/doc/imgs/image39.png b/doc/imgs/image39.png
new file mode 100644
index 0000000000000000000000000000000000000000..561dcb9760034020fde327fce8367119d83c55b1
Binary files /dev/null and b/doc/imgs/image39.png differ
diff --git a/doc/imgs/image40.png b/doc/imgs/image40.png
new file mode 100644
index 0000000000000000000000000000000000000000..9dfc19ec98f6e99b24c1303f6b1034195ee9979e
Binary files /dev/null and b/doc/imgs/image40.png differ
diff --git a/doc/imgs/image41.png b/doc/imgs/image41.png
new file mode 100644
index 0000000000000000000000000000000000000000..e16d914c40de0a1c3cffe56d9c35e4697eaddc7f
Binary files /dev/null and b/doc/imgs/image41.png differ
diff --git a/doc/imgs/image42.png b/doc/imgs/image42.png
new file mode 100644
index 0000000000000000000000000000000000000000..f5a8404d5c718bc7d39344f9dcdc7685a2140930
Binary files /dev/null and b/doc/imgs/image42.png differ
diff --git a/doc/imgs/image43.png b/doc/imgs/image43.png
new file mode 100644
index 0000000000000000000000000000000000000000..85b88bf90ac730a73ab59a20309cbcf1c995704a
Binary files /dev/null and b/doc/imgs/image43.png differ
diff --git a/doc/imgs/image44.png b/doc/imgs/image44.png
new file mode 100644
index 0000000000000000000000000000000000000000..ea8387acad19e1fa84006014a42e569730b34821
Binary files /dev/null and b/doc/imgs/image44.png differ
diff --git a/doc/imgs/image45.png b/doc/imgs/image45.png
new file mode 100644
index 0000000000000000000000000000000000000000..7f4f62e78cabc539a9fc75efaebf6e7bda7e9605
Binary files /dev/null and b/doc/imgs/image45.png differ
diff --git a/doc/imgs/image46.png b/doc/imgs/image46.png
new file mode 100644
index 0000000000000000000000000000000000000000..6acdd455c217b17c5d15167250e14e8e39346d60
Binary files /dev/null and b/doc/imgs/image46.png differ
diff --git a/doc/imgs/image47.png b/doc/imgs/image47.png
new file mode 100644
index 0000000000000000000000000000000000000000..d9e4f656c943056217fe62d2e0dbc76f8adfe797
Binary files /dev/null and b/doc/imgs/image47.png differ
diff --git a/doc/imgs/image48.png b/doc/imgs/image48.png
new file mode 100644
index 0000000000000000000000000000000000000000..3cbd2b1d9661c234a52308c7acbb4065bd263f27
Binary files /dev/null and b/doc/imgs/image48.png differ
diff --git a/doc/imgs/image50.png b/doc/imgs/image50.png
new file mode 100644
index 0000000000000000000000000000000000000000..384c180df9501433ead33ffdb40930cce6b0ddf1
Binary files /dev/null and b/doc/imgs/image50.png differ
diff --git a/doc/imgs/image51.png b/doc/imgs/image51.png
new file mode 100644
index 0000000000000000000000000000000000000000..072d0b321a268467edb9cfd620049a50fdcaffef
Binary files /dev/null and b/doc/imgs/image51.png differ
diff --git a/doc/imgs/image52.png b/doc/imgs/image52.png
new file mode 100644
index 0000000000000000000000000000000000000000..ae91d2b0e254040a01b7040e31670e84c26ce6d3
Binary files /dev/null and b/doc/imgs/image52.png differ
diff --git a/doc/imgs/image53.png b/doc/imgs/image53.png
new file mode 100644
index 0000000000000000000000000000000000000000..383a2bf2db47b377452f95eff4e22a05b5dd1a35
Binary files /dev/null and b/doc/imgs/image53.png differ
diff --git a/doc/imgs/image54.png b/doc/imgs/image54.png
new file mode 100644
index 0000000000000000000000000000000000000000..5391aefea0e99d9cb1ebde9b9c0b087f0acb8454
Binary files /dev/null and b/doc/imgs/image54.png differ
diff --git a/doc/imgs/image55.png b/doc/imgs/image55.png
new file mode 100644
index 0000000000000000000000000000000000000000..eb50f782a5d36839f27bcdce39d4ddf19d9006dd
Binary files /dev/null and b/doc/imgs/image55.png differ
diff --git a/ofdEditor/AppSetting.json b/ofdEditor/AppSetting.json
new file mode 100644
index 0000000000000000000000000000000000000000..2cd00f0894aa17d9ada42789ae38eec6bb461a5f
--- /dev/null
+++ b/ofdEditor/AppSetting.json
@@ -0,0 +1,31 @@
+{
+ "App": {
+ "Creator": "OFDEditor",
+ "CreatorVersion": "1.0",
+ "DocType": "OFD",
+ "DocVersion": "1.0",
+ "ViewMode": "Edit"
+ },
+ "Font": {
+ "FontFamily": "黑体",
+ "FontSize": 12
+ },
+ "Page": {
+ "Width": 230,
+ "Height": 330,
+ "WorkWidth": 230,
+ "WorkHeight": 330,
+ "WorkX": 0,
+ "WoekY": 0,
+ "PageType": "A4"
+ },
+ "Paragraph": {
+ "Horizontal": "AlignLeft",
+ "ParaIndent": 0,
+ "FirstIndent": 0,
+ "SpaceBefore": 0,
+ "SpaceAfter": 0,
+ "LineHeight": "SingleHeight",
+ "LineHeightValue": 0
+ }
+}
\ No newline at end of file
diff --git a/ofdEditor/libs/jsoncpp/json/json-forwards.h b/ofdEditor/libs/jsoncpp/json/json-forwards.h
new file mode 100644
index 0000000000000000000000000000000000000000..ccbdb2b13c3843ae6e0465a25acd5fc72cff649a
--- /dev/null
+++ b/ofdEditor/libs/jsoncpp/json/json-forwards.h
@@ -0,0 +1,255 @@
+/// Json-cpp amalgated forward header (http://jsoncpp.sourceforge.net/).
+/// It is intended to be used with #include "json/json-forwards.h"
+/// This header provides forward declaration for all JsonCpp types.
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: LICENSE
+// //////////////////////////////////////////////////////////////////////
+
+/*
+The JsonCpp library's source code, including accompanying documentation,
+tests and demonstration applications, are licensed under the following
+conditions...
+
+The author (Baptiste Lepilleur) explicitly disclaims copyright in all
+jurisdictions which recognize such a disclaimer. In such jurisdictions,
+this software is released into the Public Domain.
+
+In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
+2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur, and is
+released under the terms of the MIT License (see below).
+
+In jurisdictions which recognize Public Domain property, the user of this
+software may choose to accept it either as 1) Public Domain, 2) under the
+conditions of the MIT License (see below), or 3) under the terms of dual
+Public Domain/MIT License conditions described here, as they choose.
+
+The MIT License is about as close to Public Domain as a license can get, and is
+described in clear, concise terms at:
+
+ http://en.wikipedia.org/wiki/MIT_License
+
+The full text of the MIT License follows:
+
+========================================================================
+Copyright (c) 2007-2010 Baptiste Lepilleur
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use, copy,
+modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+========================================================================
+(END LICENSE TEXT)
+
+The MIT license is compatible with both the GPL and commercial
+software, affording one all of the rights of Public Domain with the
+minor nuisance of being required to keep the above copyright notice
+and license text in the source code. Note also that by accepting the
+Public Domain "license" you can re-license your copy using whatever
+license you like.
+
+*/
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: LICENSE
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+#ifndef JSON_FORWARD_AMALGATED_H_INCLUDED
+# define JSON_FORWARD_AMALGATED_H_INCLUDED
+/// If defined, indicates that the source file is amalgated
+/// to prevent private header inclusion.
+#define JSON_IS_AMALGAMATION
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/config.h
+// //////////////////////////////////////////////////////////////////////
+
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef JSON_CONFIG_H_INCLUDED
+#define JSON_CONFIG_H_INCLUDED
+
+/// If defined, indicates that json library is embedded in CppTL library.
+//# define JSON_IN_CPPTL 1
+
+/// If defined, indicates that json may leverage CppTL library
+//# define JSON_USE_CPPTL 1
+/// If defined, indicates that cpptl vector based map should be used instead of
+/// std::map
+/// as Value container.
+//# define JSON_USE_CPPTL_SMALLMAP 1
+
+// If non-zero, the library uses exceptions to report bad input instead of C
+// assertion macros. The default is to use exceptions.
+#ifndef JSON_USE_EXCEPTION
+#define JSON_USE_EXCEPTION 1
+#endif
+
+/// If defined, indicates that the source file is amalgated
+/// to prevent private header inclusion.
+/// Remarks: it is automatically defined in the generated amalgated header.
+// #define JSON_IS_AMALGAMATION
+
+#ifdef JSON_IN_CPPTL
+#include
+#ifndef JSON_USE_CPPTL
+#define JSON_USE_CPPTL 1
+#endif
+#endif
+
+#ifdef JSON_IN_CPPTL
+#define JSON_API CPPTL_API
+#elif defined(JSON_DLL_BUILD)
+#if defined(_MSC_VER)
+#define JSON_API __declspec(dllexport)
+#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
+#endif // if defined(_MSC_VER)
+#elif defined(JSON_DLL)
+#if defined(_MSC_VER)
+#define JSON_API __declspec(dllimport)
+#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
+#endif // if defined(_MSC_VER)
+#endif // ifdef JSON_IN_CPPTL
+#if !defined(JSON_API)
+#define JSON_API
+#endif
+
+// If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
+// integer
+// Storages, and 64 bits integer support is disabled.
+// #define JSON_NO_INT64 1
+
+#if defined(_MSC_VER) && _MSC_VER <= 1200 // MSVC 6
+// Microsoft Visual Studio 6 only support conversion from __int64 to double
+// (no conversion from unsigned __int64).
+#define JSON_USE_INT64_DOUBLE_CONVERSION 1
+// Disable warning 4786 for VS6 caused by STL (identifier was truncated to '255'
+// characters in the debug information)
+// All projects I've ever seen with VS6 were using this globally (not bothering
+// with pragma push/pop).
+#pragma warning(disable : 4786)
+#endif // if defined(_MSC_VER) && _MSC_VER < 1200 // MSVC 6
+
+#if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
+/// Indicates that the following function is deprecated.
+#define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
+#elif defined(__clang__) && defined(__has_feature)
+#if __has_feature(attribute_deprecated_with_message)
+#define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
+#endif
+#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
+#define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
+#elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+#define JSONCPP_DEPRECATED(message) __attribute__((__deprecated__))
+#endif
+
+#if !defined(JSONCPP_DEPRECATED)
+#define JSONCPP_DEPRECATED(message)
+#endif // if !defined(JSONCPP_DEPRECATED)
+
+namespace Json {
+typedef int Int;
+typedef unsigned int UInt;
+#if defined(JSON_NO_INT64)
+typedef int LargestInt;
+typedef unsigned int LargestUInt;
+#undef JSON_HAS_INT64
+#else // if defined(JSON_NO_INT64)
+// For Microsoft Visual use specific types as long long is not supported
+#if defined(_MSC_VER) // Microsoft Visual Studio
+typedef __int64 Int64;
+typedef unsigned __int64 UInt64;
+#else // if defined(_MSC_VER) // Other platforms, use long long
+typedef long long int Int64;
+typedef unsigned long long int UInt64;
+#endif // if defined(_MSC_VER)
+typedef Int64 LargestInt;
+typedef UInt64 LargestUInt;
+#define JSON_HAS_INT64
+#endif // if defined(JSON_NO_INT64)
+} // end namespace Json
+
+#endif // JSON_CONFIG_H_INCLUDED
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: include/json/config.h
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/forwards.h
+// //////////////////////////////////////////////////////////////////////
+
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef JSON_FORWARDS_H_INCLUDED
+#define JSON_FORWARDS_H_INCLUDED
+
+#if !defined(JSON_IS_AMALGAMATION)
+#include "config.h"
+#endif // if !defined(JSON_IS_AMALGAMATION)
+
+namespace Json {
+
+// writer.h
+class FastWriter;
+class StyledWriter;
+
+// reader.h
+class Reader;
+
+// features.h
+class Features;
+
+// value.h
+typedef unsigned int ArrayIndex;
+class StaticString;
+class Path;
+class PathArgument;
+class Value;
+class ValueIteratorBase;
+class ValueIterator;
+class ValueConstIterator;
+
+} // namespace Json
+
+#endif // JSON_FORWARDS_H_INCLUDED
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: include/json/forwards.h
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+#endif //ifndef JSON_FORWARD_AMALGATED_H_INCLUDED
diff --git a/ofdEditor/libs/jsoncpp/json/json.h b/ofdEditor/libs/jsoncpp/json/json.h
new file mode 100644
index 0000000000000000000000000000000000000000..6859137eff66e094332cda3c5827169efe57cd7f
--- /dev/null
+++ b/ofdEditor/libs/jsoncpp/json/json.h
@@ -0,0 +1,1981 @@
+/// Json-cpp amalgated header (http://jsoncpp.sourceforge.net/).
+/// It is intended to be used with #include "json/json.h"
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: LICENSE
+// //////////////////////////////////////////////////////////////////////
+
+/*
+The JsonCpp library's source code, including accompanying documentation,
+tests and demonstration applications, are licensed under the following
+conditions...
+
+The author (Baptiste Lepilleur) explicitly disclaims copyright in all
+jurisdictions which recognize such a disclaimer. In such jurisdictions,
+this software is released into the Public Domain.
+
+In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
+2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur, and is
+released under the terms of the MIT License (see below).
+
+In jurisdictions which recognize Public Domain property, the user of this
+software may choose to accept it either as 1) Public Domain, 2) under the
+conditions of the MIT License (see below), or 3) under the terms of dual
+Public Domain/MIT License conditions described here, as they choose.
+
+The MIT License is about as close to Public Domain as a license can get, and is
+described in clear, concise terms at:
+
+ http://en.wikipedia.org/wiki/MIT_License
+
+The full text of the MIT License follows:
+
+========================================================================
+Copyright (c) 2007-2010 Baptiste Lepilleur
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use, copy,
+modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+========================================================================
+(END LICENSE TEXT)
+
+The MIT license is compatible with both the GPL and commercial
+software, affording one all of the rights of Public Domain with the
+minor nuisance of being required to keep the above copyright notice
+and license text in the source code. Note also that by accepting the
+Public Domain "license" you can re-license your copy using whatever
+license you like.
+
+*/
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: LICENSE
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+#ifndef JSON_AMALGATED_H_INCLUDED
+# define JSON_AMALGATED_H_INCLUDED
+/// If defined, indicates that the source file is amalgated
+/// to prevent private header inclusion.
+#define JSON_IS_AMALGAMATION
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/version.h
+// //////////////////////////////////////////////////////////////////////
+
+// DO NOT EDIT. This file (and "version") is generated by CMake.
+// Run CMake configure step to update it.
+#ifndef JSON_VERSION_H_INCLUDED
+# define JSON_VERSION_H_INCLUDED
+
+# define JSONCPP_VERSION_STRING "0.10.6"
+# define JSONCPP_VERSION_MAJOR 0
+# define JSONCPP_VERSION_MINOR 10
+# define JSONCPP_VERSION_PATCH 6
+# define JSONCPP_VERSION_QUALIFIER
+# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
+
+#endif // JSON_VERSION_H_INCLUDED
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: include/json/version.h
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/config.h
+// //////////////////////////////////////////////////////////////////////
+
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef JSON_CONFIG_H_INCLUDED
+#define JSON_CONFIG_H_INCLUDED
+
+/// If defined, indicates that json library is embedded in CppTL library.
+//# define JSON_IN_CPPTL 1
+
+/// If defined, indicates that json may leverage CppTL library
+//# define JSON_USE_CPPTL 1
+/// If defined, indicates that cpptl vector based map should be used instead of
+/// std::map
+/// as Value container.
+//# define JSON_USE_CPPTL_SMALLMAP 1
+
+// If non-zero, the library uses exceptions to report bad input instead of C
+// assertion macros. The default is to use exceptions.
+#ifndef JSON_USE_EXCEPTION
+#define JSON_USE_EXCEPTION 1
+#endif
+
+/// If defined, indicates that the source file is amalgated
+/// to prevent private header inclusion.
+/// Remarks: it is automatically defined in the generated amalgated header.
+// #define JSON_IS_AMALGAMATION
+
+#ifdef JSON_IN_CPPTL
+#include
+#ifndef JSON_USE_CPPTL
+#define JSON_USE_CPPTL 1
+#endif
+#endif
+
+#ifdef JSON_IN_CPPTL
+#define JSON_API CPPTL_API
+#elif defined(JSON_DLL_BUILD)
+#if defined(_MSC_VER)
+#define JSON_API __declspec(dllexport)
+#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
+#endif // if defined(_MSC_VER)
+#elif defined(JSON_DLL)
+#if defined(_MSC_VER)
+#define JSON_API __declspec(dllimport)
+#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
+#endif // if defined(_MSC_VER)
+#endif // ifdef JSON_IN_CPPTL
+#if !defined(JSON_API)
+#define JSON_API
+#endif
+
+// If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
+// integer
+// Storages, and 64 bits integer support is disabled.
+// #define JSON_NO_INT64 1
+
+#if defined(_MSC_VER) && _MSC_VER <= 1200 // MSVC 6
+// Microsoft Visual Studio 6 only support conversion from __int64 to double
+// (no conversion from unsigned __int64).
+#define JSON_USE_INT64_DOUBLE_CONVERSION 1
+// Disable warning 4786 for VS6 caused by STL (identifier was truncated to '255'
+// characters in the debug information)
+// All projects I've ever seen with VS6 were using this globally (not bothering
+// with pragma push/pop).
+#pragma warning(disable : 4786)
+#endif // if defined(_MSC_VER) && _MSC_VER < 1200 // MSVC 6
+
+#if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
+/// Indicates that the following function is deprecated.
+#define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
+#elif defined(__clang__) && defined(__has_feature)
+#if __has_feature(attribute_deprecated_with_message)
+#define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
+#endif
+#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
+#define JSONCPP_DEPRECATED(message) __attribute__ ((deprecated(message)))
+#elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+#define JSONCPP_DEPRECATED(message) __attribute__((__deprecated__))
+#endif
+
+#if !defined(JSONCPP_DEPRECATED)
+#define JSONCPP_DEPRECATED(message)
+#endif // if !defined(JSONCPP_DEPRECATED)
+
+namespace Json {
+typedef int Int;
+typedef unsigned int UInt;
+#if defined(JSON_NO_INT64)
+typedef int LargestInt;
+typedef unsigned int LargestUInt;
+#undef JSON_HAS_INT64
+#else // if defined(JSON_NO_INT64)
+// For Microsoft Visual use specific types as long long is not supported
+#if defined(_MSC_VER) // Microsoft Visual Studio
+typedef __int64 Int64;
+typedef unsigned __int64 UInt64;
+#else // if defined(_MSC_VER) // Other platforms, use long long
+typedef long long int Int64;
+typedef unsigned long long int UInt64;
+#endif // if defined(_MSC_VER)
+typedef Int64 LargestInt;
+typedef UInt64 LargestUInt;
+#define JSON_HAS_INT64
+#endif // if defined(JSON_NO_INT64)
+} // end namespace Json
+
+#endif // JSON_CONFIG_H_INCLUDED
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: include/json/config.h
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/forwards.h
+// //////////////////////////////////////////////////////////////////////
+
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef JSON_FORWARDS_H_INCLUDED
+#define JSON_FORWARDS_H_INCLUDED
+
+#if !defined(JSON_IS_AMALGAMATION)
+#include "config.h"
+#endif // if !defined(JSON_IS_AMALGAMATION)
+
+namespace Json {
+
+// writer.h
+class FastWriter;
+class StyledWriter;
+
+// reader.h
+class Reader;
+
+// features.h
+class Features;
+
+// value.h
+typedef unsigned int ArrayIndex;
+class StaticString;
+class Path;
+class PathArgument;
+class Value;
+class ValueIteratorBase;
+class ValueIterator;
+class ValueConstIterator;
+
+} // namespace Json
+
+#endif // JSON_FORWARDS_H_INCLUDED
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: include/json/forwards.h
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/features.h
+// //////////////////////////////////////////////////////////////////////
+
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef CPPTL_JSON_FEATURES_H_INCLUDED
+#define CPPTL_JSON_FEATURES_H_INCLUDED
+
+#if !defined(JSON_IS_AMALGAMATION)
+#include "forwards.h"
+#endif // if !defined(JSON_IS_AMALGAMATION)
+
+namespace Json {
+
+/** \brief Configuration passed to reader and writer.
+ * This configuration object can be used to force the Reader or Writer
+ * to behave in a standard conforming way.
+ */
+class JSON_API Features {
+public:
+ /** \brief A configuration that allows all features and assumes all strings
+ * are UTF-8.
+ * - C & C++ comments are allowed
+ * - Root object can be any JSON value
+ * - Assumes Value strings are encoded in UTF-8
+ */
+ static Features all();
+
+ /** \brief A configuration that is strictly compatible with the JSON
+ * specification.
+ * - Comments are forbidden.
+ * - Root object must be either an array or an object value.
+ * - Assumes Value strings are encoded in UTF-8
+ */
+ static Features strictMode();
+
+ /** \brief Initialize the configuration like JsonConfig::allFeatures;
+ */
+ Features();
+
+ /// \c true if comments are allowed. Default: \c true.
+ bool allowComments_;
+
+ /// \c true if root must be either an array or an object value. Default: \c
+ /// false.
+ bool strictRoot_;
+};
+
+} // namespace Json
+
+#endif // CPPTL_JSON_FEATURES_H_INCLUDED
+
+// //////////////////////////////////////////////////////////////////////
+// End of content of file: include/json/features.h
+// //////////////////////////////////////////////////////////////////////
+
+
+
+
+
+
+// //////////////////////////////////////////////////////////////////////
+// Beginning of content of file: include/json/value.h
+// //////////////////////////////////////////////////////////////////////
+
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef CPPTL_JSON_H_INCLUDED
+#define CPPTL_JSON_H_INCLUDED
+
+#if !defined(JSON_IS_AMALGAMATION)
+#include "forwards.h"
+#endif // if !defined(JSON_IS_AMALGAMATION)
+#include
+#include
+#include
+
+#ifndef JSON_USE_CPPTL_SMALLMAP
+#include