Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Allows one to interact with a document and its metadata (differs from CurrentDocument class) More...
#include <hdicoreDocument.h>
Classes | |
class | Preset |
Represents options when creating a new Illustrator document. More... | |
Public Member Functions | |
Document () | |
Constructs an empty Document object. | |
Document (const Document &doc_) | |
Document copy constructor. | |
Document (const AIDocumentHandle aiDoc_) | |
Constructs a new Document object from an AIDocumentHandle. | |
Document (const std::string &preset_, const bool showDialog_) | |
Creates a new document, and makes it current, from a startup preset. | |
Document (const Preset &preset_, const bool showDialog_) | |
Creates a new document, and makes it current, from new document parameters. | |
virtual | ~Document () |
Document destructor. | |
virtual Document & | operator= (const Document &rhs_) |
Assigns one Document object to another. | |
virtual AIDocumentHandle | aiDocumentHandle () const |
Gets the document handle around which the target object is wrapped. | |
virtual bool | isEmpty () const |
Gets whether the target Document object is empty (constructed with the default ctor) | |
virtual void | save () const |
Saves the target document. | |
virtual void | close () const |
Closes the target document. | |
virtual void | activate () const |
Activates (makes current) the target document. | |
virtual void | print (const bool showDialog_) const |
Prints the target document. | |
virtual std::string | url () const |
Gets the document URL. | |
virtual bool | exists () const |
Gets whether the document exists (is open or in the clipboard) | |
virtual bool | operator== (const Document &rhs_) const |
Checks whether one Document object represents the same document as another. | |
virtual bool | operator!= (const Document &rhs_) const |
Checks whether one Document object does not represent the same document as another. | |
uint32_t | artStyleCount () const |
Gets the number of art styles in the document. | |
std::unique_ptr< ArtStyle > | artStyleAtIndex (const uint32_t index_) const |
Gets a given art style, by its index, in the target doc. | |
uint32_t | symbolDefCount () const |
Gets the number of symbol definitions in the document. | |
std::unique_ptr< Symbol > | symbolDefAtIndex (const uint32_t index_) const |
Gets a given symbol definition, by its index, in the target doc. | |
Friends | |
aip::Document * | __accessImpl (const Document &) |
Document | __accessCtor (aip::Document *&) |
Allows one to interact with a document and its metadata (differs from CurrentDocument class)
hdi::core::Document::Document | ( | ) |
Constructs an empty Document object.
hdi::core::Document::Document | ( | const Document & | doc_ | ) |
hdi::core::Document::Document | ( | const AIDocumentHandle | aiDoc_ | ) |
Constructs a new Document object from an AIDocumentHandle.
aiDoc_ | Raw Illustrator AIDocumentHandle |
hdi::core::Document::Document | ( | const std::string & | preset_, |
const bool | showDialog_ | ||
) |
Creates a new document, and makes it current, from a startup preset.
preset_ | Name of a startup preset to use when creating the new document, as UTF-8 |
showDialog_ | When true, shows the new document dialog to query user for parameters |
hdi::core::Document::Document | ( | const Preset & | preset_, |
const bool | showDialog_ | ||
) |
Creates a new document, and makes it current, from new document parameters.
preset_ | Parameters for the new document |
showDialog_ | When true, shows the new document dialog to query user for parameters |
|
virtual |
Document destructor.
|
virtual |
Activates (makes current) the target document.
|
virtual |
Gets the document handle around which the target object is wrapped.
std::unique_ptr< ArtStyle > hdi::core::Document::artStyleAtIndex | ( | const uint32_t | index_ | ) | const |
Gets a given art style, by its index, in the target doc.
index_ | Index number of the style in question |
uint32_t hdi::core::Document::artStyleCount | ( | ) | const |
Gets the number of art styles in the document.
|
virtual |
Closes the target document.
|
virtual |
Gets whether the document exists (is open or in the clipboard)
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Prints the target document.
showDialog_ | When true, shows the print dialog to query the user for parameters |
|
virtual |
Saves the target document.
std::unique_ptr< Symbol > hdi::core::Document::symbolDefAtIndex | ( | const uint32_t | index_ | ) | const |
Gets a given symbol definition, by its index, in the target doc.
index_ | Index number of the symbol def in question |
uint32_t hdi::core::Document::symbolDefCount | ( | ) | const |
Gets the number of symbol definitions in the document.
|
virtual |
Gets the document URL.