Line data Source code
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 : #include "drawingmanager.hxx"
21 :
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"
36 :
37 : namespace oox {
38 : namespace xls {
39 :
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;
45 :
46 : // BIFF drawing page
47 0 : BiffDrawingBase::BiffDrawingBase( const WorksheetHelper& rHelper, const Reference< XDrawPage >& rxDrawPage ) :
48 : WorksheetHelper( rHelper ),
49 0 : mxDrawPage( rxDrawPage )
50 : {
51 0 : }
52 :
53 0 : void BiffDrawingBase::finalizeImport()
54 : {
55 0 : Reference< XShapes > xShapes( mxDrawPage, UNO_QUERY );
56 : OSL_ENSURE( xShapes.is(), "BiffDrawingBase::finalizeImport - no shapes container" );
57 0 : if( !xShapes.is() )
58 0 : return;
59 : }
60 :
61 0 : BiffSheetDrawing::BiffSheetDrawing( const WorksheetHelper& rHelper ) :
62 0 : BiffDrawingBase( rHelper, rHelper.getDrawPage() )
63 : {
64 0 : }
65 :
66 0 : void BiffSheetDrawing::notifyShapeInserted( const Reference< XShape >& /*rxShape*/, const css::awt::Rectangle& rShapeRect )
67 : {
68 : // collect all shape positions in the WorksheetHelper base class
69 0 : extendShapeBoundingBox( rShapeRect );
70 0 : }
71 :
72 : } // namespace xls
73 30 : } // namespace oox
74 :
75 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|