⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtfdestinationstylesheettable.java

📁 源码包含生成 PDF 和 HTML 的类库
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		return true;	}	/* (non-Javadoc)	 * @see com.lowagie.text.rtf.direct.RtfDestination#handleGroupStart()	 */	public boolean handleOpenGroup() {		return true;	}	/* (non-Javadoc)	 * @see com.lowagie.text.rtf.direct.RtfDestination#handleCharacter(int)	 */	public boolean handleCharacter(int ch) {		styleName += (char)ch;		return true;	}		public void createNewStyle() {		//public RtfParagraphStyle(String styleName, String fontName, int fontSize, int fontStyle, Color fontColor)		//this.rtfParagraphStyle = new RtfParagraphStyle();	}		/**	 * Set the justification percentage from parsed value.	 * @param percent The justification percentage	 * @return The justification percentage	 */	public int setJustificationPercentage(int percent) {		this.justificationPercentage = percent;		return this.justificationPercentage;	}	/**	 * Get the justification percentage.	 * @return The justification percentage value.	 */	public int getJustificationPercentage() {		return this.justificationPercentage;	}	/**	 * Set the alignment value from the parsed value.	 * @param alignment The alignment value.	 * @return The alignment value.	 */	public int setAlignment(int alignment) {		this.alignment = alignment;		return this.alignment;	}	/**	 * Get the alignment value.	 * @return The alignment value.	 */	public int getAlignment() {		return this.alignment;	}	/**	 * Get the first line indent value.	 * 	 * @return the firstLineIndent	 */	public int getFirstLineIndent() {		return firstLineIndent;	}	/**	 * Set the first line indent value.	 * @param firstLineIndent the firstLineIndent to set	 */	public void setFirstLineIndent(int firstLineIndent) {		this.firstLineIndent = firstLineIndent;	}	/**	 * Get the left indent value	 * @return the left indent	 */	public int getIndent() {		return leftIndent;	}	/**	 * Set the left indent value from the value parsed.	 * @param indent the left indent value.	 */	public void setIndent(int indent) {		this.leftIndent = indent;	}	/**	 * Get the right indent adjustment value	 * @return the adustRightIndent value	 */	public int getAdustRightIndent() {		return adustRightIndent;	}	/**	 * Set the right indent adjustment value	 * @param adustRightIndent the adustRightIndent to set	 */	public void setAdustRightIndent(int adustRightIndent) {		this.adustRightIndent = adustRightIndent;	}	/**	 * Get the left indent value	 * @return the leftIndent	 */	public int getLeftIndent() {		return leftIndent;	}	/**	 * Set the left indent value	 * @param leftIndent the leftIndent to set	 */	public void setLeftIndent(int leftIndent) {		this.leftIndent = leftIndent;	}	/**	 * Get the value indicating if document has mirrored indents.	 * 	 * @return the mirrorIndent	 */	public int getMirrorIndent() {		return mirrorIndent;	}	/**	 * Set the mirrored indent value from the parsed value.	 * 	 * @param mirrorIndent the mirrorIndent to set	 */	public void setMirrorIndent(int mirrorIndent) {		this.mirrorIndent = mirrorIndent;	}	/**	 * Get the right indent value.	 * 	 * @return the rightIndent	 */	public int getRightIndent() {		return rightIndent;	}	/**	 * Set the right indent value.	 * 	 * @param rightIndent the rightIndent to set	 */	public void setRightIndent(int rightIndent) {		this.rightIndent = rightIndent;	}	/**	 * Get the ovirride widow control value.	 * 	 * @return the overrideWidowControl	 */	public int getOverrideWidowControl() {		return overrideWidowControl;	}	/**	 * Set the override widow control.	 * 	 * @param overrideWidowControl the overrideWidowControl to set	 */	public void setOverrideWidowControl(int overrideWidowControl) {		this.overrideWidowControl = overrideWidowControl;	}	/**	 * Get the auto space between DBC and English indicator.	 * 	 * @return the autoSpaceBetweenDBCEnglish	 */	public int getAutoSpaceBetweenDBCEnglish() {		return AutoSpaceBetweenDBCEnglish;	}	/**	 * Set the auto space between DBC and English indicator.	 * 	 * @param autoSpaceBetweenDBCEnglish the autoSpaceBetweenDBCEnglish to set	 */	public void setAutoSpaceBetweenDBCEnglish(int autoSpaceBetweenDBCEnglish) {		AutoSpaceBetweenDBCEnglish = autoSpaceBetweenDBCEnglish;	}	/**	 * Get the auto space between DBC and Numbers indicator.	 * @return the autoSpaceBetweenDBCNumbers	 */	public int getAutoSpaceBetweenDBCNumbers() {		return AutoSpaceBetweenDBCNumbers;	}	/**	 * Set the auto space between DBC and Numbers indicator.	 * @param autoSpaceBetweenDBCNumbers the autoSpaceBetweenDBCNumbers to set	 */	public void setAutoSpaceBetweenDBCNumbers(int autoSpaceBetweenDBCNumbers) {		AutoSpaceBetweenDBCNumbers = autoSpaceBetweenDBCNumbers;	}	/**	 * Get no character wrapping indicator.	 * 	 * @return the noCharacterWrapping	 */	public int getNoCharacterWrapping() {		return noCharacterWrapping;	}	/**	 * Set the no character wrapping indicator from parsed value	 * 	 * @param noCharacterWrapping the noCharacterWrapping to set	 */	public void setNoCharacterWrapping(int noCharacterWrapping) {		this.noCharacterWrapping = noCharacterWrapping;	}	/**	 * Get the no overflow period comma indicator.	 * 	 * @return the noOverflowPeriodComma	 */	public int getNoOverflowPeriodComma() {		return noOverflowPeriodComma;	}	/**	 * Set the no overflow period comma indicator from the parsed value.	 * 	 * @param noOverflowPeriodComma the noOverflowPeriodComma to set	 */	public void setNoOverflowPeriodComma(int noOverflowPeriodComma) {		this.noOverflowPeriodComma = noOverflowPeriodComma;	}	/**	 * Get the no word wrapping indicator.	 * 	 * @return the noWordWrapping	 */	public int getNoWordWrapping() {		return noWordWrapping;	}	/**	 * Set the no word wrapping indicator from the parsed value.	 * 	 * @param noWordWrapping the noWordWrapping to set	 */	public void setNoWordWrapping(int noWordWrapping) {		this.noWordWrapping = noWordWrapping;	}	/**	 * Get this style number.	 * 	 * @return the styleNr	 */	public int getStyleNr() {		return styleNr;	}	/**	 * Set this style number from the parsed value.	 * 	 * @param styleNr the styleNr to set	 */	public void setStyleNr(int styleNr) {		this.styleNr = styleNr;	}	/**	 * Get this style type.	 * For example Style, Character Style, etc.	 * 	 * @return the styleType	 */	public int getStyleType() {		return styleType;	}	/**	 * Set the style type.	 * 	 * @param styleType the styleType to set	 */	public void setStyleType(int styleType) {		this.styleType = styleType;	}	/* (non-Javadoc)	 * @see com.lowagie.text.rtf.parser.destinations.RtfDestination#setToDefaults()	 */	public void setToDefaults() {		styleName = "";		styleNr = 0;		alignment = Element.ALIGN_LEFT;		justificationPercentage = 0;		firstLineIndent = 0;		leftIndent = 0;		rightIndent = 0;		adustRightIndent = 0;		mirrorIndent = 0;		overrideWidowControl = -1;		AutoSpaceBetweenDBCEnglish = 0;		AutoSpaceBetweenDBCNumbers = 0;		noCharacterWrapping = 0;		noWordWrapping = 0;		noOverflowPeriodComma = 0;			}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -