LibreOffice Module oox (master)  1
vmltextboxcontext.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_OOX_VML_VMLTEXTBOXCONTEXT_HXX
21 #define INCLUDED_OOX_VML_VMLTEXTBOXCONTEXT_HXX
22 
23 #include <cstddef>
24 
27 #include <oox/vml/vmltextbox.hxx>
28 #include <rtl/ustring.hxx>
29 #include <sal/types.h>
30 
31 namespace oox {
32  class AttributeList;
33  class GraphicHelper;
34 
35 namespace vml {
36 
37 
39 {
40 public:
41  explicit TextPortionContext(
42  ::oox::core::ContextHandler2Helper const & rParent,
43  TextBox& rTextBox,
44  TextParagraphModel const & rParagraph,
45  const TextFontModel& rParentFont,
46  sal_Int32 nElement,
47  const AttributeList& rAttribs );
48 
50  onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
51  virtual void onCharacters( const OUString& rChars ) override;
52  virtual void onStartElement(const AttributeList& rAttribs) override;
53  virtual void onEndElement() override;
54 
55 private:
60 };
61 
62 
64 {
65 public:
66  explicit TextBoxContext(
67  ::oox::core::ContextHandler2Helper const & rParent,
68  TextBox& rTextBox,
69  const AttributeList& rAttribs,
70  const GraphicHelper& graphicHelper );
71 
73  onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
74  virtual void onStartElement(const AttributeList& rAttribs) override;
75  virtual void onEndElement() override;
76 
77 private:
80 };
81 
82 
83 } // namespace vml
84 } // namespace oox
85 
86 #endif
87 
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
A text paragraph in a textbox.
Definition: vmltextbox.hxx:42
virtual void onStartElement(const AttributeList &rAttribs) override
Will be called when a new element has been started.
Font settings for a text portion in a textbox.
Definition: vmltextbox.hxx:49
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual void onEndElement() override
Will be called when the current element is about to be left.
The textbox contains all text contents and properties.
Definition: vmltextbox.hxx:79
Provides access to attribute values of an element.
TextBoxContext(::oox::core::ContextHandler2Helper const &rParent, TextBox &rTextBox, const AttributeList &rAttribs, const GraphicHelper &graphicHelper)
virtual void onStartElement(const AttributeList &rAttribs) override
Will be called when a new element has been started.
::rtl::Reference< ContextHandler > ContextHandlerRef
virtual void onEndElement() override
Will be called when the current element is about to be left.
TextParagraphModel maParagraph
TextPortionContext(::oox::core::ContextHandler2Helper const &rParent, TextBox &rTextBox, TextParagraphModel const &rParagraph, const TextFontModel &rParentFont, sal_Int32 nElement, const AttributeList &rAttribs)
virtual void onCharacters(const OUString &rChars) override
Will be called before a new child element starts, or if the current element is about to be left...
Helper class that provides a context stack.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.