Overview

Namespaces

  • MOC
    • Adapter
    • Core
      • Changelog
      • Depending
      • Drive
        • Directory
        • File
      • Error
        • Register
        • Type
      • Journal
      • Proxy
      • Template
      • Xml
    • Extension
      • Excel
      • Flot
      • Mail
      • Pdf
      • Word
      • Xml
      • YUICompressor
      • Zip
    • Generic
      • Common
      • Device
        • Extension
        • Widget
    • Module
      • Database
        • Driver
      • Drive
      • Image
        • Font
      • Installer
      • Network
        • Ftp
          • Directory
          • File
          • Transport
        • Http
        • ParcelTracker
          • Carrier
      • Office
        • Chart
          • Axis
        • Document
          • Excel
            • Cell
              • Format
              • Style
                • Border
                  • Bottom
                  • Left
                  • Right
                  • Top
                • Font
            • Close
            • Page
            • Worksheet
          • Pdf
            • Close
            • Font
            • Page
              • Margin
              • Position
            • Text
          • Xml
            • Close
        • Image
        • Mail
          • Address
          • Content
      • Packer
        • Yui
        • Zip
      • Template
    • Plugin
      • Gateway
      • Repository
      • Shared
  • PHP

Classes

  • Orientation
  • Size
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
  1: <?php
  2: /**
  3:  * LICENSE (BSD)
  4:  *
  5:  * Copyright (c) 2013, Gerd Christian Kunze
  6:  * All rights reserved.
  7:  *
  8:  * Redistribution and use in source and binary forms, with or without
  9:  * modification, are permitted provided that the following conditions are
 10:  * met:
 11:  *
 12:  *  * Redistributions of source code must retain the above copyright
 13:  *    notice, this list of conditions and the following disclaimer.
 14:  *
 15:  *  * Redistributions in binary form must reproduce the above copyright
 16:  *    notice, this list of conditions and the following disclaimer in the
 17:  *    documentation and/or other materials provided with the distribution.
 18:  *
 19:  *  * Neither the name of Gerd Christian Kunze nor the names of the
 20:  *    contributors may be used to endorse or promote products derived from
 21:  *    this software without specific prior written permission.
 22:  *
 23:  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 24:  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 25:  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 26:  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 27:  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 28:  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 29:  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 30:  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 31:  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 32:  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 33:  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 34:  *
 35:  * Size
 36:  * 19.06.2013 09:30
 37:  */
 38: namespace MOC\Module\Office\Document\Excel\Page;
 39: use MOC\Api;
 40: use MOC\Generic\Device\Module;
 41: 
 42: /**
 43:  *
 44:  */
 45: class Size implements Module {
 46:     /**
 47:      * Get Changelog
 48:      *
 49:      * @static
 50:      * @return \MOC\Core\Changelog
 51:      */
 52:     public static function InterfaceChangelog() {
 53:         return Api::Core()->Changelog()->Create( __CLASS__ );
 54:     }
 55: 
 56:     /**
 57:      * Get Dependencies
 58:      *
 59:      * @static
 60:      * @return \MOC\Core\Depending
 61:      */
 62:     public static function InterfaceDepending() {
 63:         return Api::Core()->Depending();
 64:     }
 65: 
 66:     /**
 67:      * Get Singleton/Instance
 68:      *
 69:      * @static
 70:      * @return Size
 71:      */
 72:     public static function InterfaceInstance() {
 73:         return new Size();
 74:     }
 75: 
 76:     /**
 77:      * @return \MOC\Module\Office\Document\Excel
 78:      */
 79:     public function Letter() {
 80:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER );
 81:         return Api::Module()->Office()->Document()->Excel();
 82:     }
 83:     /**
 84:      * @return \MOC\Module\Office\Document\Excel
 85:      */
 86:     public  function LetterSmall() {
 87:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_SMALL );
 88:         return Api::Module()->Office()->Document()->Excel();
 89:     }
 90:     /**
 91:      * @return \MOC\Module\Office\Document\Excel
 92:      */
 93:     public  function Tabloid() {
 94:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID );
 95:         return Api::Module()->Office()->Document()->Excel();
 96:     }
 97:     /**
 98:      * @return \MOC\Module\Office\Document\Excel
 99:      */
