#include <clicarea.h>
Inheritance diagram for ImagemapClickablePolygon:
Public Member Functions | |
ImagemapClickablePolygon () | |
Default contructor. | |
ImagemapClickablePolygon (Path *pthToCopy, TCHAR *pcURL=NULL, TCHAR *pcFrame=NULL) | |
Specific contructor. | |
~ImagemapClickablePolygon () | |
Destructor. | |
ImagemapClickablePolygon (const ImagemapClickablePolygon &icpCopy) | |
Copy constructor. | |
ImagemapClickablePolygon & | operator= (const ImagemapClickablePolygon &icpCopy) |
Assignment operator. | |
INT32 | Write (CCLexFile *pfileToWrite=NULL, TCHAR *pcBuffer=NULL) |
Writes this clickable area, in client-side imagemap form, into the buffer or the file or both. | |
DocRect | GetBoundingRect () |
Public Attributes | |
Path * | m_ppth |
Definition at line 252 of file clicarea.h.
|
Default contructor. ImagemapClickablePolygon::ImagemapClickablePolygon() : ImagemapClickableArea()
Definition at line 611 of file clicarea.cpp. 00611 : ImagemapClickableArea() 00612 { 00613 m_ppth=NULL; 00614 }
|
|
Specific contructor. ImagemapClickablePolygon::ImagemapClickablePolygon(Path* ppthPath)
Definition at line 628 of file clicarea.cpp. 00629 : ImagemapClickableArea(pcURL, pcFrame) 00630 { 00631 //Create a new path member variable 00632 m_ppth=new Path(); 00633 00634 //Initialise it 00635 m_ppth->Initialise(ppthPath->GetNumCoords()); 00636 00637 //And copy the path we have been given 00638 m_ppth->CopyPathDataFrom(ppthPath); 00639 }
|
|
Destructor. ImagemapClickablePolygon::~ImagemapClickablePolygon()
Definition at line 653 of file clicarea.cpp. 00654 { 00655 //If we have a path member variable, delete it 00656 if (m_ppth) 00657 delete m_ppth; 00658 }
|
|
Copy constructor. ImagemapClickablePolygon::ImagemapClickablePolygon(const ImagemapClickablePolygon& waaCopy);
Definition at line 672 of file clicarea.cpp. 00673 :ImagemapClickableArea(icpCopy) 00674 { 00675 //Simply use the assignment operator 00676 *this=icpCopy; 00677 00678 }
|
|
Implements ImagemapClickableArea. Definition at line 274 of file clicarea.h. 00275 { 00276 if (m_ppth) 00277 return m_ppth->GetBoundingRect(); 00278 else 00279 return DocRect(0,0,0,0); 00280 }
|
|
Assignment operator. ImagemapClickablePolygon& ImagemapClickablePolygon::operator=(const ImagemapClickablePolygon& icpCopy)
Definition at line 692 of file clicarea.cpp. 00693 { 00694 //Delete our member variable path 00695 if (m_ppth) 00696 delete m_ppth; 00697 00698 //Now, does the other ICP have a member path variable? 00699 if (icpCopy.m_ppth!=NULL) 00700 { 00701 //Yes. So create a new path member variable 00702 m_ppth=new Path(); 00703 00704 //Initialise it 00705 m_ppth->Initialise(icpCopy.m_ppth->GetNumCoords()); 00706 00707 //And copy the path we have been given 00708 m_ppth->CopyPathDataFrom(icpCopy.m_ppth); 00709 } 00710 else 00711 { 00712 //No. So set our member path pointer to NULL 00713 m_ppth=NULL; 00714 } 00715 00716 return *this; 00717 00718 }
|
|
Writes this clickable area, in client-side imagemap form, into the buffer or the file or both. INT32 ImagemapClickablePolygon::Write(CCLexFile* pfileToWrite, TCHAR* pcBuffer)
Implements ImagemapClickableArea. Definition at line 743 of file clicarea.cpp. 00744 { 00745 PORTNOTETRACE("other","ImagemapClickableArea::Write - do nothing"); 00746 #ifndef EXCLUDE_FROM_XARALX 00747 //Keep a count of the characters we write out 00748 INT32 lCharsWritten=0; 00749 00750 ImagemapFilter * pFilter = GetImagemapFilter(); 00751 ERROR2IF(pFilter == NULL,lCharsWritten,"ImagemapClickablePolygon::Write no imagemap filter"); 00752 00753 //First indent the text 00754 pFilter->Indent(); 00755 lCharsWritten += pFilter->WriteIndent(pfileToWrite, pcBuffer); 00756 00757 //And write out <AREA 00758 lCharsWritten += pFilter->WriteStartOfTag(_R(IDS_HTMLEXPORT_AREA), pfileToWrite, pcBuffer); 00759 00760 //Now write out SHAPE=PATH 00761 lCharsWritten += pFilter->WriteParameter(_R(IDS_HTMLEXPORT_SHAPE), _R(IDS_HTMLEXPORT_POLYGON), pfileToWrite, pcBuffer); 00762 00763 //Write out the URL and the FRAME 00764 lCharsWritten += WriteURLAndFrame(pfileToWrite, pcBuffer); 00765 00766 //And write out our coords 00767 lCharsWritten += pFilter->WriteCoords(m_ppth, m_pcFrame, pfileToWrite, pcBuffer); 00768 00769 //And the end of the tag 00770 lCharsWritten += pFilter->WriteEndOfTag(pfileToWrite, pcBuffer); 00771 00772 //Then reset the indent 00773 pFilter->Unindent(); 00774 00775 //And write out a new line 00776 lCharsWritten += pFilter->WriteEOL(pfileToWrite, pcBuffer); 00777 00778 //And return the number of characters we've written 00779 return lCharsWritten; */ 00780 #else 00781 return 0; 00782 #endif 00783 }
|
|
Definition at line 284 of file clicarea.h. |