#include <PdfPublishAttachedFile.h>
This class implements an attached file entity in .pdf documents created with Publish SDK.
Definition at line 48 of file PdfPublishAttachedFile.h.
◆ OdAttachedFile()
| OdPdfPublish::OdAttachedFile::OdAttachedFile |
( |
| ) |
|
|
protected |
◆ ~OdAttachedFile()
| virtual OdPdfPublish::OdAttachedFile::~OdAttachedFile |
( |
| ) |
|
|
virtual |
Destroys an attached file object.
◆ addDateCollectionItem()
Adds the date collection item for the attached file.
- Parameters
-
| name | [in] A new name of collection item value. |
| date | [in] A new collection item value. |
◆ addNumberCollectionItem()
| void OdPdfPublish::OdAttachedFile::addNumberCollectionItem |
( |
const OdString & | name, |
|
|
const double & | number ) |
Adds the number collection item for the attached file.
- Parameters
-
| name | [in] A new name of collection item value. |
| number | [in] A new collection item value. |
◆ addTextCollectionItem()
| void OdPdfPublish::OdAttachedFile::addTextCollectionItem |
( |
const OdString & | name, |
|
|
const OdString & | item ) |
Adds the text collection item for the attached file.
- Parameters
-
| name | [in] A new name of collection item value. |
| item | [in] A new collection item value. |
◆ getCreationDate()
| void OdPdfPublish::OdAttachedFile::getCreationDate |
( |
OdTimeStamp & | creation_date | ) |
const |
Returns the current creation date of the attached file. The method fills a passed TimeStamp and returns it to the calling subroutine.
- Parameters
-
| creation_date | [out] A placeholder for creation date value. |
◆ getDateCollectionItems()
Returns a collection of date collection item of the attached file. This method fills the passed string array and array of TimeStamp objects, then returns them to a calling subroutine.
- Parameters
-
| names | [out] A placeholder for collection item names. |
| images | [out] A placeholder for date collection item values. |
◆ getDescription()
| void OdPdfPublish::OdAttachedFile::getDescription |
( |
OdString & | description | ) |
const |
Returns the current description of the attached file. The method fills a passed string object and returns it to the calling subroutine.
- Parameters
-
| description | [out] A placeholder for description value. |
◆ getFile()
| void OdPdfPublish::OdAttachedFile::getFile |
( |
OdString & | out_filename | ) |
const |
Returns the current image full filename. The method fills a passed string object and returns it to the calling subroutine.
- Parameters
-
| out_filename | [out] A placeholder for the full filename. |
◆ getFileStream()
Returns the current StreamBuf object. The method fills a passed StreamBuf object and returns it to the calling subroutine.
- Parameters
-
| file | [out] A placeholder for the StreamBuf object. |
◆ getModDate()
| void OdPdfPublish::OdAttachedFile::getModDate |
( |
OdTimeStamp & | mod_date | ) |
const |
Returns the current modification date of the attached file. The method fills a passed TimeStamp and returns it to the calling subroutine.
- Parameters
-
| mod_date | [out] A placeholder for modification date value. |
◆ getName()
| void OdPdfPublish::OdAttachedFile::getName |
( |
OdString & | name | ) |
const |
Returns the current displayed name of the attached file. The method fills a passed string object and returns it to the calling subroutine.
- Parameters
-
| name | [out] A placeholder for displayed name value. |
◆ getNumberCollectionItems()
Returns a collection of number collection item of the attached file. This method fills the passed string array and array of double, then returns them to a calling subroutine.
- Parameters
-
| names | [out] A placeholder for collection item names. |
| images | [out] A placeholder for number collection item values. |
◆ getTextCollectionItems()
Returns a collection of text collection item of the attached file. This method fills the passed string array and string array, then returns them to a calling subroutine.
- Parameters
-
| names | [out] A placeholder for collection item names. |
| images | [out] A placeholder for collection item values. |
◆ getThumb()
| void OdPdfPublish::OdAttachedFile::getThumb |
( |
OdImagePtr & | pOutImage | ) |
const |
Returns the current thumbnail raster image object of the attached file. The method fills a passed raster image object and returns it to the calling subroutine.
- Parameters
-
| pOutImage | [out] A placeholder for raster image object. |
◆ ODRX_DECLARE_MEMBERS()
◆ ODRX_HEAP_OPERATORS()
| OdPdfPublish::OdAttachedFile::ODRX_HEAP_OPERATORS |
( |
| ) |
|
◆ setCreationDate()
| void OdPdfPublish::OdAttachedFile::setCreationDate |
( |
const OdTimeStamp & | creation_date | ) |
|
Sets the creation date of the attached file.
- Parameters
-
| creation_date | [in] A new creation date value. |
◆ setDescription()
| void OdPdfPublish::OdAttachedFile::setDescription |
( |
const OdString & | description | ) |
|
Sets the description of the attached file.
- Parameters
-
| description | [in] A new description value. |
◆ setFile()
| void OdPdfPublish::OdAttachedFile::setFile |
( |
const OdString & | filename | ) |
|
Sets the full filename of the attached file. Use IsValid() to check the status of the operation.
- Parameters
-
| filename | [in] A new filename value. |
◆ setFileStream()
Sets the full filename of the attached file. Use IsValid() to check the status of the operation.
- Parameters
-
| file | [in] A smart pointer to a StreamBuf object. |
◆ setModDate()
| void OdPdfPublish::OdAttachedFile::setModDate |
( |
const OdTimeStamp & | mod_date | ) |
|
Sets the modification date of the attached file.
- Parameters
-
| mod_date | [in] A new modification date value. |
◆ setName()
| void OdPdfPublish::OdAttachedFile::setName |
( |
const OdString & | name | ) |
|
Sets the displayed name of the attached file. Use IsValid() to check the status of the operation.
- Parameters
-
| name | [in] A new displayed name value. |
◆ setThumb()
| void OdPdfPublish::OdAttachedFile::setThumb |
( |
const OdImagePtr & | pImage | ) |
|
Sets the thumbnail image of the attached file.
- Parameters
-
| pImage | [in] A smart pointer to a thumbnail raster image object. |
The documentation for this class was generated from the following file: