fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / filter / oox / drawingmanager.cxx
blob2b9dc40017ed17ba4c53367465e7c45302592816
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include "drawingmanager.hxx"
22 #include <com/sun/star/awt/Rectangle.hpp>
23 #include <com/sun/star/drawing/CircleKind.hpp>
24 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
25 #include <com/sun/star/drawing/PolygonKind.hpp>
26 #include <com/sun/star/drawing/XShapes.hpp>
27 #include <osl/diagnose.h>
28 #include <oox/core/filterbase.hxx>
29 #include <oox/drawingml/fillproperties.hxx>
30 #include <oox/drawingml/lineproperties.hxx>
31 #include <oox/drawingml/shapepropertymap.hxx>
32 #include <oox/helper/containerhelper.hxx>
33 #include <oox/token/tokens.hxx>
34 #include "biffinputstream.hxx"
35 #include "unitconverter.hxx"
37 namespace oox {
38 namespace xls {
40 using namespace ::com::sun::star::awt;
41 using namespace ::com::sun::star::drawing;
42 using namespace ::com::sun::star::lang;
43 using namespace ::com::sun::star::uno;
44 using namespace ::oox::drawingml;
46 // BIFF drawing page
47 BiffDrawingBase::BiffDrawingBase( const WorksheetHelper& rHelper, const Reference< XDrawPage >& rxDrawPage ) :
48 WorksheetHelper( rHelper ),
49 mxDrawPage( rxDrawPage )
53 void BiffDrawingBase::finalizeImport()
55 Reference< XShapes > xShapes( mxDrawPage, UNO_QUERY );
56 OSL_ENSURE( xShapes.is(), "BiffDrawingBase::finalizeImport - no shapes container" );
57 if( !xShapes.is() )
58 return;
61 BiffSheetDrawing::BiffSheetDrawing( const WorksheetHelper& rHelper ) :
62 BiffDrawingBase( rHelper, rHelper.getDrawPage() )
66 void BiffSheetDrawing::notifyShapeInserted( const Reference< XShape >& /*rxShape*/, const css::awt::Rectangle& rShapeRect )
68 // collect all shape positions in the WorksheetHelper base class
69 extendShapeBoundingBox( rShapeRect );
72 } // namespace xls
73 } // namespace oox
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */