code: public boolean addPageStyle(final PageStyle ps) {
          boolean ret = this.addMasterPageStyle(ps.getMasterPageStyle());
          ret = this.addPageLayoutStyle(ps.getPageLayoutStyle()) && ret;
          return ret;
      }
docs: Add a page style
  
  @param ps the style
  @return true if the master page style and the style layout where added