CFx SDK Documentation  2020SP3
DbHyperlink.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 #ifndef _ODDBHYPERLINK_INCLUDED_
27 #define _ODDBHYPERLINK_INCLUDED_
28 
29 #include "TD_PackPush.h"
30 #include "RxObject.h"
31 #include "DbStubPtrArray.h"
32 
57 {
58 public:
62  enum HLinkFlags
63  {
64  kUndefined = 0,
65  kConvertDwgToDwf = 0x1
66  };
67 
69  virtual ~OdDbHyperlink(){};
70 
74  virtual const OdString name() const = 0;
75 
81  virtual void setName(
82  const OdString& name) = 0;
83 
87  virtual const OdString description() const = 0;
88 
97  virtual void setDescription(
98  const OdString& description) = 0;
99 
103  virtual const OdString subLocation() const = 0;
104 
110  virtual void setSubLocation(
111  const OdString& subLocation) = 0;
112 
119  virtual const OdString getDisplayString() const = 0;
120 
124  virtual bool isOutermostContainer() const = 0;
125 
130  virtual int getNestedLevel() const = 0;
131 
135  virtual OdInt32 flags() const = 0;
136 
140  virtual void setFlags(OdInt32 lFlags) = 0;
141 
142 };
143 
157 {
158 public:
162 
170  virtual void addHead(
171  const OdString& name,
172  const OdString& description,
173  const OdString& subLocation = OdString::kEmpty) = 0;
174 
182  virtual void addTail(
183  const OdString& name,
184  const OdString& description,
185  const OdString& subLocation = OdString::kEmpty) = 0;
186 
199  virtual void addAt(
200  const int hyperlinkIndex,
201  const OdString& name,
202  const OdString& description,
203  const OdString& subLocation = OdString::kEmpty) = 0;
204 
208  virtual void removeHead() = 0;
209 
213  virtual void removeTail() = 0;
214 
220  virtual void removeAt(
221  const int hyperlinkIndex) = 0;
222 
226  virtual int count() const = 0;
227 
228 
234  virtual OdDbHyperlink * item(
235  const int hyperlinkIndex) const = 0;
236 };
237 
242 
243 
260 {
261 public:
262 
265 
267 
284  const OdRxObject* pObject,
285  bool oneOnly = false,
286  bool ignoreBlockDefinition = true) = 0;
287 
304  const OdDbStubPtrArray*& objectIds,
305  bool oneOnly = false,
306  bool ignoreBlockDefinition = true) = 0;
307 
318  const OdRxObject * pObject,
319  OdDbHyperlinkCollection * pHCO) = 0;
320 
332  virtual unsigned int getHyperlinkCount(
333  const OdRxObject * pObject,
334  bool ignoreBlockDefinition = true) = 0;
335 
346  virtual unsigned int getHyperlinkCount(
347  const OdDbStubPtrArray *& idContainers,
348  bool ignoreBlockDefinition = true) = 0;
349 
362  virtual bool hasHyperlink(
363  const OdRxObject * pObject,
364  bool ignoreBlockDefinition = true) = 0;
365 
366 
379  virtual bool hasHyperlink(
380  const OdDbStubPtrArray *& objectIds,
381  bool ignoreBlockDefinition = true) = 0;
382 
383 };
388 
395 #include "TD_PackPop.h"
396 #endif // _ODDBHYPERLINK_INCLUDED_
OdString
Definition: OdString.h:95
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdRxObject
Definition: RxObject.h:564
OdArray< OdDbStub *, OdMemoryAllocator< OdDbStub * > >
TD_PackPop.h
RxObject.h
OdSmartPtr
Definition: SmartPtr.h:58
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
TD_PackPush.h
DBROOT_EXPORT
#define DBROOT_EXPORT
Definition: DbRootExport.h:39
OdString::kEmpty
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
DbStubPtrArray.h
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)