fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / source / drawingml / ThemeOverrideFragmentHandler.cxx
blob8d710955db6e1e6c991dad6fed45bac87d1e4f9f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include <drawingml/ThemeOverrideFragmentHandler.hxx>
11 #include "oox/drawingml/theme.hxx"
12 #include "drawingml/themeelementscontext.hxx"
14 using namespace ::oox::core;
16 namespace oox {
17 namespace drawingml {
19 ThemeOverrideFragmentHandler::ThemeOverrideFragmentHandler( XmlFilterBase& rFilter, const OUString& rFragmentPath, Theme& rTheme ) :
20 FragmentHandler2( rFilter, rFragmentPath ),
21 mrTheme( rTheme )
25 ThemeOverrideFragmentHandler::~ThemeOverrideFragmentHandler()
29 ContextHandlerRef ThemeOverrideFragmentHandler::onCreateContext( sal_Int32 nElement, const AttributeList& )
31 // CT_OfficeStyleSheet
32 switch( getCurrentElement() )
34 case XML_ROOT_CONTEXT:
35 switch( nElement )
37 case A_TOKEN( themeOverride ): // CT_BaseStylesOverride
38 return new ThemeElementsContext( *this, mrTheme );
40 break;
42 return 0;
45 } // namespace drawingml
46 } // namespace oox
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */