--- /dev/null
+/*\r
+ * Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements. See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.apache.poi.util;\r
+\r
+import java.lang.annotation.RetentionPolicy;\r
+import java.lang.annotation.Retention;\r
+import java.lang.annotation.Documented;\r
+\r
+\r
+/**\r
+ * Program elements annotated @Internal are intended for\r
+ * POI internal use only. Such elements are not public by design\r
+ * and likely to be removed in future versions of POI or access\r
+ * to such elements will be changed from 'public' to 'default' or less.\r
+ *\r
+ * @author Yegor Kozlov\r
+ * @since POI-3.6\r
+ */\r
+@Documented\r
+@Retention(RetentionPolicy.SOURCE)\r
+public @interface Internal {\r
+\r
+}\r
import java.util.List;
import org.apache.poi.POIXMLDocument;
+import org.apache.poi.util.Internal;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
import org.apache.poi.openxml4j.opc.OPCPackage;
/**
* Returns the low level presentation base object
*/
+ @Internal
public CTPresentation getPresentation() {
return presentationDoc.getPresentation();
}
* You'll need these to figure out the slide ordering,
* and to get at the actual slides themselves
*/
+ @Internal
public CTSlideIdList getSlideReferences() {
return getPresentation().getSldIdLst();
}
* You'll need these to get at the actual slide
* masters themselves
*/
+ @Internal
public CTSlideMasterIdList getSlideMasterReferences() {
return getPresentation().getSldMasterIdLst();
}
* Returns the low level slide master object from
* the supplied slide master reference
*/
+ @Internal
public CTSlideMaster getSlideMaster(CTSlideMasterIdListEntry master) throws IOException, XmlException {
PackagePart masterPart = getSlideMasterPart(master);
SldMasterDocument masterDoc =
* Returns the low level slide object from
* the supplied slide reference
*/
+ @Internal
public CTSlide getSlide(CTSlideIdListEntry slide) throws IOException, XmlException {
PackagePart slidePart = getSlidePart(slide);
SldDocument slideDoc =
* Returns the low level notes object for the given
* slide, as found from the supplied slide reference
*/
+ @Internal
public CTNotesSlide getNotes(CTSlideIdListEntry slide) throws IOException, XmlException {
PackagePart notesPart = getNodesPart(slide);
if(notesPart == null)
/**
* Returns all the comments for the given slide
*/
+ @Internal
public CTCommentList getSlideComments(CTSlideIdListEntry slide) throws IOException, XmlException {
PackageRelationshipCollection commentRels;
PackagePart slidePart = getSlidePart(slide);
import org.apache.poi.sl.usermodel.Notes;
import org.apache.poi.sl.usermodel.Slide;
import org.apache.poi.sl.usermodel.SlideShow;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.presentationml.x2006.main.CTSlide;
import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry;
/**
* While developing only!
*/
+ @Internal
public CTSlide _getCTSlide() {
return slide;
}
/**
* While developing only!
*/
+ @Internal
public CTSlideIdListEntry _getCTSlideId() {
return slideId;
}
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.xssf.model.SharedStringsTable;
import org.apache.poi.xssf.model.StylesTable;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCell;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellFormula;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STCellFormulaType;
*
* @return the xml bean containing information about this cell
*/
+ @Internal
public CTCell getCTCell(){
return _cell;
}
import org.apache.poi.xssf.usermodel.extensions.XSSFCellBorder;
import org.apache.poi.xssf.usermodel.extensions.XSSFCellFill;
import org.apache.poi.xssf.usermodel.extensions.XSSFCellBorder.BorderSide;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorderPr;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment;
/**
* Used so that StylesSource can figure out our location
*/
+ @Internal
public CTXf getCoreXf() {
return _cellXf;
}
/**
* Used so that StylesSource can figure out our location
*/
+ @Internal
public CTXf getStyleXf() {
return _cellStyleXf;
}
import org.openxmlformats.schemas.drawingml.x2006.main.CTPoint2D;
import org.openxmlformats.schemas.drawingml.x2006.main.CTPositiveSize2D;
import org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D;
+import org.apache.poi.util.Internal;
/**
* @author Yegor Kozlov
this.t2d = t2d;
}
+ @Internal
public CTTransform2D getCTTransform2D() {
return t2d;
}
package org.apache.poi.xssf.usermodel;
import org.apache.poi.ss.usermodel.ClientAnchor;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker;
/**
*
* @return starting anchor point
*/
+ @Internal
public CTMarker getFrom(){
return cell1;
}
*
* @return ending anchor point
*/
+ @Internal
public CTMarker getTo(){
return cell2;
}
package org.apache.poi.xssf.usermodel;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColor;
+import org.apache.poi.util.Internal;
/**
* Represents a color in SpreadsheetML
*
* @return the underlying XML bean
*/
+ @Internal
public CTColor getCTColor(){
return ctColor;
}
import org.openxmlformats.schemas.drawingml.x2006.main.STShapeType;
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnector;
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnectorNonVisual;
+import org.apache.poi.util.Internal;
/**
* A connection shape drawing element. A connection shape is a line, etc.
return prototype;
}
+ @Internal
public CTConnector getCTConnector(){
return ctShape;
}
import javax.xml.namespace.QName;
import org.apache.poi.POIXMLDocumentPart;
+import org.apache.poi.util.Internal;
import org.apache.poi.xssf.model.CommentsTable;
import org.apache.poi.openxml4j.opc.PackagePart;
import org.apache.poi.openxml4j.opc.PackagePartName;
*
* @return the underlying CTDrawing bean
*/
+ @Internal
public CTDrawing getCTDrawing(){
return drawing;
}
package org.apache.poi.xssf.usermodel;
import org.apache.poi.POIXMLException;
+import org.apache.poi.util.Internal;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.FontCharset;
import org.apache.poi.ss.usermodel.FontFamily;
/**
* get the underlying CTFont font
*/
+ @Internal
public CTFont getCTFont() {
return _ctFont;
}
import java.util.Vector;
import org.apache.poi.POIXMLDocumentPart;
+import org.apache.poi.util.Internal;
import org.apache.poi.xssf.model.MapInfo;
import org.apache.poi.xssf.model.SingleXmlCells;
import org.apache.poi.xssf.model.Table;
}
+ @Internal
public CTMap getCtMap() {
return ctMap;
}
+ @Internal
public CTSchema getCTSchema() {
String schemaId = ctMap.getSchemaID();
return mapInfo.getCTSchemaById(schemaId);
import org.apache.poi.ss.util.ImageUtils;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties;
import org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps;
import org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualPictureProperties;
*
* @return the underlying CTPicture bean
*/
+ @Internal
public CTPicture getCTPicture(){
return ctPicture;
}
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.RichTextString;
import org.apache.poi.xssf.model.StylesTable;
+import org.apache.poi.util.Internal;
import org.apache.xmlbeans.XmlCursor;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColor;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTFont;
/**
* Return the underlying xml bean
*/
+ @Internal
public CTRst getCTRst() {
return st;
}
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
+import org.apache.poi.util.Internal;
import org.apache.poi.xssf.model.CalculationChain;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCell;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow;
*
* @return the underlying CTRow xml bean
*/
+ @Internal
public CTRow getCTRow(){
return _row;
}
package org.apache.poi.xssf.usermodel;
import org.apache.poi.openxml4j.opc.PackageRelationship;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.drawingml.x2006.main.CTGroupShapeProperties;
import org.openxmlformats.schemas.drawingml.x2006.main.CTGroupTransform2D;
import org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps;
return shape;
}
+ @Internal
public CTGroupShape getCTGroupShape() {
return ctGroup;
}
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
+import org.apache.poi.util.Internal;
import org.apache.poi.xssf.model.CommentsTable;
import org.apache.poi.xssf.usermodel.helpers.ColumnHelper;
import org.apache.poi.xssf.usermodel.helpers.XSSFRowShifter;
*
* @return the CTWorksheet bean holding this sheet's data
*/
+ @Internal
public CTWorksheet getCTWorksheet() {
return this.worksheet;
}
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShapeNonVisual;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRElt;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRPrElt;
+import org.apache.poi.util.Internal;
/**
* Represents a shape with a predefined geometry in a SpreadsheetML drawing.
return prototype;
}
+ @Internal
public CTShape getCTShape(){
return ctShape;
}
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.Row.MissingCellPolicy;
import org.apache.poi.ss.util.CellReference;
-import org.apache.poi.util.IOUtils;
-import org.apache.poi.util.POILogFactory;
-import org.apache.poi.util.POILogger;
-import org.apache.poi.util.PackageHelper;
+import org.apache.poi.util.*;
import org.apache.poi.xssf.model.CalculationChain;
import org.apache.poi.xssf.model.MapInfo;
import org.apache.poi.xssf.model.SharedStringsTable;
*
* @return the underlying CTWorkbook bean
*/
+ @Internal
public CTWorkbook getCTWorkbook() {
return this.workbook;
}
*
* @return the shared string table
*/
+ @Internal
public SharedStringsTable getSharedStringSource() {
return this.sharedStringSource;
}
*
* @return the <code>CalculationChain</code> object or <code>null</code> if not defined
*/
+ @Internal
public CalculationChain getCalculationChain(){
return calcChain;
}
*
* @return the helper class used to query the custom XML mapping defined in this workbook
*/
+ @Internal
public MapInfo getMapInfo(){
return mapInfo;
}
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STVerticalAlignment;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;
+import org.apache.poi.util.Internal;
/**
/**
* Access to low-level data
*/
+ @Internal
public CTCellAlignment getCTCellAlignment() {
return cellAlignement;
}
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.xssf.usermodel.XSSFColor;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorderPr;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STBorderStyle;
*
* @return CTBorder
*/
+ @Internal
public CTBorder getCTBorder() {
return border;
}
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPatternFill;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType;
import org.apache.poi.xssf.usermodel.XSSFColor;
+import org.apache.poi.util.Internal;
/**
* This element specifies fill formatting.
*
* @return CTFill
*/
+ @Internal
public CTFill getCTFill() {
return _fill;
}
import org.apache.poi.ss.usermodel.HeaderFooter;
import org.apache.poi.xssf.usermodel.helpers.HeaderFooterHelper;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter;
/**
*
* @return the underlying CTHeaderFooter xml bean
*/
+ @Internal
public CTHeaderFooter getHeaderFooter() {
return this.headerFooter;
}
+/* ====================================================================
+ 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.xwpf.usermodel;
import java.math.BigInteger;
import org.apache.xmlbeans.impl.xb.xmlschema.SpaceAttribute.Space;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDecimalNumber;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFonts;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP;
p.addNewR().addNewT().set("Table of Contents");
}
- public CTSdtBlock getBlock() {
+ @Internal
+ public CTSdtBlock getBlock() {
return this.block;
}
import org.apache.poi.openxml4j.opc.PackagingURIHelper;
import org.apache.poi.openxml4j.opc.TargetMode;
import org.apache.poi.util.PackageHelper;
+import org.apache.poi.util.Internal;
import org.apache.poi.xwpf.model.XWPFHeaderFooterPolicy;
import org.apache.xmlbeans.XmlException;
import org.apache.xmlbeans.XmlOptions;
/**
* Returns the low level document base object
*/
+ @Internal
public CTDocument1 getDocument() {
return ctDocument;
}
/**
* Returns the styles object used
*/
+ @Internal
public CTStyles getStyle() throws XmlException, IOException {
PackagePart[] parts;
try {
import java.io.IOException;
import org.apache.poi.POIXMLDocumentPart;
+import org.apache.poi.util.Internal;
import org.apache.poi.openxml4j.opc.PackagePart;
import org.apache.poi.openxml4j.opc.PackageRelationship;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr;
super(part, rel);
}
+ @Internal
public CTHdrFtr _getHdrFtr() {
return headerFooter;
}
import org.apache.xmlbeans.XmlCursor;
import org.apache.xmlbeans.XmlObject;
+import org.apache.poi.util.Internal;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnRef;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTInd;
}
}
+ @Internal
public CTP getCTP() {
return paragraph;
}
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STOnOff;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STUnderline;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalAlignRun;
+import org.apache.poi.util.Internal;
/**
* XWPFRun object defines a region of text with a common set of properties
* Get the currently used CTR object
* @return ctr object
*/
+ @Internal
public CTR getCTR() {
return run;
}
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblWidth;
+import org.apache.poi.util.Internal;
/**
* Sketch of XWPFTable class. Only table's text is being hold.
/**
* @return ctTbl object
*/
+ @Internal
public CTTbl getCTTbl() {
return ctTbl;
}
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc;
+import org.apache.poi.util.Internal;
public class XWPFTableCell {
}
+ @Internal
public CTTc getCTTc() {
return ctTc;
}
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTrPr;
+import org.apache.poi.util.Internal;
/**
this.ctRow = row;
}
+ @Internal
public CTRow getCtRow() {
return ctRow;
}