예제 #1
0
        /**
         * Adds a page to the book with margin
         *
         * @param page
         *            New page (url) to be added
         */

        public void addPage(string uri, int type, int margin, int marginEnd, int marginTop, int marginBottom, bool scrollable)
        {
            BookPage page = new BookPage(uri, type, margin, marginEnd, marginTop, marginBottom, scrollable);

            pages.Add(page);
            // add the page to the structure that gather all elements with assets (for chapter importation)
            if (type != BookPage.TYPE_URL && uri != null && !uri.Equals(""))
            {
                AllElementsWithAssets.addAsset(page);
            }
        }
예제 #2
0
        /**
         * Adds a page to the book
         *
         * @param page
         *            New page (url) to be added
         */

        public void addPage(string uri, int type)
        {
            BookPage page = new BookPage(uri, type);

            pages.Add(page);
            // add the page to the structure that gather all elements with assets (for chapter importation)
            if (uri != null && !uri.Equals(""))
            {
                AllElementsWithAssets.addAsset(page);
            }
        }
예제 #3
0
        public object Clone()
        {
            BookPage bp = (BookPage)this.MemberwiseClone();

            bp.margin       = margin;
            bp.marginBottom = marginBottom;
            bp.marginEnd    = marginEnd;
            bp.marginTop    = marginTop;
            bp.scrollable   = scrollable;
            bp.type         = type;
            bp.uri          = (uri != null ? uri : null);
            return(bp);
        }