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
28#include <rtl/ustring.hxx>
29#include <sal/types.h>
30
31namespace oox {
32 class AttributeList;
33 class GraphicHelper;
34
35namespace vml {
36
37
39{
40public:
41 explicit TextPortionContext(
42 ::oox::core::ContextHandler2Helper const & rParent,
43 TextBox& rTextBox,
44 TextParagraphModel aParagraph,
45 TextFontModel aParentFont,
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
55private:
60};
61
62
64{
65public:
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
77private:
80};
81
82
83} // namespace vml
84} // namespace oox
85
86#endif
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides access to attribute values of an element.
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
TextBoxContext(::oox::core::ContextHandler2Helper const &rParent, TextBox &rTextBox, const AttributeList &rAttribs, const GraphicHelper &graphicHelper)
TextParagraphModel maParagraph
virtual void onStartElement(const AttributeList &rAttribs) override
virtual void onEndElement() override
The textbox contains all text contents and properties.
Definition: vmltextbox.hxx:80
TextPortionContext(::oox::core::ContextHandler2Helper const &rParent, TextBox &rTextBox, TextParagraphModel aParagraph, TextFontModel aParentFont, sal_Int32 nElement, const AttributeList &rAttribs)
virtual void onStartElement(const AttributeList &rAttribs) override
virtual void onEndElement() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onCharacters(const OUString &rChars) override
::rtl::Reference< ContextHandler > ContextHandlerRef
Font settings for a text portion in a textbox.
Definition: vmltextbox.hxx:50
A text paragraph in a textbox.
Definition: vmltextbox.hxx:43