CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbHyperlink.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
56{
57public:
62 {
64 kUndefined = 0,
66 kConvertDwgToDwf = 0x1
67 };
68
73
78 virtual ~OdDbHyperlink(){};
79
83 virtual const OdString name() const = 0;
84
90 virtual void setName(
91 const OdString& name) = 0;
92
96 virtual const OdString description() const = 0;
97
107 virtual void setDescription(
108 const OdString& description) = 0;
109
113 virtual const OdString subLocation() const = 0;
114
120 virtual void setSubLocation(
121 const OdString& subLocation) = 0;
122
130 virtual const OdString getDisplayString() const = 0;
131
136 virtual bool isOutermostContainer() const = 0;
137
142 virtual int getNestedLevel() const = 0;
143
150 virtual OdInt32 flags() const = 0;
151
160 virtual void setFlags(OdInt32 lFlags) = 0;
161
162};
163
177{
178public:
179 //DOM-IGNORE-BEGIN
181 //DOM-IGNORE-END
182
188
194
203 virtual void addHead(
204 const OdString& name,
205 const OdString& description,
206 const OdString& subLocation = OdString::kEmpty) = 0;
207
216 virtual void addTail(
217 const OdString& name,
218 const OdString& description,
219 const OdString& subLocation = OdString::kEmpty) = 0;
220
233 virtual void addAt(
234 const int hyperlinkIndex,
235 const OdString& name,
236 const OdString& description,
237 const OdString& subLocation = OdString::kEmpty) = 0;
238
242 virtual void removeHead() = 0;
243
247 virtual void removeTail() = 0;
248
255 virtual void removeAt(
256 const int hyperlinkIndex) = 0;
257
261 virtual int count() const = 0;
262
270 const int hyperlinkIndex) const = 0;
271};
272
278
279
297{
298public:
299
305
311
312 //DOM-IGNORE-BEGIN
314 //DOM-IGNORE-END
315
333 const OdRxObject* pObject,
334 bool oneOnly = false,
335 bool ignoreBlockDefinition = true) = 0;
336
354 const OdRxObject* pObject,
355 bool oneOnly = false,
356 bool ignoreBlockDefinition = true) {
357 return getHyperlinkCollection(pObject, oneOnly, ignoreBlockDefinition);
358 };
359
377 const OdDbStubPtrArray*& objectIds,
378 bool oneOnly = false,
379 bool ignoreBlockDefinition = true) = 0;
380
393 const OdRxObject* pObject,
394 OdDbHyperlinkCollection* pHCO) = 0;
395
410 virtual unsigned int getHyperlinkCount(
411 const OdRxObject* pObject,
412 bool ignoreBlockDefinition = true) = 0;
413
429 virtual unsigned int getHyperlinkCount(
430 const OdDbStubPtrArray*& idContainers,
431 bool ignoreBlockDefinition = true) = 0;
432
448 virtual bool hasHyperlink(
449 const OdRxObject* pObject,
450 bool ignoreBlockDefinition = true) = 0;
451
468 virtual bool hasHyperlink(
469 const OdDbStubPtrArray*& objectIds,
470 bool ignoreBlockDefinition = true) = 0;
471};
477
484
494
500#include "TD_PackPop.h"
501#endif // _ODDBHYPERLINK_INCLUDED_
#define DBROOT_EXPORT
Definition: DbRootExport.h:39
int OdInt32
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint const GLchar * name
Definition: gles2_ext.h:265