2010-10-12 15:56:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-16 17:32:30 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2008-07-01 11:20:08 +00:00
|
|
|
|
2012-06-04 12:46:17 +02:00
|
|
|
#include <com/sun/star/xml/sax/XFastSAXSerializable.hpp>
|
|
|
|
|
2008-01-17 07:06:10 +00:00
|
|
|
#include "ShapeContextHandler.hxx"
|
2012-06-05 11:37:20 +02:00
|
|
|
#include "ShapeDrawingFragmentHandler.hxx"
|
2013-06-20 10:37:46 +02:00
|
|
|
#include "LockedCanvasContext.hxx"
|
2013-11-13 10:35:36 +01:00
|
|
|
#include "WpsContext.hxx"
|
2013-11-27 11:40:46 +01:00
|
|
|
#include "WpgContext.hxx"
|
2014-04-14 14:15:12 +02:00
|
|
|
#include "services.hxx"
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
#include "oox/vml/vmldrawingfragment.hxx"
|
|
|
|
#include "oox/vml/vmlshape.hxx"
|
2012-06-04 12:46:17 +02:00
|
|
|
#include "oox/drawingml/themefragmenthandler.hxx"
|
2014-02-05 23:57:38 -02:00
|
|
|
#include <cppuhelper/supportsservice.hxx>
|
2015-02-19 08:40:27 +00:00
|
|
|
#include <memory>
|
2008-01-17 07:06:10 +00:00
|
|
|
|
|
|
|
namespace oox { namespace shape {
|
|
|
|
|
|
|
|
using namespace ::com::sun::star;
|
|
|
|
using namespace core;
|
|
|
|
using namespace drawingml;
|
|
|
|
|
2013-02-03 18:18:37 -02:00
|
|
|
OUString SAL_CALL ShapeContextHandler_getImplementationName()
|
2010-08-30 16:10:01 +02:00
|
|
|
{
|
2013-01-04 15:39:44 +01:00
|
|
|
return OUString( "com.sun.star.comp.oox.ShapeContextHandler" );
|
2010-08-30 16:10:01 +02:00
|
|
|
}
|
|
|
|
|
2013-02-03 18:18:37 -02:00
|
|
|
uno::Sequence< OUString > SAL_CALL
|
2010-08-30 16:10:01 +02:00
|
|
|
ShapeContextHandler_getSupportedServiceNames()
|
|
|
|
{
|
2013-02-03 18:18:37 -02:00
|
|
|
uno::Sequence< OUString > s(1);
|
2013-01-04 15:39:44 +01:00
|
|
|
s[0] = "com.sun.star.xml.sax.FastShapeContextHandler";
|
2010-08-30 16:10:01 +02:00
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
|
|
|
uno::Reference< uno::XInterface > SAL_CALL
|
|
|
|
ShapeContextHandler_createInstance( const uno::Reference< uno::XComponentContext > & context)
|
2014-04-14 14:15:12 +02:00
|
|
|
throw (uno::Exception)
|
2010-08-30 16:10:01 +02:00
|
|
|
{
|
|
|
|
return static_cast< ::cppu::OWeakObject* >( new ShapeContextHandler(context) );
|
|
|
|
}
|
|
|
|
|
2008-01-17 07:06:10 +00:00
|
|
|
ShapeContextHandler::ShapeContextHandler
|
|
|
|
(uno::Reference< uno::XComponentContext > const & context) :
|
2009-02-18 11:48:16 +00:00
|
|
|
mnStartToken(0), m_xContext(context)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-03-05 17:52:58 +00:00
|
|
|
try
|
|
|
|
{
|
2010-08-30 16:10:01 +02:00
|
|
|
mxFilterBase.set( new ShapeFilterBase(context) );
|
2008-03-05 17:52:58 +00:00
|
|
|
}
|
|
|
|
catch( uno::Exception& )
|
|
|
|
{
|
|
|
|
}
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ShapeContextHandler::~ShapeContextHandler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-06-20 10:37:46 +02:00
|
|
|
uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getLockedCanvasContext(sal_Int32 nElement)
|
|
|
|
{
|
|
|
|
if (!mxLockedCanvasContext.is())
|
|
|
|
{
|
2013-06-20 20:30:11 +03:00
|
|
|
FragmentHandler2Ref rFragmentHandler(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
|
2013-06-20 10:37:46 +02:00
|
|
|
ShapePtr pMasterShape;
|
|
|
|
|
|
|
|
switch (nElement & 0xffff)
|
|
|
|
{
|
|
|
|
case XML_lockedCanvas:
|
|
|
|
mxLockedCanvasContext.set(new LockedCanvasContext(*rFragmentHandler));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return mxLockedCanvasContext;
|
|
|
|
}
|
|
|
|
|
2013-09-17 18:54:21 +05:30
|
|
|
/*
|
|
|
|
* This method creates new ChartGraphicDataContext Object.
|
|
|
|
*/
|
|
|
|
uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getChartShapeContext(sal_Int32 nElement)
|
|
|
|
{
|
|
|
|
if (!mxChartShapeContext.is())
|
|
|
|
{
|
|
|
|
switch (nElement & 0xffff)
|
|
|
|
{
|
|
|
|
case XML_chart:
|
2013-10-11 08:47:04 +01:00
|
|
|
{
|
2015-02-19 08:40:27 +00:00
|
|
|
std::unique_ptr<ContextHandler2Helper> pFragmentHandler(
|
2014-01-19 20:46:52 +01:00
|
|
|
new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
|
2013-09-17 18:54:21 +05:30
|
|
|
mpShape.reset(new Shape("com.sun.star.drawing.OLE2Shape" ));
|
2014-01-19 20:46:52 +01:00
|
|
|
mxChartShapeContext.set(new ChartGraphicDataContext(*pFragmentHandler, mpShape, true));
|
2013-09-17 18:54:21 +05:30
|
|
|
break;
|
2013-10-11 08:47:04 +01:00
|
|
|
}
|
2013-09-17 18:54:21 +05:30
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return mxChartShapeContext;
|
|
|
|
}
|
|
|
|
|
2013-11-28 15:01:39 +01:00
|
|
|
uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getWpsContext(sal_Int32 nStartElement, sal_Int32 nElement)
|
2013-11-13 10:35:36 +01:00
|
|
|
{
|
|
|
|
if (!mxWpsContext.is())
|
|
|
|
{
|
|
|
|
FragmentHandler2Ref rFragmentHandler(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
|
|
|
|
ShapePtr pMasterShape;
|
|
|
|
|
2013-11-28 15:01:39 +01:00
|
|
|
uno::Reference<drawing::XShape> xShape;
|
|
|
|
// No element happens in case of pretty-printed XML, bodyPr is the case when we are called again after <wps:txbx>.
|
|
|
|
if (!nElement || nElement == WPS_TOKEN(bodyPr))
|
|
|
|
// Assume that this is just a continuation of the previous shape.
|
|
|
|
xShape = mxSavedShape;
|
|
|
|
|
|
|
|
switch (getBaseToken(nStartElement))
|
2013-11-13 10:35:36 +01:00
|
|
|
{
|
|
|
|
case XML_wsp:
|
2013-11-28 15:01:39 +01:00
|
|
|
mxWpsContext.set(new WpsContext(*rFragmentHandler, xShape));
|
2013-11-13 10:35:36 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return mxWpsContext;
|
|
|
|
}
|
|
|
|
|
2013-11-27 11:40:46 +01:00
|
|
|
uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getWpgContext(sal_Int32 nElement)
|
|
|
|
{
|
|
|
|
if (!mxWpgContext.is())
|
|
|
|
{
|
|
|
|
FragmentHandler2Ref rFragmentHandler(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
|
|
|
|
ShapePtr pMasterShape;
|
|
|
|
|
|
|
|
switch (getBaseToken(nElement))
|
|
|
|
{
|
|
|
|
case XML_wgp:
|
|
|
|
mxWpgContext.set(new WpgContext(*rFragmentHandler));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return mxWpgContext;
|
|
|
|
}
|
|
|
|
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<xml::sax::XFastContextHandler>
|
2009-02-18 11:48:16 +00:00
|
|
|
ShapeContextHandler::getGraphicShapeContext(::sal_Int32 Element )
|
2008-04-18 13:32:32 +00:00
|
|
|
{
|
|
|
|
if (! mxGraphicShapeContext.is())
|
|
|
|
{
|
2015-02-19 08:40:27 +00:00
|
|
|
std::shared_ptr<ContextHandler2Helper> pFragmentHandler
|
2008-04-18 13:32:32 +00:00
|
|
|
(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
|
|
|
|
ShapePtr pMasterShape;
|
2009-02-18 11:48:16 +00:00
|
|
|
|
|
|
|
switch (Element & 0xffff)
|
|
|
|
{
|
|
|
|
case XML_graphic:
|
2010-08-26 18:37:44 +02:00
|
|
|
mpShape.reset(new Shape("com.sun.star.drawing.GraphicObjectShape" ));
|
2009-02-18 11:48:16 +00:00
|
|
|
mxGraphicShapeContext.set
|
2013-09-05 15:05:41 +02:00
|
|
|
(new GraphicalObjectFrameContext(*pFragmentHandler, pMasterShape, mpShape, true));
|
2009-02-18 11:48:16 +00:00
|
|
|
break;
|
|
|
|
case XML_pic:
|
|
|
|
mpShape.reset(new Shape("com.sun.star.drawing.GraphicObjectShape" ));
|
|
|
|
mxGraphicShapeContext.set
|
2013-09-05 15:05:41 +02:00
|
|
|
(new GraphicShapeContext(*pFragmentHandler, pMasterShape, mpShape));
|
2009-02-18 11:48:16 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2008-04-18 13:32:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return mxGraphicShapeContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
uno::Reference<xml::sax::XFastContextHandler>
|
|
|
|
ShapeContextHandler::getDrawingShapeContext()
|
|
|
|
{
|
|
|
|
if (!mxDrawingFragmentHandler.is())
|
|
|
|
{
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
mpDrawing.reset( new oox::vml::Drawing( *mxFilterBase, mxDrawPage, oox::vml::VMLDRAWING_WORD ) );
|
2008-04-18 13:32:32 +00:00
|
|
|
mxDrawingFragmentHandler.set
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
(dynamic_cast<ContextHandler *>
|
|
|
|
(new oox::vml::DrawingFragment
|
|
|
|
( *mxFilterBase, msRelationFragmentPath, *mpDrawing )));
|
2008-04-18 13:32:32 +00:00
|
|
|
}
|
2014-07-08 15:32:29 +05:30
|
|
|
else
|
|
|
|
{
|
|
|
|
// Reset the handler if fragment path has changed
|
2014-07-18 13:08:25 +01:00
|
|
|
OUString sHandlerFragmentPath = dynamic_cast<ContextHandler&>(*mxDrawingFragmentHandler.get()).getFragmentPath();
|
2014-07-08 15:32:29 +05:30
|
|
|
if ( !msRelationFragmentPath.equals(sHandlerFragmentPath) )
|
|
|
|
{
|
|
|
|
mxDrawingFragmentHandler.clear();
|
|
|
|
mxDrawingFragmentHandler.set
|
|
|
|
(dynamic_cast<ContextHandler *>
|
|
|
|
(new oox::vml::DrawingFragment
|
|
|
|
( *mxFilterBase, msRelationFragmentPath, *mpDrawing )));
|
|
|
|
}
|
|
|
|
}
|
2008-04-18 13:32:32 +00:00
|
|
|
return mxDrawingFragmentHandler;
|
|
|
|
}
|
|
|
|
|
2012-05-30 09:56:58 +02:00
|
|
|
uno::Reference<xml::sax::XFastContextHandler>
|
|
|
|
ShapeContextHandler::getDiagramShapeContext()
|
|
|
|
{
|
|
|
|
if (!mxDiagramShapeContext.is())
|
|
|
|
{
|
2015-02-19 08:40:27 +00:00
|
|
|
std::shared_ptr<ContextHandler2Helper> pFragmentHandler(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath));
|
2012-05-30 09:56:58 +02:00
|
|
|
mpShape.reset(new Shape());
|
2013-09-05 15:05:41 +02:00
|
|
|
mxDiagramShapeContext.set(new DiagramGraphicDataContext(*pFragmentHandler, mpShape));
|
2012-05-30 09:56:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return mxDiagramShapeContext;
|
|
|
|
}
|
|
|
|
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<xml::sax::XFastContextHandler>
|
2013-11-28 15:01:39 +01:00
|
|
|
ShapeContextHandler::getContextHandler(sal_Int32 nElement)
|
2008-04-18 13:32:32 +00:00
|
|
|
{
|
|
|
|
uno::Reference<xml::sax::XFastContextHandler> xResult;
|
2009-02-18 11:48:16 +00:00
|
|
|
|
2010-11-08 13:47:01 +01:00
|
|
|
switch (getNamespace( mnStartToken ))
|
2009-02-18 11:48:16 +00:00
|
|
|
{
|
2010-11-08 13:47:01 +01:00
|
|
|
case NMSP_doc:
|
|
|
|
case NMSP_vml:
|
2009-02-18 11:48:16 +00:00
|
|
|
xResult.set(getDrawingShapeContext());
|
|
|
|
break;
|
2012-05-30 09:56:58 +02:00
|
|
|
case NMSP_dmlDiagram:
|
|
|
|
xResult.set(getDiagramShapeContext());
|
|
|
|
break;
|
2013-06-20 10:37:46 +02:00
|
|
|
case NMSP_dmlLockedCanvas:
|
|
|
|
xResult.set(getLockedCanvasContext(mnStartToken));
|
|
|
|
break;
|
2013-09-17 18:54:21 +05:30
|
|
|
case NMSP_dmlChart:
|
|
|
|
xResult.set(getChartShapeContext(mnStartToken));
|
|
|
|
break;
|
2013-11-13 10:35:36 +01:00
|
|
|
case NMSP_wps:
|
2013-11-28 15:01:39 +01:00
|
|
|
xResult.set(getWpsContext(mnStartToken, nElement));
|
2013-11-13 10:35:36 +01:00
|
|
|
break;
|
2013-11-27 11:40:46 +01:00
|
|
|
case NMSP_wpg:
|
|
|
|
xResult.set(getWpgContext(mnStartToken));
|
|
|
|
break;
|
2009-02-18 11:48:16 +00:00
|
|
|
default:
|
|
|
|
xResult.set(getGraphicShapeContext(mnStartToken));
|
|
|
|
break;
|
|
|
|
}
|
2008-04-18 13:32:32 +00:00
|
|
|
|
|
|
|
return xResult;
|
|
|
|
}
|
|
|
|
|
2015-10-23 14:35:25 +02:00
|
|
|
// css::xml::sax::XFastContextHandler:
|
2008-01-17 07:06:10 +00:00
|
|
|
void SAL_CALL ShapeContextHandler::startFastElement
|
|
|
|
(::sal_Int32 Element,
|
|
|
|
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2013-02-03 18:18:37 -02:00
|
|
|
static const OUString sInputStream
|
|
|
|
("InputStream");
|
2008-03-05 17:52:58 +00:00
|
|
|
|
|
|
|
uno::Sequence<beans::PropertyValue> aSeq(1);
|
|
|
|
aSeq[0].Name = sInputStream;
|
|
|
|
aSeq[0].Value <<= mxInputStream;
|
|
|
|
mxFilterBase->filter(aSeq);
|
|
|
|
|
|
|
|
mpThemePtr.reset(new Theme());
|
|
|
|
|
2014-02-12 14:15:54 +00:00
|
|
|
if (Element == DGM_TOKEN(relIds) || Element == LC_TOKEN(lockedCanvas) || Element == C_TOKEN(chart) ||
|
2014-02-12 16:20:21 +01:00
|
|
|
Element == WPS_TOKEN(wsp) || Element == WPG_TOKEN(wgp) || Element == OOX_TOKEN(dmlPicture, pic))
|
2012-06-04 12:46:17 +02:00
|
|
|
{
|
|
|
|
// Parse the theme relation, if available; the diagram won't have colors without it.
|
|
|
|
if (!msRelationFragmentPath.isEmpty())
|
|
|
|
{
|
2014-07-22 11:40:49 +05:30
|
|
|
// Get Target for Type = "officeDocument" from _rels/.rels file
|
|
|
|
// aOfficeDocumentFragmentPath is pointing to "word/document.xml" for docx & to "ppt/presentation.xml" for pptx
|
|
|
|
FragmentHandlerRef rFragmentHandlerRef(new ShapeFragmentHandler(*mxFilterBase, "/"));
|
|
|
|
OUString aOfficeDocumentFragmentPath = rFragmentHandlerRef->getFragmentPathFromFirstTypeFromOfficeDoc( "officeDocument" );
|
|
|
|
|
|
|
|
// Get the theme DO NOT use msRelationFragmentPath for getting theme as for a document there is a single theme in document.xml.rels
|
|
|
|
// and the same is used by header and footer as well.
|
|
|
|
FragmentHandlerRef rFragmentHandler(new ShapeFragmentHandler(*mxFilterBase, aOfficeDocumentFragmentPath));
|
2014-03-01 19:06:15 +01:00
|
|
|
OUString aThemeFragmentPath = rFragmentHandler->getFragmentPathFromFirstTypeFromOfficeDoc( "theme" );
|
2014-07-22 11:40:49 +05:30
|
|
|
|
2013-09-17 18:54:21 +05:30
|
|
|
if(!aThemeFragmentPath.isEmpty())
|
|
|
|
{
|
|
|
|
uno::Reference<xml::sax::XFastSAXSerializable> xDoc(mxFilterBase->importFragment(aThemeFragmentPath), uno::UNO_QUERY_THROW);
|
|
|
|
mxFilterBase->importFragment(new ThemeFragmentHandler(*mxFilterBase, aThemeFragmentPath, *mpThemePtr ), xDoc);
|
|
|
|
ShapeFilterBase* pShapeFilterBase(dynamic_cast<ShapeFilterBase*>(mxFilterBase.get()));
|
|
|
|
if (pShapeFilterBase)
|
|
|
|
pShapeFilterBase->setCurrentTheme(mpThemePtr);
|
|
|
|
}
|
2012-06-04 12:46:17 +02:00
|
|
|
}
|
|
|
|
|
2012-05-30 09:56:58 +02:00
|
|
|
createFastChildContext(Element, Attribs);
|
2012-06-04 12:46:17 +02:00
|
|
|
}
|
2012-05-30 09:56:58 +02:00
|
|
|
|
2012-06-13 18:04:51 +02:00
|
|
|
// Entering VML block (startFastElement() is called for the outermost tag),
|
|
|
|
// handle possible recursion.
|
|
|
|
if ( getContextHandler() == getDrawingShapeContext() )
|
|
|
|
mpDrawing->getShapes().pushMark();
|
|
|
|
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
|
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
xContextHandler->startFastElement(Element, Attribs);
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL ShapeContextHandler::startUnknownElement
|
2013-02-03 18:18:37 -02:00
|
|
|
(const OUString & Namespace, const OUString & Name,
|
2008-01-17 07:06:10 +00:00
|
|
|
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2012-06-13 18:04:51 +02:00
|
|
|
if ( getContextHandler() == getDrawingShapeContext() )
|
|
|
|
mpDrawing->getShapes().pushMark();
|
|
|
|
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
|
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
xContextHandler->startUnknownElement(Namespace, Name, Attribs);
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL ShapeContextHandler::endFastElement(::sal_Int32 Element)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
|
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
xContextHandler->endFastElement(Element);
|
2013-12-06 15:54:12 +01:00
|
|
|
// In case a textbox is sent, and later we get additional properties for
|
|
|
|
// the textbox, then the wps context is not cleared, so do that here.
|
|
|
|
if (Element == (NMSP_wps | XML_wsp))
|
|
|
|
{
|
|
|
|
uno::Reference<lang::XServiceInfo> xServiceInfo(mxSavedShape, uno::UNO_QUERY);
|
2014-06-04 14:18:33 +02:00
|
|
|
bool bTextFrame = xServiceInfo.is() && xServiceInfo->supportsService("com.sun.star.text.TextFrame");
|
|
|
|
bool bTextBox = false;
|
|
|
|
if (!bTextFrame)
|
|
|
|
{
|
|
|
|
uno::Reference<beans::XPropertySet> xPropertySet(mxSavedShape, uno::UNO_QUERY);
|
|
|
|
if (xPropertySet.is())
|
2015-11-02 09:12:43 +01:00
|
|
|
xPropertySet->getPropertyValue("TextBox") >>= bTextBox;
|
2014-06-04 14:18:33 +02:00
|
|
|
}
|
|
|
|
if (bTextFrame || bTextBox)
|
2013-12-06 15:54:12 +01:00
|
|
|
mxWpsContext.clear();
|
2014-02-01 16:16:10 +01:00
|
|
|
mxSavedShape.clear();
|
2013-12-06 15:54:12 +01:00
|
|
|
}
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL ShapeContextHandler::endUnknownElement
|
2013-02-03 18:18:37 -02:00
|
|
|
(const OUString & Namespace,
|
|
|
|
const OUString & Name)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
|
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
xContextHandler->endUnknownElement(Namespace, Name);
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uno::Reference< xml::sax::XFastContextHandler > SAL_CALL
|
|
|
|
ShapeContextHandler::createFastChildContext
|
|
|
|
(::sal_Int32 Element,
|
|
|
|
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
|
|
|
uno::Reference< xml::sax::XFastContextHandler > xResult;
|
2013-11-28 15:01:39 +01:00
|
|
|
uno::Reference< xml::sax::XFastContextHandler > xContextHandler(getContextHandler(Element));
|
2008-04-18 13:32:32 +00:00
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
xResult.set(xContextHandler->createFastChildContext
|
2008-01-17 07:06:10 +00:00
|
|
|
(Element, Attribs));
|
|
|
|
|
|
|
|
return xResult;
|
|
|
|
}
|
|
|
|
|
|
|
|
uno::Reference< xml::sax::XFastContextHandler > SAL_CALL
|
|
|
|
ShapeContextHandler::createUnknownChildContext
|
2013-02-03 18:18:37 -02:00
|
|
|
(const OUString & Namespace,
|
|
|
|
const OUString & Name,
|
2008-01-17 07:06:10 +00:00
|
|
|
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
|
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
return xContextHandler->createUnknownChildContext
|
2008-01-17 07:06:10 +00:00
|
|
|
(Namespace, Name, Attribs);
|
|
|
|
|
|
|
|
return uno::Reference< xml::sax::XFastContextHandler >();
|
|
|
|
}
|
|
|
|
|
2013-02-03 18:18:37 -02:00
|
|
|
void SAL_CALL ShapeContextHandler::characters(const OUString & aChars)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-04-18 13:32:32 +00:00
|
|
|
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
|
|
|
|
|
|
|
|
if (xContextHandler.is())
|
|
|
|
xContextHandler->characters(aChars);
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
2015-10-23 14:35:25 +02:00
|
|
|
// css::xml::sax::XFastShapeContextHandler:
|
2008-01-17 07:06:10 +00:00
|
|
|
uno::Reference< drawing::XShape > SAL_CALL
|
2014-02-25 21:31:58 +01:00
|
|
|
ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
|
|
|
uno::Reference< drawing::XShape > xResult;
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
uno::Reference< drawing::XShapes > xShapes( mxDrawPage, uno::UNO_QUERY );
|
2008-01-17 07:06:10 +00:00
|
|
|
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
if (mxFilterBase.is() && xShapes.is())
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2011-02-22 11:23:18 +00:00
|
|
|
if ( getContextHandler() == getDrawingShapeContext() )
|
2008-03-05 17:52:58 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
mpDrawing->finalizeFragmentImport();
|
2015-02-19 08:40:27 +00:00
|
|
|
if( std::shared_ptr< vml::ShapeBase > pShape = mpDrawing->getShapes().takeLastShape() )
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
xResult = pShape->convertAndInsert( xShapes );
|
2012-06-13 18:04:51 +02:00
|
|
|
// Only now remove the recursion mark, because getShape() is called in writerfilter
|
|
|
|
// after endFastElement().
|
|
|
|
mpDrawing->getShapes().popMark();
|
2008-04-18 13:32:32 +00:00
|
|
|
}
|
2012-05-30 09:56:58 +02:00
|
|
|
else if (mxDiagramShapeContext.is())
|
|
|
|
{
|
|
|
|
basegfx::B2DHomMatrix aMatrix;
|
2015-06-11 10:06:49 +02:00
|
|
|
if (mpShape->getExtDrawings().empty())
|
2012-06-04 12:46:17 +02:00
|
|
|
{
|
2013-03-12 20:37:15 +00:00
|
|
|
mpShape->addShape( *mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, mpShape->getFillProperties() );
|
2012-06-13 20:35:07 +02:00
|
|
|
xResult = mpShape->getXShape();
|
2012-06-04 12:46:17 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Prerendered diagram output is available, then use that, and throw away the original result.
|
2013-02-03 18:18:37 -02:00
|
|
|
for (std::vector<OUString>::const_iterator aIt = mpShape->getExtDrawings().begin(); aIt != mpShape->getExtDrawings().end(); ++aIt)
|
2012-06-04 12:46:17 +02:00
|
|
|
{
|
|
|
|
DiagramGraphicDataContext* pDiagramGraphicDataContext = dynamic_cast<DiagramGraphicDataContext*>(mxDiagramShapeContext.get());
|
2014-04-05 14:18:21 +02:00
|
|
|
if (!pDiagramGraphicDataContext)
|
|
|
|
break;
|
2013-02-03 18:18:37 -02:00
|
|
|
OUString aFragmentPath(pDiagramGraphicDataContext->getFragmentPathFromRelId(*aIt));
|
2012-06-04 12:46:17 +02:00
|
|
|
oox::drawingml::ShapePtr pShapePtr( new Shape( "com.sun.star.drawing.GroupShape" ) );
|
2013-09-26 20:35:48 +03:00
|
|
|
pShapePtr->setDiagramType();
|
2012-06-05 11:37:20 +02:00
|
|
|
mxFilterBase->importFragment(new ShapeDrawingFragmentHandler(*mxFilterBase, aFragmentPath, pShapePtr));
|
2013-09-03 11:13:22 +03:00
|
|
|
|
|
|
|
uno::Sequence<beans::PropertyValue> aValue(mpShape->getDiagramDoms());
|
2014-02-25 13:13:11 +05:30
|
|
|
uno::Sequence < uno::Any > diagramDrawing(2);
|
|
|
|
// drawingValue[0] => dom, drawingValue[1] => Sequence of associated relationships
|
|
|
|
|
2013-09-03 11:13:22 +03:00
|
|
|
sal_Int32 length = aValue.getLength();
|
|
|
|
aValue.realloc(length+1);
|
2014-02-25 13:13:11 +05:30
|
|
|
|
|
|
|
diagramDrawing[0] = uno::makeAny( mxFilterBase->importFragment( aFragmentPath ) );
|
2014-03-06 11:22:47 +01:00
|
|
|
diagramDrawing[1] = uno::makeAny( pShapePtr->resolveRelationshipsOfTypeFromOfficeDoc(
|
|
|
|
*mxFilterBase, aFragmentPath, "image" ) );
|
2014-02-25 13:13:11 +05:30
|
|
|
|
2013-09-03 11:13:22 +03:00
|
|
|
beans::PropertyValue* pValue = aValue.getArray();
|
2013-11-20 16:21:34 +02:00
|
|
|
pValue[length].Name = "OOXDrawing";
|
2014-02-25 13:13:11 +05:30
|
|
|
pValue[length].Value = uno::makeAny( diagramDrawing );
|
|
|
|
|
2013-09-03 11:13:22 +03:00
|
|
|
pShapePtr->setDiagramDoms( aValue );
|
|
|
|
|
2013-03-12 20:37:15 +00:00
|
|
|
pShapePtr->addShape( *mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, pShapePtr->getFillProperties() );
|
2012-06-04 12:46:17 +02:00
|
|
|
xResult = pShapePtr->getXShape();
|
|
|
|
}
|
2015-06-08 16:26:48 +02:00
|
|
|
mpShape.reset();
|
2012-06-04 12:46:17 +02:00
|
|
|
}
|
2012-06-13 20:35:07 +02:00
|
|
|
mxDiagramShapeContext.clear();
|
2012-05-30 09:56:58 +02:00
|
|
|
}
|
2013-06-20 10:37:46 +02:00
|
|
|
else if (mxLockedCanvasContext.is())
|
|
|
|
{
|
2014-07-18 14:38:18 +01:00
|
|
|
ShapePtr pShape = dynamic_cast<LockedCanvasContext&>(*mxLockedCanvasContext.get()).getShape();
|
2013-06-20 10:37:46 +02:00
|
|
|
if (pShape)
|
|
|
|
{
|
|
|
|
basegfx::B2DHomMatrix aMatrix;
|
|
|
|
pShape->addShape(*mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, pShape->getFillProperties());
|
|
|
|
xResult = pShape->getXShape();
|
|
|
|
mxLockedCanvasContext.clear();
|
|
|
|
}
|
|
|
|
}
|
2014-05-15 16:20:36 +05:30
|
|
|
//NMSP_dmlChart == getNamespace( mnStartToken ) check is introduced to make sure that
|
|
|
|
//mnStartToken is set as NMSP_dmlChart in setStartToken.
|
|
|
|
//Only in case it is set then only the below block of code for ChartShapeContext should be executed.
|
|
|
|
else if (mxChartShapeContext.is() && (NMSP_dmlChart == getNamespace( mnStartToken )))
|
2013-09-17 18:54:21 +05:30
|
|
|
{
|
|
|
|
ChartGraphicDataContext* pChartGraphicDataContext = dynamic_cast<ChartGraphicDataContext*>(mxChartShapeContext.get());
|
2014-02-12 09:45:59 +00:00
|
|
|
if (pChartGraphicDataContext)
|
|
|
|
{
|
|
|
|
basegfx::B2DHomMatrix aMatrix;
|
|
|
|
oox::drawingml::ShapePtr xShapePtr( pChartGraphicDataContext->getShape());
|
|
|
|
// See SwXTextDocument::createInstance(), ODF import uses the same hack.
|
|
|
|
xShapePtr->setServiceName("com.sun.star.drawing.temporaryForXMLImportOLE2Shape");
|
|
|
|
xShapePtr->addShape( *mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, xShapePtr->getFillProperties() );
|
|
|
|
xResult = xShapePtr->getXShape();
|
|
|
|
}
|
2013-09-17 18:54:21 +05:30
|
|
|
mxChartShapeContext.clear();
|
|
|
|
}
|
2013-11-13 10:35:36 +01:00
|
|
|
else if (mxWpsContext.is())
|
|
|
|
{
|
2014-03-22 19:25:07 +00:00
|
|
|
ShapePtr pShape = dynamic_cast<WpsContext&>(*mxWpsContext.get()).getShape();
|
2013-11-13 10:35:36 +01:00
|
|
|
if (pShape)
|
|
|
|
{
|
|
|
|
basegfx::B2DHomMatrix aMatrix;
|
2013-11-21 11:44:22 +01:00
|
|
|
pShape->setPosition(maPosition);
|
2013-11-13 10:35:36 +01:00
|
|
|
pShape->addShape(*mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, pShape->getFillProperties());
|
|
|
|
xResult = pShape->getXShape();
|
2013-11-28 15:01:39 +01:00
|
|
|
mxSavedShape = xResult;
|
2013-11-13 10:35:36 +01:00
|
|
|
mxWpsContext.clear();
|
|
|
|
}
|
|
|
|
}
|
2013-11-27 11:40:46 +01:00
|
|
|
else if (mxWpgContext.is())
|
|
|
|
{
|
2014-07-18 14:38:18 +01:00
|
|
|
ShapePtr pShape = dynamic_cast<WpgContext&>(*mxWpgContext.get()).getShape();
|
2013-11-27 11:40:46 +01:00
|
|
|
if (pShape)
|
|
|
|
{
|
|
|
|
basegfx::B2DHomMatrix aMatrix;
|
|
|
|
pShape->setPosition(maPosition);
|
|
|
|
pShape->addShape(*mxFilterBase, mpThemePtr.get(), xShapes, aMatrix, pShape->getFillProperties());
|
|
|
|
xResult = pShape->getXShape();
|
|
|
|
mxWpgContext.clear();
|
|
|
|
}
|
|
|
|
}
|
2015-11-10 10:20:17 +01:00
|
|
|
else if (mpShape.get() != nullptr)
|
2008-04-18 13:32:32 +00:00
|
|
|
{
|
2011-04-27 18:59:10 +02:00
|
|
|
basegfx::B2DHomMatrix aTransformation;
|
2013-03-12 20:37:15 +00:00
|
|
|
mpShape->addShape(*mxFilterBase, mpThemePtr.get(), xShapes, aTransformation, mpShape->getFillProperties() );
|
2008-04-18 13:32:32 +00:00
|
|
|
xResult.set(mpShape->getXShape());
|
2009-12-02 13:52:21 +01:00
|
|
|
mxGraphicShapeContext.clear( );
|
2008-03-05 17:52:58 +00:00
|
|
|
}
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return xResult;
|
|
|
|
}
|
|
|
|
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
css::uno::Reference< css::drawing::XDrawPage > SAL_CALL
|
2014-02-25 21:31:58 +01:00
|
|
|
ShapeContextHandler::getDrawPage() throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
return mxDrawPage;
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
void SAL_CALL ShapeContextHandler::setDrawPage
|
|
|
|
(const css::uno::Reference< css::drawing::XDrawPage > & the_value)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
CWS-TOOLING: integrate CWS dr68
2009-06-19 17:43:48 +0200 oc r273175 : #i102946# some lines for new dialog added
2009-06-19 14:17:45 +0200 oc r273158 : #i102946# three lines added
2009-05-19 11:56:14 +0200 dr r272065 : #i99677# wrong attribute name
2009-05-18 18:37:05 +0200 dr r272045 : #i10000# suncc warning
2009-05-05 16:46:13 +0200 dr r271536 : #i10000# adoptions after rebase to master containing dr67
2009-05-05 16:01:19 +0200 dr r271530 : #i10000# adoptions after rebase to master containing dr67
2009-05-04 14:20:39 +0200 dr r271453 : CWS-TOOLING: rebase CWS dr68 to trunk@271427 (milestone: DEV300:m47)
2009-04-28 17:01:14 +0200 dr r271332 : CWS-TOOLING: rebase CWS dr68 to trunk@270723 (milestone: DEV300:m46)
2009-04-23 12:21:40 +0200 dr r271149 : #i100688# missing checkins
2009-04-23 12:18:16 +0200 dr r271147 : #i100978# relations path handling
2009-04-22 19:25:45 +0200 nn r271136 : #i49491# show navigator for double click on document position status bar control
2009-04-22 11:28:36 +0200 nn r271085 : #i60401# small text change
2009-04-21 16:53:23 +0200 dr r271044 : #i10000# missing dtor
2009-04-20 13:39:25 +0200 nn r270977 : #i60401# add dialog to extend sort range (patch from maoyg)
2009-04-08 12:11:08 +0200 dr r270630 : #i100943# prevent assertion when loading chart with empty category ranges
2009-04-07 19:03:00 +0200 dr r270609 : #i100688# missing bits for OLE
2009-04-07 17:14:06 +0200 dr r270605 : ported fix for #i100710#
2009-04-07 17:12:50 +0200 dr r270604 : #i10000# wae
2009-04-07 15:31:55 +0200 dr r270598 : import system colors moved to FilterBase class, more rework on fill and color contexts
2009-04-06 15:00:03 +0200 dr r270552 : #i99677# prevent recursive loading of the current document
2009-04-03 18:28:42 +0200 dr r270515 : added import of brightness/contrast and mono/grayscale color effects for image shapes
2009-04-03 17:36:03 +0200 dr r270509 : cache already imported embedded graphics
2009-04-03 16:46:34 +0200 dr r270500 : more rework on bitmap fill and graphic object handling
2009-03-31 12:28:10 +0200 dr r270271 : #i10000# unxlngi6 wae
2009-03-31 09:04:10 +0200 dr r270261 : CWS-TOOLING: rebase CWS dr68 to trunk@270033 (milestone: DEV300:m45)
2009-03-30 17:42:05 +0200 dr r270249 : #i91122# add missing doc
2009-03-30 17:37:08 +0200 dr r270248 : #i91122# add missing doc
2009-03-30 16:59:15 +0200 dr r270241 : #i99677# add import of ActiveX scrollbar controls
2009-03-30 14:30:36 +0200 dr r270230 : #i91122# missing/wrong documentation
2009-03-30 13:03:38 +0200 dr r270220 : #i99677# add import of ActiveX combobox and spinbutton controls
2009-03-27 11:46:59 +0100 dr r270144 : #i99677# import ActiveX listbox controls (Forms.ListBox.1)
2009-03-26 19:58:00 +0100 dr r270104 : #i99677# move more OLE import code into ole submodule
2009-03-26 15:15:02 +0100 dr r270082 : #i100546# add import of chart bitmap fills, add import of X/Y offset in tiled bitmap fills of all shapes
2009-03-25 12:54:59 +0100 dr r270018 : #i99677# import ActiveX edit text control (Forms.TextBox.1)
2009-03-24 10:59:29 +0100 dr r269921 : #i99677# moved import of OLE StdHlink to 'ole' submodule, added string import helpers to BinaryStreamBase class, removed implementation of ST_XString import from docprop in favour of the implementation in class AttributeList
2009-03-24 10:40:18 +0100 dr r269919 : #i100502# implicit precedence of '&&' was intended
2009-03-24 10:18:29 +0100 dr r269917 : #i100502# missing parentheses
2009-03-23 15:17:48 +0100 dr r269876 : #i99677# more code reorg, added graphic helper and OLE helper object per filter, added OLE/control import to PPTX/XLSX filter, moved helpers from XmlFilterBase to FilterBase
2009-03-19 12:45:20 +0100 dr r269740 : #i99677# interface changes in oox
2009-03-18 15:51:50 +0100 dr r269683 : #i99677# improved relation handling (internal/external), added preprocessor for VML streams to eat MS specific instructions, added OCX ToggleButton/OptionButton import, added DIB import for BIFF (page background picture, lots of other minor improvements
2009-03-16 15:25:30 +0100 dr r269551 : #i99677# import excel form control client data (printable, cell link)
2009-03-13 18:37:17 +0100 dr r269494 : #i99677# import image controls and check boxes
2009-03-12 15:08:18 +0100 dr r269420 : #i10000# rebase problems
2009-03-12 14:43:09 +0100 dr r269418 : #i10000# rebase problems
2009-03-12 14:42:41 +0100 dr r269417 : #i10000# missing delivered header
2009-03-12 13:57:06 +0100 dr r269405 : #i10000# typos
2009-03-12 12:58:52 +0100 dr r269391 : CWS-TOOLING: rebase CWS dr68 to trunk@269297 (milestone: DEV300:m43)
2009-03-12 11:11:46 +0100 dr r269374 : #i99677# first step to import BIFF8 page background
2009-03-12 10:21:53 +0100 dr r269364 : #i99677# rework of graphic import in entire filter, added import of AX Label controls
2009-03-09 16:44:50 +0100 dr r269202 : #i99677# import some formatting attributes of command buttons
2009-03-05 15:31:46 +0100 dr r268911 : #i99677# use VML shape client data to import excel VML shape positions
2009-03-05 11:39:48 +0100 dr r268888 : #i99677# create UNO control shapes from VML control shapes
2009-03-05 11:38:59 +0100 dr r268886 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-05 11:30:40 +0100 dr r268885 : #i99677# change attribute Shapes to DrawPage for import of embedded form controls
2009-03-04 18:46:05 +0100 dr r268860 : adapt namespace ids according to oox
2009-03-04 18:43:49 +0100 dr r268859 : #i99677# more VML import rework
2009-03-03 13:38:36 +0100 dr r268721 : #i99677# more cleanup for VML filter
2009-03-03 13:13:15 +0100 dr r268719 : #i99807# do not iterate beyond end of std::list
2009-03-02 11:55:49 +0100 dr r268644 : add ST_XString support (encoded characters in attribute values)
2009-02-26 17:07:18 +0100 dr r268542 : #i99677# first steps of ax control import: dummy AX base classes, reimplement VML import (hopefully without breaking anything), register embedded AX controls at VML drawing
2009-02-23 17:43:50 +0100 dr r268365 : #i99426# remaining work on scenario import
2009-02-19 16:56:25 +0100 dr r268295 : #i99426# base implementations for scenarios import
2009-07-15 14:57:49 +00:00
|
|
|
mxDrawPage = the_value;
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
css::uno::Reference< css::frame::XModel > SAL_CALL
|
2014-02-25 21:31:58 +01:00
|
|
|
ShapeContextHandler::getModel() throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-03-05 17:52:58 +00:00
|
|
|
if( !mxFilterBase.is() )
|
|
|
|
throw uno::RuntimeException();
|
|
|
|
return mxFilterBase->getModel();
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL ShapeContextHandler::setModel
|
|
|
|
(const css::uno::Reference< css::frame::XModel > & the_value)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2008-03-05 17:52:58 +00:00
|
|
|
if( !mxFilterBase.is() )
|
|
|
|
throw uno::RuntimeException();
|
|
|
|
uno::Reference<lang::XComponent> xComp(the_value, uno::UNO_QUERY_THROW);
|
|
|
|
mxFilterBase->setTargetDocument(xComp);
|
|
|
|
}
|
|
|
|
|
|
|
|
uno::Reference< io::XInputStream > SAL_CALL
|
2014-02-25 21:31:58 +01:00
|
|
|
ShapeContextHandler::getInputStream() throw (uno::RuntimeException, std::exception)
|
2008-03-05 17:52:58 +00:00
|
|
|
{
|
|
|
|
return mxInputStream;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL ShapeContextHandler::setInputStream
|
|
|
|
(const uno::Reference< io::XInputStream > & the_value)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-03-05 17:52:58 +00:00
|
|
|
{
|
|
|
|
mxInputStream = the_value;
|
|
|
|
}
|
|
|
|
|
2013-02-03 18:18:37 -02:00
|
|
|
OUString SAL_CALL ShapeContextHandler::getRelationFragmentPath()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-03-05 17:52:58 +00:00
|
|
|
{
|
|
|
|
return msRelationFragmentPath;
|
|
|
|
}
|
|
|
|
|
2014-02-05 23:57:38 -02:00
|
|
|
void SAL_CALL ShapeContextHandler::setRelationFragmentPath(const OUString & the_value)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (uno::RuntimeException, std::exception)
|
2008-03-05 17:52:58 +00:00
|
|
|
{
|
|
|
|
msRelationFragmentPath = the_value;
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
2015-10-23 14:35:25 +02:00
|
|
|
::sal_Int32 SAL_CALL ShapeContextHandler::getStartToken() throw (css::uno::RuntimeException, std::exception)
|
2009-02-18 11:48:16 +00:00
|
|
|
{
|
|
|
|
return mnStartToken;
|
|
|
|
}
|
|
|
|
|
2015-10-23 14:35:25 +02:00
|
|
|
void SAL_CALL ShapeContextHandler::setStartToken( ::sal_Int32 _starttoken ) throw (css::uno::RuntimeException, std::exception)
|
2009-02-18 11:48:16 +00:00
|
|
|
{
|
|
|
|
mnStartToken = _starttoken;
|
|
|
|
}
|
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
awt::Point SAL_CALL ShapeContextHandler::getPosition() throw (uno::RuntimeException, std::exception)
|
2013-11-21 11:44:22 +01:00
|
|
|
{
|
|
|
|
return maPosition;
|
|
|
|
}
|
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL ShapeContextHandler::setPosition(const awt::Point& rPosition) throw (uno::RuntimeException, std::exception)
|
2013-11-21 11:44:22 +01:00
|
|
|
{
|
|
|
|
maPosition = rPosition;
|
|
|
|
}
|
|
|
|
|
2015-04-19 02:59:39 +02:00
|
|
|
void SAL_CALL ShapeContextHandler::setDocumentProperties(const uno::Reference<document::XDocumentProperties>& xDocProps)
|
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
|
|
|
{
|
|
|
|
mxDocumentProperties = xDocProps;
|
|
|
|
mxFilterBase->checkDocumentProperties(mxDocumentProperties);
|
|
|
|
}
|
|
|
|
|
|
|
|
uno::Reference<document::XDocumentProperties> SAL_CALL ShapeContextHandler::getDocumentProperties()
|
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
|
|
|
{
|
|
|
|
return mxDocumentProperties;
|
|
|
|
}
|
|
|
|
|
2013-02-03 18:18:37 -02:00
|
|
|
OUString ShapeContextHandler::getImplementationName()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
|
|
|
return ShapeContextHandler_getImplementationName();
|
|
|
|
}
|
|
|
|
|
2013-02-03 18:18:37 -02:00
|
|
|
uno::Sequence< OUString > ShapeContextHandler::getSupportedServiceNames()
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
|
|
|
return ShapeContextHandler_getSupportedServiceNames();
|
|
|
|
}
|
|
|
|
|
2014-04-03 13:52:06 +02:00
|
|
|
sal_Bool SAL_CALL ShapeContextHandler::supportsService(const OUString & ServiceName)
|
2014-02-25 21:31:58 +01:00
|
|
|
throw (css::uno::RuntimeException, std::exception)
|
2008-01-17 07:06:10 +00:00
|
|
|
{
|
2014-02-05 23:57:38 -02:00
|
|
|
return cppu::supportsService(this, ServiceName);
|
2008-01-17 07:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}}
|
2010-10-12 15:56:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|