unioffice/presentation/view_props.go
Vyacheslav Zgordan 2052cbb728
PPT relationships, image fix (#395)
* PPT relationships, image fix

* filenames fix

* Custom properties fix

* schema update

* Table styles fix

* Scale fix

* path fix

* New schema: cycle imports fix

* xsdAny namespace duplicate fix

* Images names fix

* Images extensions fix

* duplicate chart fix

* chart empty attrs fix

* Choice if fixed, scale is rolled back

* comments

* Rollback license info in schema files

* import path fix

* import path fix 2

* error with incorrect content types names fixed when deleting slides and then adding them again

* template with image example

* MustCompile replaced

* imports fixed

* slideIdx error fix
2020-06-07 13:42:27 +00:00

79 lines
2.2 KiB
Go

// Copyright 2017 FoxyUtils ehf. All rights reserved.
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased via https://unidoc.io website.
package presentation
import (
"github.com/unidoc/unioffice/schema/soo/dml"
"github.com/unidoc/unioffice/schema/soo/pml"
)
// ViewProperties contains presentation specific properties.
type ViewProperties struct {
x *pml.ViewPr
}
// NewViewProperties constructs a new ViewProperties.
func NewViewProperties() ViewProperties {
return ViewProperties{x: pml.NewViewPr()}
}
// X returns the inner wrapped XML type.
func (p ViewProperties) X() *pml.ViewPr {
return p.x
}
// LastViewAttr returns the LastViewAttr property.
func (p ViewProperties) LastViewAttr() pml.ST_ViewType {
return p.x.LastViewAttr
}
// ShowCommentsAttr returns the WebPr property.
func (p ViewProperties) ShowCommentsAttr() *bool {
return p.x.ShowCommentsAttr
}
// NormalViewPr returns the NormalViewPr property.
func (p ViewProperties) NormalViewPr() *pml.CT_NormalViewProperties {
return p.x.NormalViewPr
}
// SlideViewPr returns the SlideViewPr property.
func (p ViewProperties) SlideViewPr() *pml.CT_SlideViewProperties {
return p.x.SlideViewPr
}
// OutlineViewPr returns the OutlineViewPr property.
func (p ViewProperties) OutlineViewPr() *pml.CT_OutlineViewProperties {
return p.x.OutlineViewPr
}
// NotesTextViewPr returns the NotesTextViewPr property.
func (p ViewProperties) NotesTextViewPr() *pml.CT_NotesTextViewProperties {
return p.x.NotesTextViewPr
}
// NotesViewPr returns the NotesViewPr property.
func (p ViewProperties) NotesViewPr() *pml.CT_NotesViewProperties {
return p.x.NotesViewPr
}
// SorterViewPr returns the SorterViewPr property.
func (p ViewProperties) SorterViewPr() *pml.CT_SlideSorterViewProperties {
return p.x.SorterViewPr
}
// GridSpacing returns the GridSpacing property.
func (p ViewProperties) GridSpacing() *dml.CT_PositiveSize2D {
return p.x.GridSpacing
}
// ExtLst returns the ExtLst property.
func (p ViewProperties) ExtLst() *pml.CT_ExtensionList {
return p.x.ExtLst
}