LibreOffice Module xmloff (master)  1
formlayerimport.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_XMLOFF_FORMLAYERIMPORT_HXX
21 #define INCLUDED_XMLOFF_FORMLAYERIMPORT_HXX
22 
23 #include <sal/config.h>
24 #include <xmloff/dllapi.h>
25 #include <com/sun/star/uno/Reference.hxx>
27 #include <memory>
28 
29 namespace com::sun::star::beans { class XPropertySet; }
30 namespace com::sun::star::drawing { class XDrawPage; }
31 namespace com::sun::star::xml::sax { class XAttributeList; }
32 namespace com::sun::star::xml::sax { class XFastAttributeList; }
33 
34 class SvXMLImport;
35 class SvXMLImportContext;
36 class SvXMLStylesContext;
37 
38 
39 namespace xmloff
40 {
41 
42 
43  //= OFormLayerXMLImport
44 
45  class OFormLayerXMLImport_Impl;
50  {
51  std::unique_ptr<OFormLayerXMLImport_Impl> m_pImpl;
52 
53  public:
54  SAL_DLLPRIVATE OFormLayerXMLImport(SvXMLImport& _rImporter);
55  SAL_DLLPRIVATE virtual ~OFormLayerXMLImport() override;
56 
63  void startPage(
64  const css::uno::Reference< css::drawing::XDrawPage >& _rxDrawPage);
65 
68  static SvXMLImportContext* createOfficeFormsContext(
69  SvXMLImport& _rImport);
70 
79  SAL_DLLPRIVATE SvXMLImportContext* createContext(
80  const sal_Int32 _nElement,
81  const css::uno::Reference< css::xml::sax::XFastAttributeList >& _rxAttribs);
82 
91  SAL_DLLPRIVATE css::uno::Reference< css::beans::XPropertySet >
92  lookupControl(const OUString& _rId);
93 
101  void endPage();
102 
105  SAL_DLLPRIVATE void setAutoStyleContext(SvXMLStylesContext* _pNewContext);
106 
113  SAL_DLLPRIVATE void applyControlNumberStyle(
114  const css::uno::Reference< css::beans::XPropertySet >& _rxControlModel,
115  const OUString& _rControlNumberStyleName
116  );
117 
124  SAL_DLLPRIVATE void documentDone( );
125  };
126 
127 
128 } // namespace xmloff
129 
130 
131 #endif // INCLUDED_XMLOFF_FORMLAYERIMPORT_HXX
132 
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< OFormLayerXMLImport_Impl > m_pImpl
class SAL_NO_VTABLE XPropertySet
allows you to import a element
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:44
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29