Bloom.Book.Book.GetDefaultBookletLayout C# (CSharp) Method

GetDefaultBookletLayout() public method

public GetDefaultBookletLayout ( ) : PublishModel.BookletLayoutMethod
return PublishModel.BookletLayoutMethod
        public PublishModel.BookletLayoutMethod GetDefaultBookletLayout()
        {
            //NB: all we support at the moment is specifying "Calendar"
            if (OurHtmlDom.SafeSelectNodes(String.Format("//meta[@name='defaultBookletLayout' and @content='Calendar']")).Count >
                0)
                return PublishModel.BookletLayoutMethod.Calendar;
            else
            {
                var layout = GetLayout();
                if (layout.SizeAndOrientation.IsLandScape && layout.SizeAndOrientation.PageSizeName == "A5")
                    return PublishModel.BookletLayoutMethod.CutAndStack;
                return PublishModel.BookletLayoutMethod.SideFold;
            }
        }
Book