Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is poi-scratchpad-5.2.3.jar?
What Is poi-scratchpad-5.2.3.jar?
✍: FYIcenter.com
poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-scratchpad-5.2.3.jar provides support for older versions of Microsoft document files like Word 97, Excel 97, PowerPoint 97, etc.
poi-scratchpad-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-scratchpad-5.2.3.jar Target JDK version: 9 Dependency: poi.jar File name: poi-scratchpad.jar, poi-scratchpad-5.2.3.jar File size: 1897121 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-scratchpad-5.2.3.jar:
⏎ org/apache/poi/hwpf/usermodel/HWPFList.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.hwpf.usermodel; import org.apache.poi.hwpf.model.ListTables; import org.apache.poi.util.Internal; import org.apache.poi.hwpf.model.LFO; import org.apache.poi.hwpf.model.LFOData; import org.apache.poi.hwpf.model.ListData; import org.apache.poi.hwpf.model.ListFormatOverrideLevel; import org.apache.poi.hwpf.model.ListLevel; import org.apache.poi.hwpf.model.StyleSheet; import org.apache.poi.hwpf.sprm.CharacterSprmCompressor; import org.apache.poi.hwpf.sprm.ParagraphSprmCompressor; /** * This class is used to create a list in a Word document. It is used in * conjunction with * {@link org.apache.poi.hwpf.HWPFDocument#registerList(HWPFList) registerList} * in {@link org.apache.poi.hwpf.HWPFDocument HWPFDocument}. * * In Word, lists are not ranged entities, meaning you can't actually add one to * the document. Lists only act as properties for list entries. Once you * register a list, you can add list entries to a document that are a part of * the list. * * The only benefit of this that I see, is that you can add a list entry * anywhere in the document and continue numbering from the previous list. */ public final class HWPFList { private boolean _ignoreLogicalLeftIdentation; private LFO _lfo; private LFOData _lfoData; private ListData _listData; private ListTables _listTables; private StyleSheet _styleSheet; /** * * @param numbered * true if the list should be numbered; false if it should be * bulleted. * @param styleSheet * The document's stylesheet. */ public HWPFList( boolean numbered, StyleSheet styleSheet ) { _listData = new ListData( (int) ( Math.random() * System.currentTimeMillis() ), numbered ); _lfo = new LFO(); _lfo.setLsid( _listData.getLsid() ); _lfoData = new LFOData(); _styleSheet = styleSheet; } public HWPFList( StyleSheet styleSheet, ListTables listTables, int ilfo ) { _listTables = listTables; _styleSheet = styleSheet; /* See documentation for sprmPIlfo (0x460B) */ if ( ilfo == 0 || ilfo == 0xF801 ) { throw new IllegalArgumentException( "Paragraph not in list" ); } else if ( 0x0001 <= ilfo && ilfo <= 0x07FE ) { _lfo = listTables.getLfo( ilfo ); _lfoData = listTables.getLfoData( ilfo ); } else if ( 0xF802 <= ilfo && ilfo <= 0xFFFF ) { int nilfo = ilfo ^ 0xFFFF; _lfo = listTables.getLfo( nilfo ); _lfoData = listTables.getLfoData( nilfo ); _ignoreLogicalLeftIdentation = true; } else { throw new IllegalArgumentException( "Incorrect ilfo: " + ilfo ); } _listData = listTables.getListData( _lfo.getLsid() ); } @Internal public LFO getLFO() { return _lfo; } @Internal public LFOData getLFOData() { return _lfoData; } @Internal public ListData getListData() { return _listData; } public int getLsid() { return _lfo.getLsid(); } @Internal ListLevel getLVL( char level ) { if ( level >= _listData.numLevels() ) { throw new IllegalArgumentException( "Required level " + ( (int) level ) + " is more than number of level for list (" + _listData.numLevels() + ")" ); } return _listData.getLevels()[level]; } /** * An MSONFC, as specified in [MS-OSHARED] section 2.2.1.3, that specifies * the format of the level numbers that replace the placeholders for this * level in the xst fields of the LVLs in this list. This value MUST not be * equal to 0x08, 0x09, 0x0F, or 0x13. If this is equal to 0xFF or 0x17, * this level does not have a number sequence and therefore has no number * formatting. If this is equal to 0x17, the level uses bullets. */ public int getNumberFormat( char level ) { return getLVL( level ).getNumberFormat(); } public String getNumberText( char level ) { return getLVL( level ).getNumberText(); } public int getStartAt( char level ) { if ( isStartAtOverriden( level ) ) { return _lfoData.getRgLfoLvl()[level].getIStartAt(); } return getLVL( level ).getStartAt(); } /** * "The type of character following the number text for the paragraph: 0 == tab, 1 == space, 2 == nothing." */ public byte getTypeOfCharFollowingTheNumber( char level ) { return getLVL( level ).getTypeOfCharFollowingTheNumber(); } public boolean isIgnoreLogicalLeftIdentation() { return _ignoreLogicalLeftIdentation; } public boolean isStartAtOverriden( char level ) { ListFormatOverrideLevel lfolvl = _lfoData.getRgLfoLvl().length > level ? _lfoData .getRgLfoLvl()[level] : null; return lfolvl != null && lfolvl.getIStartAt() != 0 && !lfolvl.isFormatting(); } public void setIgnoreLogicalLeftIdentation( boolean ignoreLogicalLeftIdentation ) { this._ignoreLogicalLeftIdentation = ignoreLogicalLeftIdentation; } /** * Sets the character properties of the list numbers. * * @param level * the level number that the properties should apply to. * @param chp * The character properties. */ public void setLevelNumberProperties( int level, CharacterProperties chp ) { ListLevel listLevel = _listData.getLevel( level ); int styleIndex = _listData.getLevelStyle( level ); CharacterProperties base = _styleSheet.getCharacterStyle( styleIndex ); byte[] grpprl = CharacterSprmCompressor.compressCharacterProperty( chp, base ); listLevel.setNumberProperties( grpprl ); } /** * Sets the paragraph properties for a particular level of the list. * * @param level * The level number. * @param pap * The paragraph properties */ public void setLevelParagraphProperties( int level, ParagraphProperties pap ) { ListLevel listLevel = _listData.getLevel( level ); int styleIndex = _listData.getLevelStyle( level ); ParagraphProperties base = _styleSheet.getParagraphStyle( styleIndex ); byte[] grpprl = ParagraphSprmCompressor.compressParagraphProperty( pap, base ); listLevel.setLevelProperties( grpprl ); } public void setLevelStyle( int level, int styleIndex ) { _listData.setLevelStyle( level, styleIndex ); } }
⏎ org/apache/poi/hwpf/usermodel/HWPFList.java
Or download all of them as a single archive file:
File name: poi-scratchpad-5.2.3-src.zip File size: 1238744 bytes Release date: 2022-09-09 Download
⇒ What Is poi-examples-5.2.3.jar?
⇐ What Is poi-excelant-5.2.3.jar?
2017-03-22, 25584👍, 0💬
Popular Posts:
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...