diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-04 16:13:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-04 16:14:08 +0000 |
commit | 2b76184892ddaeebaf8603f62c54dee17922f274 (patch) | |
tree | 7ead69b8f130309eccf65e623d0e64a2d8ab658c /include/vcl/pdfwriter.hxx | |
parent | 79ab9d7b6ede19bc494770bba6cc59bd4618d5ae (diff) |
Revert "Doxygen warnings corrected"
This reverts commit ff8036df5c5575503dc30d255dfbe99cc637c510.
multiple build failures with namespace collisions etc
Change-Id: Ie8ac08feff518af3584a26957f07a60d95932c76
Reviewed-on: https://gerrit.libreoffice.org/7855
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/pdfwriter.hxx')
-rw-r--r-- | include/vcl/pdfwriter.hxx | 121 |
1 files changed, 66 insertions, 55 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 43c87f97c88d..1f63d37b2d18 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -666,8 +666,8 @@ The following structure describes the permissions used in PDF security ~PDFWriter(); /** Returns an OutputDevice for formatting - This Output device is guaranteed to use the same - font metrics as the resulting PDF file. + <p>This Output device is guaranteed to use the same + font metrics as the resulting PDF file.</p> @returns the reference output device @@ -675,12 +675,13 @@ The following structure describes the permissions used in PDF security OutputDevice* GetReferenceDevice(); /** Creates a new page to fill - If width and height are not set the page size - is inherited from the page tree - other effects: + <p>If width and height are not set the page size + is inherited from the page tree</p> + <p>other effects: resets the graphics state: MapMode, Font Colors and other state information MUST be set again or are undefined. + </p> @returns returns the page id of the new page @@ -706,7 +707,7 @@ The following structure describes the permissions used in PDF security void PlayMetafile( const GDIMetaFile&, const PlayMetafileContext&, vcl::PDFExtOutDevData* pDevDat = NULL ); /* sets the document locale originally passed with the context to a new value - * only affects the output if used before calling Emit/code>. + * only affects the output if used before calling <code>Emit/code>. */ void SetDocumentLocale( const com::sun::star::lang::Locale& rDocLocale ); @@ -820,10 +821,10 @@ The following structure describes the permissions used in PDF security /** Start a transparency group Drawing operations can be grouped together to acquire a common transparency - behaviour; after calling BeginTransparencyGroup all drawing + behaviour; after calling <code>BeginTransparencyGroup</code> all drawing operations will be grouped together into a transparent object. - The transparency behaviour is set with ond of the EndTransparencyGroup + The transparency behaviour is set with ond of the <code>EndTransparencyGroup</code> calls and can be either a constant transparency factor or a transparent soft mask in form of an 8 bit gray scale bitmap. @@ -873,7 +874,7 @@ The following structure describes the permissions used in PDF security /** Create a new named destination to be used in a link from another PDF document - @param sDestName + @parm sDestName the name (label) of the bookmark, to be used to jump to @param rRect @@ -930,9 +931,6 @@ The following structure describes the permissions used in PDF security point to this destination. In such cases, a public destination Id will be assigned to the form widget, and later on, the concrete destination data for this public Id will be registered using RegisterDestReference. - @param nDestId - destination ID - @param rRect target rectangle on page to be displayed if dest is jumped to @@ -950,7 +948,7 @@ The following structure describes the permissions used in PDF security /** Set the destination for a link - will change a URL type link to a dest link if necessary + <p>will change a URL type link to a dest link if necessary</p> @param nLinkId the link to be changed @@ -964,13 +962,13 @@ The following structure describes the permissions used in PDF security */ sal_Int32 SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId ); /** Set the URL for a link - will change a dest type link to an URL type link if necessary + <p>will change a dest type link to an URL type link if necessary</p> @param nLinkId the link to be changed @param rURL the URL the link shall point to. - The URL will be parsed (and corrected) by the com.sun.star.util.URLTransformer + The URL will be parsed (and corrected) by the <code>com.sun.star.util.URLTransformer</code> service; the result will then appear literally in the PDF file produced @returns @@ -979,30 +977,33 @@ The following structure describes the permissions used in PDF security */ sal_Int32 SetLinkURL( sal_Int32 nLinkId, const OUString& rURL ); /** Resolve link in logical structure - + <p> If a link is created after the corresponding visual appearance was drawn it is not possible to set the link id as a property attribute to the link structure item that should be created in tagged PDF around the visual appearance of a link. - + </p> + <p> For this reason an arbitrary id can be given to - SetStructureAttributeNumerical at the time the text for + <code>SetStructureAttributeNumerical</code> at the time the text for the link is drawn. To resolve this arbitrary id again when the actual - link annotation is created use SetLinkPropertyID. When Emit - finally gets called all LinkAnnotation type structure attributes + link annotation is created use SetLinkPropertyID. When <code>Emit</code> + finally gets called all <code>LinkAnnotation</code> type structure attributes will be replaced with the correct link id. - + </p> + <p> CAUTION: this technique must be used either for all or none of the links in a document since the link id space and arbitrary property id space - could overlap and it would be impossible to resolve whether a Link + could overlap and it would be impossible to resolve whether a <code>Link</code> structure attribute value was arbitrary or already a real id. + </p> @param nLinkId the link to be mapped @param nPropertyID - the arbitrary id set in a Link structure element to address - the link with real id nLinkId + the arbitrary id set in a <code>Link</code> structure element to address + the link with real id <code>nLinkId</code> */ void SetLinkPropertyID( sal_Int32 nLinkId, sal_Int32 nPropertyID ); /** Create a new outline item @@ -1014,7 +1015,7 @@ The following structure describes the permissions used in PDF security @param rText sets the title text of the item - @param nDestID + @param nDestId declares which Dest (created with CreateDest) the outline item will point to @@ -1083,6 +1084,7 @@ The following structure describes the permissions used in PDF security /** begin a new logical structure element + <p> BeginStructureElement/EndStructureElement calls build the logical structure of the PDF - the basis for tagged PDF. Structural elements are implemented using marked content tags. Each structural element can contain sub elements @@ -1092,26 +1094,34 @@ The following structure describes the permissions used in PDF security A structural element need not be contained on one page; e.g. paragraphs often run from one page to the next. In this case the corresponding EndStructureElement must be called while drawing the next page. + </p> + <p> BeginStructureElement and EndStructureElement must be called only after - PDFWriter::NewPage has been called and before PDFWriter::Emitgets called. The - current page number is an implicit context parameter for Begin/EndStructureElement. + <member scope="vcl">PDFWriter::NewPage</member> has been called and before + <member scope="vcl">PDFWriter::Emit</member>gets called. The current page + number is an implicit context parameter for Begin/EndStructureElement. + </p> + <p> For pagination artifacts that are not part of the logical structure of the document (like header, footer or page number) the special - StructElement NonStructElement exists. To place content + StructElement <code>NonStructElement</code> exists. To place content outside of the struture tree simply call - BeginStructureElement( NonStructElement ) then draw your - content and then call EndStructureElement(). All children - of a NonStructElement will not be part of the structure. + <code>BeginStructureElement( NonStructElement )</code> then draw your + content and then call <code>EndStructureElement()</code>. All children + of a <code>NonStructElement</code> will not be part of the structure. Nonetheless if you add a child structural element to a - NonStructElement you will still have to call - EndStructureElement for it. Best think of the structure + <code>NonStructElement</code> you will still have to call + <code>EndStructureElement</code> for it. Best think of the structure tree as a stack. + </p> + <p> Note: there is always one structural element in existance without having - called BeginStructureElement; this is the root of the structure + called <code>BeginStructureElement</code>; this is the root of the structure tree (called StructTreeRoot). The StructTreeRoot has always the id 0. + </p> @param eType denotes what kind of element to begin (e.g. a heading or paragraph) @@ -1121,32 +1131,36 @@ The following structure describes the permissions used in PDF security role map will be created mapping alias to regular structure type. @returns - the new structure element's id for use in SetCurrentStructureElement + the new structure element's id for use in <code>SetCurrentStructureElement</code> */ sal_Int32 BeginStructureElement( enum StructElement eType, const OUString& rAlias = OUString() ); /** end the current logical structure element + <p> Close the current structure element. The current element's parent becomes the current structure element again. + </p> @see BeginStructureElement */ void EndStructureElement(); /** set the current structure element + <p> For different purposes it may be useful to paint a structure element's content discontinously. In that case an already existing structure element - can be appended to by using SetCurrentStructureElement. The + can be appended to by using <code>SetCurrentStructureElement</code>. The refenrenced structure element becomes the current structure element with all consequences: all following structure elements are appended as children of the current element. + </p> @param nElement the id of the new current structure element @returns - True if the current structure element could be set successfully - False if the current structure element could not be changed + <true/> if the current structure element could be set successfully + <false/> if the current structure element could not be changed (e.g. if the passed element id is invalid) */ bool SetCurrentStructureElement( sal_Int32 nElement ); @@ -1155,7 +1169,7 @@ The following structure describes the permissions used in PDF security SetStructureAttribute sets an attribute of the current structural element to a new value. A consistency check is performed before actually setting the value; - if the check fails, the function returns False and the attribute remains + if the check fails, the function returns <FALSE/> and the attribute remains unchanged. @param eAttr @@ -1165,15 +1179,15 @@ The following structure describes the permissions used in PDF security the value to set the attribute to @returns - True if the value was valid and the change has been performed, - False if the attribute or value was invalid; attribute remains unchanged + <TRUE/> if the value was valid and the change has been performed, + <FALSE/> if the attribute or value was invalid; attribute remains unchanged */ bool SetStructureAttribute( enum StructAttribute eAttr, enum StructAttributeValue eVal ); /** set a structure attribute on the current structural element SetStructureAttributeNumerical sets an attribute of the current structural element to a new numerical value. A consistency check is performed before actually setting - the value; if the check fails, the function returns False and the attribute + the value; if the check fails, the function returns <FALSE/> and the attribute remains unchanged. @param eAttr @@ -1183,15 +1197,15 @@ The following structure describes the permissions used in PDF security the value to set the attribute to @returns - True if the value was valid and the change has been performed, - False if the attribute or value was invalid; attribute remains unchanged + <TRUE/> if the value was valid and the change has been performed, + <FALSE/> if the attribute or value was invalid; attribute remains unchanged */ bool SetStructureAttributeNumerical( enum StructAttribute eAttr, sal_Int32 nValue ); /** set the bounding box of a structural element SetStructureBoundingBox sets the BBox attribute to a new value. Since the BBox - attribute can only be applied to Table, Figure, - Form and Formula elements, a call of this function + attribute can only be applied to <code>Table</code>, <code>Figure</code>, + <code>Form</code> and <code>Formula</code> elements, a call of this function for other element types will be ignored and the BBox attribute not be set. @param rRect @@ -1251,14 +1265,11 @@ The following structure describes the permissions used in PDF security /** create a new form control This function creates a new form control in the PDF and sets its various - properties. Do not pass an actual AnyWidget as rControlType + properties. Do not pass an actual AnyWidget as <code>rControlType</code> will be cast to the type described by the type member. @param rControlType - a descendant of AnyWidget determing the control's properties - - @param nPageNr - the page number to apply the effect to; -1 denotes the current page + a descendant of <code>AnyWidget</code> determing the control's properties @returns the new control's id for reference purposes @@ -1268,9 +1279,9 @@ The following structure describes the permissions used in PDF security /** Inserts an additional stream to the PDF file This function adds an arbitrary stream to the produced PDF file. May be called - any time before Emit(). The stream will be written during - Emit by calling the PDFOutputStream Object's write - method. After the call the PDFOutputStream will be deleted. + any time before <code>Emit()</code>. The stream will be written during + <code>Emit</code> by calling the <code>PDFOutputStream</code> Object's <code>write</code> + method. After the call the <code>PDFOutputStream</code> will be deleted. All additional streams and their mimetypes will be entered into an array in the trailer dictionary. @@ -1278,7 +1289,7 @@ The following structure describes the permissions used in PDF security @param rMimeType the mimetype of the stream - @param pStream + @param rStream the interface to the additional stream @param bCompress |