All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.xfa.text.FrameLineHelper Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
package com.adobe.xfa.text;

/**
 * @exclude from published api.
 */

abstract class FrameLineHelper extends FrameHelper {
	private DispLineWrapped mpoLine;

	FrameLineHelper (TextSparseStream poStream, int eProcess) {
		super (poStream, eProcess);
		mpoLine = null;
	}

	protected boolean processOneFrame (TextFrame poFrame) {
		if (poFrame != null) {
			int nAbsLineIndex = getAbsLineIndex();
			int nLines = poFrame.getLineCount();

			for (int i = 0; i < nLines; i++) {
				setLineIndex (i);
				setAbsLineIndex (nAbsLineIndex + i);
				mpoLine = poFrame.getLine (i);

				if (! processOneLine (mpoLine)) {
					return false;
				}
			}
		}

		return true;
	}

	protected boolean finish () {
		mpoLine = null;
		return true;
	}

	abstract boolean processOneLine (DispLineWrapped poLine);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy