Exemple #1
0
        /**
         * Constructor used when reading images
         *
         * @param mso the drawing record
         * @param dd the drawing data for all drawings on this sheet
         * @param dg the drawing group
         */
        public Drawing2(MsoDrawingRecord mso,
                        DrawingData dd,
                        DrawingGroup dg)
        {
            drawingGroup     = dg;
            msoDrawingRecord = mso;
            drawingData      = dd;
            initialized      = false;
            origin           = Origin.READ;
            // there is no drawing number associated with this drawing
            drawingData.addRawData(msoDrawingRecord.getData());
            drawingGroup.addDrawing(this);

            Assert.verify(mso != null);

            initialize();
        }
Exemple #2
0
        /**
         * Constructor used when reading images
         *
         * @param mso the drawing record
         * @param obj the object record
         * @param dd the drawing data for all drawings on this sheet
         * @param dg the drawing group
         * @param ws the workbook settings
         */
        public CheckBox(MsoDrawingRecord mso, ObjRecord obj, DrawingData dd,
                        DrawingGroup dg, WorkbookSettings ws)
        {
            drawingGroup     = dg;
            msoDrawingRecord = mso;
            drawingData      = dd;
            objRecord        = obj;
            initialized      = false;
            workbookSettings = ws;
            origin           = Origin.READ;
            drawingData.addData(msoDrawingRecord.getData());
            drawingNumber = drawingData.getNumDrawings() - 1;
            drawingGroup.addDrawing(this);

            Assert.verify(mso != null && obj != null);

            initialize();
        }
Exemple #3
0
        /**
         * Constructor used when reading images
         *
         * @param mso the drawing record
         * @param obj the object record
         * @param dd the drawing data for all drawings on this sheet
         * @param dg the drawing group
         */
        public Drawing(MsoDrawingRecord mso,
                       ObjRecord obj,
                       DrawingData dd,
                       DrawingGroup dg,
                       Sheet s)
        {
            drawingGroup     = dg;
            msoDrawingRecord = mso;
            drawingData      = dd;
            objRecord        = obj;
            sheet            = s;
            initialized      = false;
            origin           = Origin.READ;
            drawingData.addData(msoDrawingRecord.getData());
            drawingNumber = drawingData.getNumDrawings() - 1;
            drawingGroup.addDrawing(this);

            Assert.verify(mso != null && obj != null);

            initialize();
        }
Exemple #4
0
 /**
  * The drawing record
  *
  * @param d the drawing record
  */
 public void addMso(MsoDrawingRecord d)
 {
     mso = d;
     drawingData.addRawData(mso.getData());
 }