Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/blame/commit/fd024fc35e57f143ea6b67d8f4eb08d9fa3c1073/thirdparty/mera/pdf-merger/Merger.h
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
// Merger.h
|
|
|
|
|
// Implementation of the Class Merger
|
|
|
|
|
// Created on: 19-<EFBFBD><EFBFBD><EFBFBD>-2009 12:27:54
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#if !defined Merger_h
|
|
|
|
|
#define Merger_h
|
|
|
|
|
|
|
|
|
|
#include "Document.h"
|
|
|
|
|
#include "Parser.h"
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
// structure defines parameter of merge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace merge_lib
|
|
|
|
|
{
|
|
|
|
|
class Document;
|
|
|
|
|
class Merger
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
Merger();
|
|
|
|
|
~Merger();
|
|
|
|
|
|
|
|
|
|
//this method should be called every time the "Add" button is clicked
|
|
|
|
|
void addBaseDocument(const char *docName);
|
|
|
|
|
|
|
|
|
|
void addOverlayDocument(const char *docName);
|
|
|
|
|
|
|
|
|
|
void saveMergedDocumentsAs(const char *outDocumentName);
|
|
|
|
|
|
|
|
|
|
void merge(const char *overlayDocName, const MergeDescription & pagesToMerge);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::map<std::string, Document * > _baseDocuments;
|
|
|
|
|
static Parser _parser;
|
|
|
|
|
Document * _overlayDocument;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
#endif //
|