100:     public  function Ledger() {
101:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEDGER );
102:         return Api::Module()->Office()->Document()->Excel();
103:     }
104:     /**
105:      * @return \MOC\Module\Office\Document\Excel
106:      */
107:     public  function Legal() {
108:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL );
109:         return Api::Module()->Office()->Document()->Excel();
110:     }
111:     /**
112:      * @return \MOC\Module\Office\Document\Excel
113:      */
114:     public  function Statement() {
115:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_STATEMENT );
116:         return Api::Module()->Office()->Document()->Excel();
117:     }
118:     /**
119:      * @return \MOC\Module\Office\Document\Excel
120:      */
121:     public  function Executive() {
122:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_EXECUTIVE );
123:         return Api::Module()->Office()->Document()->Excel();
124:     }
125:     /**
126:      * @return \MOC\Module\Office\Document\Excel
127:      */
128:     public  function A3() {
129:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3 );
130:         return Api::Module()->Office()->Document()->Excel();
131:     }
132:     /**
133:      * @return \MOC\Module\Office\Document\Excel
134:      */
135:     public  function A4() {
136:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4 );
137:         return Api::Module()->Office()->Document()->Excel();
138:     }
139:     /**
140:      * @return \MOC\Module\Office\Document\Excel
141:      */
142:     public  function A4Small() {
143:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_SMALL );
144:         return Api::Module()->Office()->Document()->Excel();
145:     }
146:     /**
147:      * @return \MOC\Module\Office\Document\Excel
148:      */
149:     public  function A5() {
150:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5 );
151:         return Api::Module()->Office()->Document()->Excel();
152:     }
153:     /**
154:      * @return \MOC\Module\Office\Document\Excel
155:      */
156:     public  function B4() {
157:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_B4 );
158:         return Api::Module()->Office()->Document()->Excel();
159:     }
160:     /**
161:      * @return \MOC\Module\Office\Document\Excel
162:      */
163:     public  function B5() {
164:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_B5 );
165:         return Api::Module()->Office()->Document()->Excel();
166:     }
167:     /**
168:      * @return \MOC\Module\Office\Document\Excel
169:      */
170:     public  function Folio() {
171:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_FOLIO );
172:         return Api::Module()->Office()->Document()->Excel();
173:     }
174:     /**
175:      * @return \MOC\Module\Office\Document\Excel
176:      */
177:     public  function Quarto() {
178:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_QUARTO );
179:         return Api::Module()->Office()->Document()->Excel();
180:     }
181:     /**
182:      * @return \MOC\Module\Office\Document\Excel
183:      */
184:     public  function Standard1() {
185:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_1 );
186:         return Api::Module()->Office()->Document()->Excel();
187:     }
188:     /**
189:      * @return \MOC\Module\Office\Document\Excel
190:      */
191:     public  function Standard2() {
192:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_2 );
193:         return Api::Module()->Office()->Document()->Excel();
194:     }
195:     /**
196:      * @return \MOC\Module\Office\Document\Excel
197:      */
198:     public  function Note() {
199:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_NOTE );
200:         return Api::Module()->Office()->Document()->Excel();
201:     }
202:     /**
203:      * @return \MOC\Module\Office\Document\Excel
204:      */
205:     public  function No9Envelope() {
206:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO9_ENVELOPE );
207:         return Api::Module()->Office()->Document()->Excel();
208:     }
209:     /**
210:      * @return \MOC\Module\Office\Document\Excel
211:      */
212:     public  function No10Envelope() {
213:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO10_ENVELOPE );
214:         return Api::Module()->Office()->Document()->Excel();
215:     }
216:     /**
217:      * @return \MOC\Module\Office\Document\Excel
218:      */
219:     public  function No11Envelope() {
220:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO11_ENVELOPE );
221:         return Api::Module()->Office()->Document()->Excel();
222:     }
223:     /**
224:      * @return \MOC\Module\Office\Document\Excel
225:      */
226:     public  function No12Envelope() {
227:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO12_ENVELOPE );
228:         return Api::Module()->Office()->Document()->Excel();
229:     }
230:     /**
231:      * @return \MOC\Module\Office\Document\Excel
232:      */
233:     public  function No14Envelope() {
234:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO14_ENVELOPE );
235:         return Api::Module()->Office()->Document()->Excel();
236:     }
237:     /**
238:      * @return \MOC\Module\Office\Document\Excel
239:      */
240:     public  function C() {
241:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_C );
242:         return Api::Module()->Office()->Document()->Excel();
243:     }
244:     /**
245:      * @return \MOC\Module\Office\Document\Excel
246:      */
247:     public  function D() {
248:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_D );
249:         return Api::Module()->Office()->Document()->Excel();
250:     }
251:     /**
252:      * @return \MOC\Module\Office\Document\Excel
253:      */
254:     public  function E() {
255:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_E );
256:         return Api::Module()->Office()->Document()->Excel();
257:     }
258:     /**
259:      * @return \MOC\Module\Office\Document\Excel
260:      */
261:     public  function DlEnvelope() {
262:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_DL_ENVELOPE );
263:         return Api::Module()->Office()->Document()->Excel();
264:     }
265:     /**
266:      * @return \MOC\Module\Office\Document\Excel
267:      */
268:     public  function C5Envelope() {
269:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_C5_ENVELOPE );
270:         return Api::Module()->Office()->Document()->Excel();
271:     }
272:     /**
273:      * @return \MOC\Module\Office\Document\Excel
274:      */
275:     public  function C3Envelope() {
276:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_C3_ENVELOPE );
277:         return Api::Module()->Office()->Document()->Excel();
278:     }
279:     /**
280:      * @return \MOC\Module\Office\Document\Excel
281:      */
282:     public  function C4Envelope() {
283:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_C4_ENVELOPE );
284:         return Api::Module()->Office()->Document()->Excel();
285:     }
286:     /**
287:      * @return \MOC\Module\Office\Document\Excel
288:      */
289:     public  function C6Envelope() {
290:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_C6_ENVELOPE );
291:         return Api::Module()->Office()->Document()->Excel();
292:     }
293:     /**
294:      * @return \MOC\Module\Office\Document\Excel
295:      */
296:     public  function C65Envelope() {
297:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_C65_ENVELOPE );
298:         return Api::Module()->Office()->Document()->Excel();
299:     }
300:     /**
301:      * @return \MOC\Module\Office\Document\Excel
302:      */
303:     public  function B4Envelope() {
304:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_B4_ENVELOPE );
305:         return Api::Module()->Office()->Document()->Excel();
306:     }
307:     /**
308:      * @return \MOC\Module\Office\Document\Excel
309:      */
310:     public  function B5Envelope() {
311:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_B5_ENVELOPE );
312:         return Api::Module()->Office()->Document()->Excel();
313:     }
314:     /**
315:      * @return \MOC\Module\Office\Document\Excel
316:      */
317:     public  function B6Envelope() {
318:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_B6_ENVELOPE );
319:         return Api::Module()->Office()->Document()->Excel();
320:     }
321:     /**
322:      * @return \MOC\Module\Office\Document\Excel
323:      */
324:     public  function ItalyEnvelope() {
325:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_ITALY_ENVELOPE );
326:         return Api::Module()->Office()->Document()->Excel();
327:     }
328:     /**
329:      * @return \MOC\Module\Office\Document\Excel
330:      */
331:     public  function MonarchEnvelope() {
332:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_MONARCH_ENVELOPE );
333:         return Api::Module()->Office()->Document()->Excel();
334:     }
335:     /**
336:      * @return \MOC\Module\Office\Document\Excel
337:      */
338:     public  function No634Envelope() {
339:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_6_3_4_ENVELOPE );
340:         return Api::Module()->Office()->Document()->Excel();
341:     }
342:     /**
343:      * @return \MOC\Module\Office\Document\Excel
344:      */
345:     public  function UsStandardFanfold() {
346:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_US_STANDARD_FANFOLD );
347:         return Api::Module()->Office()->Document()->Excel();
348:     }
349:     /**
350:      * @return \MOC\Module\Office\Document\Excel
351:      */
352:     public  function GermanStandardFanfold() {
353:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_GERMAN_STANDARD_FANFOLD );
354:         return Api::Module()->Office()->Document()->Excel();
355:     }
356:     /**
357:      * @return \MOC\Module\Office\Document\Excel
358:      */
359:     public  function GermanLegalFanfold() {
360:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_GERMAN_LEGAL_FANFOLD );
361:         return Api::Module()->Office()->Document()->Excel();
362:     }
363:     /**
364:      * @return \MOC\Module\Office\Document\Excel
365:      */
366:     public  function IsoB4() {
367:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B4 );
368:         return Api::Module()->Office()->Document()->Excel();
369:     }
370:     /**
371:      * @return \MOC\Module\Office\Document\Excel
372:      */
373:     public  function JapaneseDoublePostcard() {
374:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_JAPANESE_DOUBLE_POSTCARD );
375:         return Api::Module()->Office()->Document()->Excel();
376:     }
377:     /**
378:      * @return \MOC\Module\Office\Document\Excel
379:      */
380:     public  function StandardPaper1() {
381:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_1 );
382:         return Api::Module()->Office()->Document()->Excel();
383:     }
384:     /**
385:      * @return \MOC\Module\Office\Document\Excel
386:      */
387:     public  function StandardPaper2() {
388:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_2 );
389:         return Api::Module()->Office()->Document()->Excel();
390:     }
391:     /**
392:      * @return \MOC\Module\Office\Document\Excel
393:      */
394:     public  function StandardPaper3() {
395:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_3 );
396:         return Api::Module()->Office()->Document()->Excel();
397:     }
398:     /**
399:      * @return \MOC\Module\Office\Document\Excel
400:      */
401:     public  function InviteEnvelope() {
402:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_INVITE_ENVELOPE );
403:         return Api::Module()->Office()->Document()->Excel();
404:     }
405:     /**
406:      * @return \MOC\Module\Office\Document\Excel
407:      */
408:     public  function LetterExtraPaper() {
409:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_PAPER );
410:         return Api::Module()->Office()->Document()->Excel();
411:     }
412:     /**
413:      * @return \MOC\Module\Office\Document\Excel
414:      */
415:     public  function LegalExtraPaper() {
416:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL_EXTRA_PAPER );
417:         return Api::Module()->Office()->Document()->Excel();
418:     }
419:     /**
420:      * @return \MOC\Module\Office\Document\Excel
421:      */
422:     public  function LabloidExtraPaper() {
423:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID_EXTRA_PAPER );
424:         return Api::Module()->Office()->Document()->Excel();
425:     }
426:     /**
427:      * @return \MOC\Module\Office\Document\Excel
428:      */
429:     public  function A4ExtraPaper() {
430:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_EXTRA_PAPER );
431:         return Api::Module()->Office()->Document()->Excel();
432:     }
433:     /**
434:      * @return \MOC\Module\Office\Document\Excel
435:      */
436:     public  function LetterTransversePaper() {
437:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_TRANSVERSE_PAPER );
438:         return Api::Module()->Office()->Document()->Excel();
439:     }
440:     /**
441:      * @return \MOC\Module\Office\Document\Excel
442:      */
443:     public  function A4TransversePaper() {
444:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_TRANSVERSE_PAPER );
445:         return Api::Module()->Office()->Document()->Excel();
446:     }
447:     /**
448:      * @return \MOC\Module\Office\Document\Excel
449:      */
450:     public  function LetterExtraTransversePaper() {
451:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER );
452:         return Api::Module()->Office()->Document()->Excel();
453:     }
454:     /**
455:      * @return \MOC\Module\Office\Document\Excel
456:      */
457:     public  function SuperaSuperaA4Paper() {
458:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_SUPERA_SUPERA_A4_PAPER );
459:         return Api::Module()->Office()->Document()->Excel();
460:     }
461:     /**
462:      * @return \MOC\Module\Office\Document\Excel
463:      */
464:     public  function SuperbSuperbA3Paper() {
465:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_SUPERB_SUPERB_A3_PAPER );
466:         return Api::Module()->Office()->Document()->Excel();
467:     }
468:     /**
469:      * @return \MOC\Module\Office\Document\Excel
470:      */
471:     public  function LetterPlusPaper() {
472:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_PLUS_PAPER );
473:         return Api::Module()->Office()->Document()->Excel();
474:     }
475:     /**
476:      * @return \MOC\Module\Office\Document\Excel
477:      */
478:     public  function A4PlusPaper() {
479:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_PLUS_PAPER );
480:         return Api::Module()->Office()->Document()->Excel();
481:     }
482:     /**
483:      * @return \MOC\Module\Office\Document\Excel
484:      */
485:     public  function A5TransversePaper() {
486:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_TRANSVERSE_PAPER );
487:         return Api::Module()->Office()->Document()->Excel();
488:     }
489:     /**
490:      * @return \MOC\Module\Office\Document\Excel
491:      */
492:     public  function JisB5TransversePaper() {
493:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_JIS_B5_TRANSVERSE_PAPER );
494:         return Api::Module()->Office()->Document()->Excel();
495:     }
496:     /**
497:      * @return \MOC\Module\Office\Document\Excel
498:      */
499:     public  function A3ExtraPaper() {
500:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_PAPER );
501:         return Api::Module()->Office()->Document()->Excel();
502:     }
503:     /**
504:      * @return \MOC\Module\Office\Document\Excel
505:      */
506:     public  function A5ExtraPaper() {
507:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_EXTRA_PAPER );
508:         return Api::Module()->Office()->Document()->Excel();
509:     }
510:     /**
511:      * @return \MOC\Module\Office\Document\Excel
512:      */
513:     public  function IsoB5ExtraPaper() {
514:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B5_EXTRA_PAPER );
515:         return Api::Module()->Office()->Document()->Excel();
516:     }
517:     /**
518:      * @return \MOC\Module\Office\Document\Excel
519:      */
520:     public  function A2Paper() {
521:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A2_PAPER );
522:         return Api::Module()->Office()->Document()->Excel();
523:     }
524:     /**
525:      * @return \MOC\Module\Office\Document\Excel
526:      */
527:     public  function A3TransversePaper() {
528:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_TRANSVERSE_PAPER );
529:         return Api::Module()->Office()->Document()->Excel();
530:     }
531:     /**
532:      * @return \MOC\Module\Office\Document\Excel
533:      */
534:     public  function A3ExtraTransversePaper() {
535:         $this->getActiveSheet()->getPageSetup()->setPaperSize( \PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER );
536:         return Api::Module()->Office()->Document()->Excel();
537:     }
538: 
539:     /**
540:      * @return \PHPExcel_Worksheet
541:      */
542:     private function getActiveSheet() {
543:         return Api::Extension()->Excel()->Current()->getActiveSheet();
544:     }
545: }
546: 
API documentation generated by ApiGen 2.8.0