mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-16 10:37:11 +02:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
1 parent
e0e34b4030
commit
4a6bfc086c
6219 files changed
+1209835
-454916
No files matched your search
Vendored
+69
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* << Haru Free PDF Library >> -- hpdf_annotation.c
|
||||
*
|
||||
* URL: http://libharu.org
|
||||
*
|
||||
* Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
|
||||
* Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
|
||||
*
|
||||
* Permission to use, copy, modify, distribute and sell this software
|
||||
* and its documentation for any purpose is hereby granted without fee,
|
||||
* provided that the above copyright notice appear in all copies and
|
||||
* that both that copyright notice and this permission notice appear
|
||||
* in supporting documentation.
|
||||
* It is provided "as is" without express or implied warranty.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "hpdf_conf.h"
|
||||
#include "hpdf_utils.h"
|
||||
#include "hpdf_info.h"
|
||||
#include "hpdf_exdata.h"
|
||||
#include "hpdf.h"
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/*------ HPDF_ExData -----------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
HPDF_ExData
|
||||
HPDF_3DAnnotExData_New(HPDF_MMgr mmgr,
|
||||
HPDF_Xref xref)
|
||||
{
|
||||
HPDF_ExData exdata;
|
||||
HPDF_STATUS ret = HPDF_OK;
|
||||
|
||||
|
||||
HPDF_PTRACE((" HPDF_ExData_New\n"));
|
||||
|
||||
exdata = HPDF_Dict_New (mmgr);
|
||||
if (!exdata)
|
||||
return NULL;
|
||||
|
||||
if (HPDF_Xref_Add (xref, exdata) != HPDF_OK)
|
||||
return NULL;
|
||||
|
||||
ret += HPDF_Dict_AddName (exdata, "Type", "ExData");
|
||||
ret += HPDF_Dict_AddName (exdata, "Subtype", "3DM");
|
||||
|
||||
if (ret != HPDF_OK)
|
||||
return NULL;
|
||||
|
||||
return exdata;
|
||||
}
|
||||
|
||||
|
||||
|
||||
HPDF_EXPORT(HPDF_STATUS)
|
||||
HPDF_3DAnnotExData_Set3DMeasurement(HPDF_ExData exdata,
|
||||
HPDF_3DMeasure measure)
|
||||
{
|
||||
HPDF_STATUS ret = HPDF_OK;
|
||||
|
||||
ret = HPDF_Dict_Add (exdata, "M3DREF", measure);
|
||||
if (ret != HPDF_OK)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user