00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __OP_Utils_h__
00020 #define __OP_Utils_h__
00021
00022 #include "OP_API.h"
00023 #include "OP_Node.h"
00024
00025 class OP_NetworkBoxItem;
00026 class UT_WorkBuffer;
00027 class UT_StringArray;
00028
00029 OP_API void OPwarnBadRefs(UT_WorkBuffer &msg,
00030 const UT_StringArray &badrefs);
00031 OP_API bool OPconvertOrWarnExternalReferences(OP_Node *node,
00032 bool checktoplevelnode,
00033 UT_WorkBuffer &err);
00034 OP_API bool OPconvertOrWarnExternalOverrides(OP_Node *node,
00035 bool checktoplevelnode,
00036 UT_WorkBuffer &err);
00037
00038
00039
00040
00041 OP_API bool OPcheckForVopnetDefinedNodes(OP_Node *node,
00042 UT_WorkBuffer &err);
00043 OP_API void OPgetVopSubnetMask(OP_Node *node,
00044 UT_String &vopnetmask);
00045
00046 OP_API OP_Node *OPfindOpInput(OP_Node *op, const char *find_op_type,
00047 bool include_me = true);
00048 OP_API OP_Node *OPfindOpInput(OP_Node *op, const char **find_op_types,
00049 bool include_me = true);
00050
00051
00052
00053
00054 OP_API void OPgetItemBounds(fpreal &x1, fpreal &y1, fpreal &x2, fpreal &y2,
00055 const UT_PtrArray<OP_NetworkBoxItem *> &items);
00056
00057
00058
00059
00060
00061 OP_API bool OPcheckForVopnetsUsedOutside(OP_Node *node,
00062 OP_NodeList *badvopnets);
00063
00064 #endif