示例#1
0
        public static string SlideSizeTypeToXMLValue(SlideSizeType sst)
        {
            // OOXML Spec § 4.8.22
            switch (sst)
            {
            case SlideSizeType.A4Paper:
                return("A4");

            case SlideSizeType.Banner:
                return("banner");

            case SlideSizeType.Custom:
                return("custom");

            case SlideSizeType.LetterSizedPaper:
                return("letter");

            case SlideSizeType.OnScreen:
                return("screen4x3");

            case SlideSizeType.Overhead:
                return("overhead");

            case SlideSizeType.Size35mm:
                return("35mm");

            default:
                throw new NotImplementedException(
                          String.Format("Can't convert slide size type {0} to XML value", sst));
            }
        }
示例#2
0
        public DocumentAtom(BinaryReader _reader, uint size, uint typeCode, uint version, uint instance)
            : base(_reader, size, typeCode, version, instance)
        {
            this.SlideSize  = new GPointAtom(this.Reader);
            this.NotesSize  = new GPointAtom(this.Reader);
            this.ServerZoom = new GRatioAtom(this.Reader);

            this.NotesMasterPersist   = this.Reader.ReadUInt32();
            this.HandoutMasterPersist = this.Reader.ReadUInt32();
            this.FirstSlideNum        = this.Reader.ReadUInt16();
            this.SlideSizeType        = (SlideSizeType)this.Reader.ReadInt16();

            this.SaveWithFonts  = this.Reader.ReadByte() != 0;
            this.OmitTitlePlace = this.Reader.ReadByte() != 0;
            this.RightToLeft    = this.Reader.ReadByte() != 0;
            this.ShowComments   = this.Reader.ReadByte() != 0;
        }