1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_xmloff.hxx" 26 #include <xmloff/formlayerimport.hxx> 27 #include "layerimport.hxx" 28 29 //......................................................................... 30 namespace xmloff 31 { 32 //......................................................................... 33 34 using namespace ::com::sun::star::uno; 35 using namespace ::com::sun::star::lang; 36 using namespace ::com::sun::star::beans; 37 using namespace ::com::sun::star::container; 38 using namespace ::com::sun::star::drawing; 39 using namespace ::com::sun::star::xml; 40 41 //===================================================================== 42 //= OFormLayerXMLExport 43 //===================================================================== 44 45 //--------------------------------------------------------------------- OFormLayerXMLImport(SvXMLImport & _rImporter)46 OFormLayerXMLImport::OFormLayerXMLImport(SvXMLImport& _rImporter) 47 :m_pImpl(NULL) 48 { 49 m_pImpl = new OFormLayerXMLImport_Impl(_rImporter); 50 } 51 52 //--------------------------------------------------------------------- ~OFormLayerXMLImport()53 OFormLayerXMLImport::~OFormLayerXMLImport() 54 { 55 delete m_pImpl; 56 } 57 58 //--------------------------------------------------------------------- setAutoStyleContext(SvXMLStylesContext * _pNewContext)59 void OFormLayerXMLImport::setAutoStyleContext(SvXMLStylesContext* _pNewContext) 60 { 61 m_pImpl->setAutoStyleContext(_pNewContext); 62 } 63 64 //--------------------------------------------------------------------- seekPage(const Reference<XDrawPage> & _rxDrawPage)65 void OFormLayerXMLImport::seekPage(const Reference< XDrawPage >& _rxDrawPage) 66 { 67 m_pImpl->seekPage(_rxDrawPage); 68 } 69 70 //--------------------------------------------------------------------- startPage(const Reference<XDrawPage> & _rxDrawPage)71 void OFormLayerXMLImport::startPage(const Reference< XDrawPage >& _rxDrawPage) 72 { 73 m_pImpl->startPage(_rxDrawPage); 74 } 75 76 //--------------------------------------------------------------------- endPage()77 void OFormLayerXMLImport::endPage() 78 { 79 m_pImpl->endPage(); 80 } 81 82 //--------------------------------------------------------------------- lookupControl(const::rtl::OUString & _rId)83 Reference< XPropertySet > OFormLayerXMLImport::lookupControl(const ::rtl::OUString& _rId) 84 { 85 return m_pImpl->lookupControlId(_rId); 86 } 87 88 //--------------------------------------------------------------------- createOfficeFormsContext(SvXMLImport & _rImport,sal_uInt16 _nPrefix,const rtl::OUString & _rLocalName)89 SvXMLImportContext* OFormLayerXMLImport::createOfficeFormsContext( 90 SvXMLImport& _rImport, 91 sal_uInt16 _nPrefix, 92 const rtl::OUString& _rLocalName) 93 { 94 return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName); 95 } 96 97 //--------------------------------------------------------------------- createContext(const sal_uInt16 _nPrefix,const rtl::OUString & _rLocalName,const Reference<sax::XAttributeList> & _rxAttribs)98 SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const rtl::OUString& _rLocalName, 99 const Reference< sax::XAttributeList >& _rxAttribs) 100 { 101 return m_pImpl->createContext(_nPrefix, _rLocalName, _rxAttribs); 102 } 103 104 //--------------------------------------------------------------------- applyControlNumberStyle(const Reference<XPropertySet> & _rxControlModel,const::rtl::OUString & _rControlNumerStyleName)105 void OFormLayerXMLImport::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const ::rtl::OUString& _rControlNumerStyleName) 106 { 107 m_pImpl->applyControlNumberStyle(_rxControlModel, _rControlNumerStyleName); 108 } 109 110 //--------------------------------------------------------------------- documentDone()111 void OFormLayerXMLImport::documentDone( ) 112 { 113 m_pImpl->documentDone( ); 114 } 115 116 //......................................................................... 117 } // namespace xmloff 118 //......................................................................... 119 120