Browse Source

fixes checkstyles issues from revisions 1391502 and 1400536

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1405526 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_0
Luis Bernardo 11 years ago
parent
commit
0fea0e4a63

+ 0
- 6
src/java/org/apache/fop/area/PageViewport.java View File

import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;


import org.apache.fop.apps.FOPException; import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.flow.Marker;
import org.apache.fop.fo.Constants;
import org.apache.fop.fo.flow.AbstractRetrieveMarker; import org.apache.fop.fo.flow.AbstractRetrieveMarker;
import org.apache.fop.fo.flow.Marker; import org.apache.fop.fo.flow.Marker;
import org.apache.fop.fo.flow.Markers; import org.apache.fop.fo.flow.Markers;
import org.apache.fop.fo.pagination.SimplePageMaster; import org.apache.fop.fo.pagination.SimplePageMaster;
import org.apache.fop.traits.WritingModeTraitsGetter; import org.apache.fop.traits.WritingModeTraitsGetter;


import static org.apache.fop.fo.Constants.EN_FIC;
import static org.apache.fop.fo.Constants.EN_FSWP;
import static org.apache.fop.fo.Constants.EN_LEWP;
import static org.apache.fop.fo.Constants.EN_LSWP;
import static org.apache.fop.fo.Constants.FO_REGION_BODY; import static org.apache.fop.fo.Constants.FO_REGION_BODY;


/** /**

+ 1
- 1
src/java/org/apache/fop/fo/Constants.java View File

int PR_X_BORDER_AFTER_START_RADIUS = 287; int PR_X_BORDER_AFTER_START_RADIUS = 287;
/** Property constant FOP proprietary*/ /** Property constant FOP proprietary*/
int PR_X_BORDER_AFTER_END_RADIUS = 288; int PR_X_BORDER_AFTER_END_RADIUS = 288;
/** /**
* Property constant - FOP proprietary extension (see NumberConverter) used * Property constant - FOP proprietary extension (see NumberConverter) used
* to perform additional control over number conversion when generating page * to perform additional control over number conversion when generating page

+ 1
- 1
src/java/org/apache/fop/fo/FOValidationEventProducer.java View File



/** /**
* A valid but not yet supported child was encountered. * A valid but not yet supported child was encountered.
*
*
* @param source the event source * @param source the event source
* @param elementName the name of the context node * @param elementName the name of the context node
* @param offendingNode the offending node * @param offendingNode the offending node

+ 1
- 1
src/java/org/apache/fop/fo/flow/Markers.java View File

* are ending, replacing earlier markers. * are ending, replacing earlier markers.
* *
* @param marks a map of markers to register * @param marks a map of markers to register
* @param starting whether the registration happens at the start (true) or end (false) the the area
* @param starting whether the registration happens at the start (true) or end (false) the the area
* @param isfirst whether it is the first area of the parent LM * @param isfirst whether it is the first area of the parent LM
* @param islast whether it is the last area of the parent LM * @param islast whether it is the last area of the parent LM
*/ */

+ 0
- 1
src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java View File

import org.apache.fop.fo.FObj; import org.apache.fop.fo.FObj;
import org.apache.fop.fo.flow.Marker; import org.apache.fop.fo.flow.Marker;
import org.apache.fop.fo.flow.RetrieveMarker; import org.apache.fop.fo.flow.RetrieveMarker;
import org.apache.fop.layoutmgr.table.TableLayoutManager;


/** /**
* The base class for most LayoutManagers. * The base class for most LayoutManagers.

+ 2
- 3
src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java View File

footnoteListIndex++; footnoteListIndex++;
footnoteElementIndex footnoteElementIndex
= getFootnoteList(footnoteListIndex).size() - 1; = getFootnoteList(footnoteListIndex).size() - 1;
}
// try adding some more content
else if ((tmpLength - insertedFootnotesLength) <= availableBPD) {
} else if ((tmpLength - insertedFootnotesLength) <= availableBPD) {
// try adding some more content
// add a whole footnote // add a whole footnote
availableBPD -= tmpLength - insertedFootnotesLength; availableBPD -= tmpLength - insertedFootnotesLength;
insertedFootnotesLength = tmpLength; insertedFootnotesLength = tmpLength;

+ 0
- 4
src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java View File



package org.apache.fop.layoutmgr; package org.apache.fop.layoutmgr;


import java.util.LinkedList;
import java.util.List; import java.util.List;


import org.apache.fop.area.Area; import org.apache.fop.area.Area;
import org.apache.fop.area.Block; import org.apache.fop.area.Block;
import org.apache.fop.area.RegionReference; import org.apache.fop.area.RegionReference;
import org.apache.fop.fo.Constants; import org.apache.fop.fo.Constants;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.pagination.PageSequence; import org.apache.fop.fo.pagination.PageSequence;
import org.apache.fop.fo.pagination.SideRegion; import org.apache.fop.fo.pagination.SideRegion;
import org.apache.fop.fo.pagination.StaticContent; import org.apache.fop.fo.pagination.StaticContent;
import org.apache.fop.layoutmgr.PageBreakingAlgorithm.PageBreakingLayoutListener;
import org.apache.fop.layoutmgr.inline.TextLayoutManager;


/** /**
* LayoutManager for an fo:flow object. * LayoutManager for an fo:flow object.

+ 0
- 1
src/java/org/apache/fop/layoutmgr/TraitSetter.java View File

if (width > 0 || radiusStart > 0 || radiusEnd > 0) { if (width > 0 || radiusStart > 0 || radiusEnd > 0) {
area.addTrait(traitCode, new BorderProps(bpProps.getBorderStyle(side), width, radiusStart, area.addTrait(traitCode, new BorderProps(bpProps.getBorderStyle(side), width, radiusStart,
radiusEnd, bpProps.getBorderColor(side), mode)); radiusEnd, bpProps.getBorderColor(side), mode));
} }
} }



+ 1
- 1
src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java View File



/** /**
* Saves a TableCellLayoutManager for later use. * Saves a TableCellLayoutManager for later use.
*
*
* @param tclm a TableCellLayoutManager that has a RetrieveTableMarker * @param tclm a TableCellLayoutManager that has a RetrieveTableMarker
*/ */
protected void saveTableHeaderTableCellLayoutManagers(TableCellLayoutManager tclm) { protected void saveTableHeaderTableCellLayoutManagers(TableCellLayoutManager tclm) {

+ 1
- 1
src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java View File

return false; return false;
} }


private static PDFICCStream getDefaultsRGBICCStream(PDFICCBasedColorSpace cs, PDFDocument doc,
private static PDFICCStream getDefaultsRGBICCStream(PDFICCBasedColorSpace cs, PDFDocument doc,
String profileDesc) { String profileDesc) {
if (cs == null) { if (cs == null) {
if (profileDesc == null || !profileDesc.startsWith("sRGB")) { if (profileDesc == null || !profileDesc.startsWith("sRGB")) {

Loading…
Cancel
Save