ASF Bugzilla – Attachment 26828 Details for
Bug 51008
[PATCH] page-number-citation-last does not work in RTF
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Handles the citation-last like a normal citation
page-number-citation-last.patch (text/plain), 2.10 KB, created by
Max Aster
on 2011-04-01 10:28:24 UTC
(
hide
)
Description:
Handles the citation-last like a normal citation
Filename:
MIME Type:
Creator:
Max Aster
Created:
2011-04-01 10:28:24 UTC
Size:
2.10 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P fop_trunk >Index: src/java/org/apache/fop/render/rtf/RTFHandler.java >=================================================================== >--- src/java/org/apache/fop/render/rtf/RTFHandler.java (revision 1087675) >+++ src/java/org/apache/fop/render/rtf/RTFHandler.java (working copy) >@@ -78,6 +78,7 @@ > import org.apache.fop.fo.flow.ListItemLabel; > import org.apache.fop.fo.flow.PageNumber; > import org.apache.fop.fo.flow.PageNumberCitation; >+import org.apache.fop.fo.flow.PageNumberCitationLast; > import org.apache.fop.fo.flow.table.Table; > import org.apache.fop.fo.flow.table.TableBody; > import org.apache.fop.fo.flow.table.TableCell; >@@ -1447,7 +1448,27 @@ > throw new RuntimeException(e.getMessage()); > } > } >+ >+ /** {@inheritDoc} */ >+ public void startPageNumberCitationLast(PageNumberCitationLast l) { >+ if (bDefer) { >+ return; >+ } >+ try { > >+ IRtfTextrunContainer container >+ = (IRtfTextrunContainer)builderContext.getContainer( >+ IRtfTextrunContainer.class, true, this); >+ RtfTextrun textrun = container.getTextrun(); >+ >+ textrun.addPageNumberCitation(l.getRefId()); >+ >+ } catch (Exception e) { >+ log.error("startPageNumberCitationLast: " + e.getMessage()); >+ throw new RuntimeException(e.getMessage()); >+ } >+ } >+ > private void prepareTable(Table tab) { > // Allows to receive the available width of the table > percentManager.setDimension(tab); >@@ -1641,6 +1662,12 @@ > } else { > endPageNumberCitation((PageNumberCitation) foNode); > } >+ } else if (foNode instanceof PageNumberCitationLast) { >+ if (bStart) { >+ startPageNumberCitationLast((PageNumberCitationLast) foNode); >+ } else { >+ endPageNumberCitationLast((PageNumberCitationLast) foNode); >+ } > } else { > RTFEventProducer eventProducer = RTFEventProducer.Provider.get( > getUserAgent().getEventBroadcaster());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51008
:
26827
| 26828 |
26829