2010-10-12 15:57:08 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00: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 .
|
|
|
|
*/
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
#include "richtextmodel.hxx"
|
|
|
|
#include "richtextengine.hxx"
|
|
|
|
#include "richtextunowrapper.hxx"
|
|
|
|
|
2004-10-22 10:42:08 +00:00
|
|
|
#include <com/sun/star/awt/LineEndFormat.hpp>
|
2008-12-16 13:30:53 +00:00
|
|
|
#include <com/sun/star/text/WritingMode2.hpp>
|
2009-10-23 12:10:07 +02:00
|
|
|
#include <com/sun/star/style/VerticalAlignment.hpp>
|
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
#include <cppuhelper/typeprovider.hxx>
|
2006-10-24 14:11:29 +00:00
|
|
|
#include <comphelper/guarding.hxx>
|
2004-05-07 15:13:25 +00:00
|
|
|
#include <toolkit/awt/vclxdevice.hxx>
|
|
|
|
#include <toolkit/helper/vclunohelper.hxx>
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/editstat.hxx>
|
2004-05-07 15:13:25 +00:00
|
|
|
#include <vcl/outdev.hxx>
|
2005-12-21 12:23:48 +00:00
|
|
|
#include <vcl/svapp.hxx>
|
2004-05-07 15:13:25 +00:00
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
namespace frm
|
|
|
|
{
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::awt;
|
|
|
|
using namespace ::com::sun::star::lang;
|
|
|
|
using namespace ::com::sun::star::io;
|
|
|
|
using namespace ::com::sun::star::beans;
|
|
|
|
using namespace ::com::sun::star::form;
|
|
|
|
using namespace ::com::sun::star::util;
|
2009-10-23 12:10:07 +02:00
|
|
|
using namespace ::com::sun::star::style;
|
2004-05-07 15:13:25 +00:00
|
|
|
|
2008-12-16 13:30:53 +00:00
|
|
|
namespace WritingMode2 = ::com::sun::star::text::WritingMode2;
|
|
|
|
|
2013-06-03 08:34:09 +02:00
|
|
|
ORichTextModel::ORichTextModel( const Reference< XComponentContext >& _rxFactory )
|
2013-04-07 12:06:47 +02:00
|
|
|
:OControlModel ( _rxFactory, OUString() )
|
2004-05-07 15:13:25 +00:00
|
|
|
,FontControlModel ( true )
|
|
|
|
,m_pEngine ( RichTextEngine::Create() )
|
|
|
|
,m_bSettingEngineText( false )
|
2006-06-19 12:00:59 +00:00
|
|
|
,m_aModifyListeners ( m_aMutex )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
m_nClassId = FormComponentType::TEXTFIELD;
|
|
|
|
|
2004-07-05 15:20:11 +00:00
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_DEFAULTCONTROL ) >>= m_sDefaultControl;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_BORDER ) >>= m_nBorder;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_ENABLED ) >>= m_bEnabled;
|
CWS-TOOLING: integrate CWS dba32c
2009-06-29 20:53:25 +0200 fs r273484 : #i103138# Rectangle conversion
2009-06-29 20:51:50 +0200 fs r273483 : #i103138# yet more refactoring, now also setting the proper zoom level at the proper point in time
2009-06-29 13:40:26 +0200 fs r273470 : added svn:ignore to ignore output paths
2009-06-29 10:08:54 +0200 fs r273455 : #i103138#
refactored the code for positioning/zooming the control
Basically, we now allow adjustControlGeometry_throw (formerly known as positionControl_throw and setControlZoom) to
take an additional ViewTransformation parameter, describing the transformation to obtain the actual
control position/size. Consequently, positionControl itself also allows for a ViewTransformation parameter.
This has become necessary since during painting, the device which we created our control for might not necessarily
have a proper MapMode set. In this case, if we would use this map mode for calculating the control's position/size,
this would lead to wrong results.
Note that this problem was introduced by the fix for #i101398#: During the fix, we postponed the control creation
to a later time (when it is really needed). At this later time, the MapMode at the device is broken, at the earlier
time where we formerly crearted the control (createPrimitive2DSequence), it is not yet broken.
Whether or not the MapMode is defined as "broken" might depend on one's point of view, however ...
I consider it broken, since:
- we need the map mode to obtain the proper zoom level, which is to be forwarded to the control
- there are scenarios where the MapMode is *not* set to MAP_PIXEL (in those scenarios, everything works
fine), and there are scenarios where it *is* set to MAP_PIXEL (in those the bug 103138 appears).
It somehow feels wrong that one cannot rely on the device's map mode this way, but on the other hand
one has no possibility to obtain the current zoom by other means.
Note that one issue (still to be submitted) is left: In the page pane of a Draw/Impress document, controls
have a wrong text size. This is because in this pane, the above-mentioned "broken" map mode is used,
which means the controls have a zoom of "1:1" set, which is wrong here.
2009-06-25 13:41:35 +0200 msc r273380 : #100000# the tabs changed die to new properties
2009-06-24 12:42:40 +0200 msc r273330 : #102082# remove issue warning
2009-06-22 10:43:14 +0200 fs r273201 : createPrimitive2DSequence: care for being disposed
2009-06-18 12:35:13 +0200 oj r273109 : #i102305# make nooptfiles for gcc
2009-06-17 12:14:37 +0200 oj r273056 : #i102305# fix for linux
2009-06-17 07:20:22 +0200 oj r273046 : #i102305# move ValueTransfer into the for loop to avoid a crash under Linux
2009-06-17 07:17:28 +0200 oj r273045 : #i102305# use varchar
2009-06-15 14:11:27 +0200 fs r272983 : added since tag
2009-06-15 12:11:39 +0200 oj r272973 : #i102305# SAL_DLLPUBLIC_EXPORT inserted
2009-06-15 11:08:53 +0200 fs r272969 : #i10000#
2009-06-15 09:25:13 +0200 fs r272963 : merging fix for P1 issue #i102701#
2009-06-11 11:31:24 +0200 fs r272858 : #i10000# copied the fix which before the rebase was done in ../dialog/macropg.src
2009-06-11 09:38:14 +0200 fs r272846 : CWS-TOOLING: rebase CWS dba32c to trunk@272827 (milestone: DEV300:m50)
2009-06-02 09:53:10 +0200 fs r272483 : #i10000#
2009-05-29 15:55:03 +0200 fs r272465 : #i100818#
2009-05-29 12:58:43 +0200 fs r272452 : don't apply comphelper::getString on possibly VOID any
2009-05-29 10:38:35 +0200 oj r272437 : #i101519# handle where condition
2009-05-29 09:53:39 +0200 fs r272434 : #i100818# call into releaseStubs /without/ locked GlobalMutex
2009-05-28 07:53:44 +0200 oj r272375 : #i101369# parse tree changed
2009-05-27 14:53:36 +0200 fs r272347 : #i10000#
2009-05-27 09:29:15 +0200 oj r272327 : #i101626# check for double before hard cast
2009-05-27 09:13:58 +0200 oj r272326 : #i101626# handle void correctly
2009-05-27 08:04:39 +0200 oj r272321 : #i102256# wrong method signature used
2009-05-27 07:55:52 +0200 oj r272320 : #i101519# look up parameter typ if used in function
2009-05-27 06:49:07 +0200 oj r272319 : #i101519# set parameter from rowset as well
2009-05-26 13:30:56 +0200 oj r272297 : #i101987# impl XBatchExecution
2009-05-26 12:44:34 +0200 oj r272293 : #i101700# check if group is not set
2009-05-26 12:16:53 +0200 oj r272290 : #i101369# resolved some reduce7reduce problems with boolean_term and search_condition
2009-05-26 12:12:42 +0200 oj r272289 : #i101369# fix for or on one line criteria
2009-05-25 16:02:25 +0200 fs r272257 : #i999704# +PROPERTY_MOUSE_WHEEL_BEHAVIOR
2009-05-25 16:01:55 +0200 fs r272256 : merging the changes from CWS dba32b herein
2009-05-25 15:49:57 +0200 fs r272254 : #i999704#
2009-05-25 15:32:57 +0200 fs r272252 : #i99704# grid columns also to respect the MouseWheelBehavior property
2009-05-25 15:23:43 +0200 fs r272251 : don't pass empty Anys to ::comphelper::getString
2009-05-25 14:48:43 +0200 fs r272248 : merged changes from CWS dba32b herein
2009-05-25 14:44:40 +0200 fs r272247 : #i99704# support new MouseWheelBehavior property
2009-05-25 14:43:18 +0200 fs r272246 : #i99704# WheelWithoutFocus (peer property) superseded by MouseWheelBehavior (model property)
2009-05-25 14:41:03 +0200 fs r272245 : #i99704# no need to set the mouse wheel behavior at the peer, this is now a model property, having the right default
2009-05-25 14:39:31 +0200 fs r272243 : removed dead import
2009-05-25 14:35:36 +0200 fs r272242 : the new EnableVisible doesn't make sense for grid columns
2009-05-25 14:34:33 +0200 fs r272241 : #i99704# +MouseWheelBehavior - allow to enable/disable the mouse wheel for the control, or make it focus-dependent
2009-05-25 14:26:11 +0200 fs r272240 : #i99704# change MouseSettings wheel flag (NoWheelActionWithoutFocus) to a three-state option, allowing to completely ignore the mouse wheel
2009-05-23 21:35:59 +0200 fs r272213 : localize 'sub component opened/closed' event
2009-05-22 21:42:47 +0200 fs r272211 : #i102003#
2009-05-22 21:42:20 +0200 fs r272210 : grammar
2009-05-22 21:36:10 +0200 fs r272209 : #i102140# load only once, not twice, and show error messages during loading (and during any form action, that is) asynchronously
2009-05-22 21:35:11 +0200 fs r272208 : #i102140# +clear
2009-05-22 14:50:30 +0200 fs r272194 : #i102139# for newly created DB docs, set the MacroExecutionMode to USE_CONFIG
2009-05-22 12:03:42 +0200 fs r272180 : #i88878#
provided by noel.power@novell.com
implement a visibility property (EnableVisible) for toolkit controls, and usage in forms and UNO dialogs
2009-05-15 15:37:31 +0200 fs r271942 : #i100671# corrected some @since tags, so autodoc has better chances of correctly reading them
2009-05-15 15:33:11 +0200 fs r271940 : don't call comphelper::getFOO for VOID values
2009-05-15 15:08:31 +0200 fs r271937 : includes
2009-05-15 13:39:22 +0200 fs r271934 : #i101398# createPrimitive2DSequence: when we already have a control, use the old code. In particular, call positionControlForPaint
2009-05-15 12:33:48 +0200 fs r271933 : make the geometry a part of the ControlPrimitive2D's identity
2009-05-15 10:15:44 +0200 fs r271928 : #i10000#
2009-05-14 20:55:38 +0200 fs r271921 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:55:31 +0200 fs r271920 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:23:23 +0200 fs r271919 : #i101622#
2009-05-14 16:04:38 +0200 fs r271898 : don't use comphelper::getInt32 on voids
2009-05-14 16:04:12 +0200 fs r271897 : merge fix for issue whose number just slipped my memory ... (originally fixed in CWS dba32b)
2009-05-14 15:36:55 +0200 fs r271895 : merging changes from DEV300:m48
2009-05-07 14:43:19 +0200 fs r271670 : #i101477#
2009-05-07 14:37:30 +0200 fs r271668 : #i101477#
2009-05-07 09:27:30 +0200 oj r271628 : #i101343# remove pch
2009-05-06 09:36:02 +0200 fs r271568 : getFoo: diagnostics
2009-05-04 09:23:06 +0200 oj r271438 : CWS-TOOLING: rebase CWS dba32c to trunk@271427 (milestone: DEV300:m47)
2009-04-29 23:18:13 +0200 fs r271394 : #i101398# use a dedicated 2DPrimitive for UNO Controls, which is able to provide the B2DRange *without* actually creating the control
2009-04-29 13:52:25 +0200 fs r271366 : #i101308#
2009-07-03 14:21:50 +00:00
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_ENABLEVISIBLE ) >>= m_bEnableVisible;
|
2004-07-05 15:20:11 +00:00
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_HARDLINEBREAKS ) >>= m_bHardLineBreaks;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_HSCROLL ) >>= m_bHScroll;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_VSCROLL ) >>= m_bVScroll;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_READONLY ) >>= m_bReadonly;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_PRINTABLE ) >>= m_bPrintable;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_ALIGN ) >>= m_aAlign;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_ECHO_CHAR ) >>= m_nEchoChar;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_MAXTEXTLEN ) >>= m_nMaxTextLength;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_MULTILINE ) >>= m_bMultiLine;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_RICH_TEXT ) >>= m_bReallyActAsRichText;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_HIDEINACTIVESELECTION ) >>= m_bHideInactiveSelection;
|
2005-01-21 15:51:55 +00:00
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_LINEEND_FORMAT ) >>= m_nLineEndFormat;
|
2008-12-16 13:30:53 +00:00
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_WRITING_MODE ) >>= m_nTextWritingMode;
|
|
|
|
getPropertyDefaultByHandle( PROPERTY_ID_CONTEXT_WRITING_MODE ) >>= m_nContextWritingMode;
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
implInit();
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2013-06-03 08:34:09 +02:00
|
|
|
ORichTextModel::ORichTextModel( const ORichTextModel* _pOriginal, const Reference< XComponentContext >& _rxFactory )
|
2014-05-06 12:37:38 +02:00
|
|
|
:OControlModel ( _pOriginal, _rxFactory, false )
|
2004-05-07 15:13:25 +00:00
|
|
|
,FontControlModel ( _pOriginal )
|
|
|
|
,m_bSettingEngineText( false )
|
2006-06-19 12:00:59 +00:00
|
|
|
,m_aModifyListeners ( m_aMutex )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
|
2004-07-05 15:20:11 +00:00
|
|
|
m_aTabStop = _pOriginal->m_aTabStop;
|
|
|
|
m_aBackgroundColor = _pOriginal->m_aBackgroundColor;
|
|
|
|
m_aBorderColor = _pOriginal->m_aBorderColor;
|
2009-10-23 12:10:07 +02:00
|
|
|
m_aVerticalAlignment = _pOriginal->m_aVerticalAlignment;
|
2004-07-05 15:20:11 +00:00
|
|
|
m_sDefaultControl = _pOriginal->m_sDefaultControl;
|
|
|
|
m_sHelpText = _pOriginal->m_sHelpText;
|
|
|
|
m_sHelpURL = _pOriginal->m_sHelpURL;
|
|
|
|
m_nBorder = _pOriginal->m_nBorder;
|
|
|
|
m_bEnabled = _pOriginal->m_bEnabled;
|
CWS-TOOLING: integrate CWS dba32c
2009-06-29 20:53:25 +0200 fs r273484 : #i103138# Rectangle conversion
2009-06-29 20:51:50 +0200 fs r273483 : #i103138# yet more refactoring, now also setting the proper zoom level at the proper point in time
2009-06-29 13:40:26 +0200 fs r273470 : added svn:ignore to ignore output paths
2009-06-29 10:08:54 +0200 fs r273455 : #i103138#
refactored the code for positioning/zooming the control
Basically, we now allow adjustControlGeometry_throw (formerly known as positionControl_throw and setControlZoom) to
take an additional ViewTransformation parameter, describing the transformation to obtain the actual
control position/size. Consequently, positionControl itself also allows for a ViewTransformation parameter.
This has become necessary since during painting, the device which we created our control for might not necessarily
have a proper MapMode set. In this case, if we would use this map mode for calculating the control's position/size,
this would lead to wrong results.
Note that this problem was introduced by the fix for #i101398#: During the fix, we postponed the control creation
to a later time (when it is really needed). At this later time, the MapMode at the device is broken, at the earlier
time where we formerly crearted the control (createPrimitive2DSequence), it is not yet broken.
Whether or not the MapMode is defined as "broken" might depend on one's point of view, however ...
I consider it broken, since:
- we need the map mode to obtain the proper zoom level, which is to be forwarded to the control
- there are scenarios where the MapMode is *not* set to MAP_PIXEL (in those scenarios, everything works
fine), and there are scenarios where it *is* set to MAP_PIXEL (in those the bug 103138 appears).
It somehow feels wrong that one cannot rely on the device's map mode this way, but on the other hand
one has no possibility to obtain the current zoom by other means.
Note that one issue (still to be submitted) is left: In the page pane of a Draw/Impress document, controls
have a wrong text size. This is because in this pane, the above-mentioned "broken" map mode is used,
which means the controls have a zoom of "1:1" set, which is wrong here.
2009-06-25 13:41:35 +0200 msc r273380 : #100000# the tabs changed die to new properties
2009-06-24 12:42:40 +0200 msc r273330 : #102082# remove issue warning
2009-06-22 10:43:14 +0200 fs r273201 : createPrimitive2DSequence: care for being disposed
2009-06-18 12:35:13 +0200 oj r273109 : #i102305# make nooptfiles for gcc
2009-06-17 12:14:37 +0200 oj r273056 : #i102305# fix for linux
2009-06-17 07:20:22 +0200 oj r273046 : #i102305# move ValueTransfer into the for loop to avoid a crash under Linux
2009-06-17 07:17:28 +0200 oj r273045 : #i102305# use varchar
2009-06-15 14:11:27 +0200 fs r272983 : added since tag
2009-06-15 12:11:39 +0200 oj r272973 : #i102305# SAL_DLLPUBLIC_EXPORT inserted
2009-06-15 11:08:53 +0200 fs r272969 : #i10000#
2009-06-15 09:25:13 +0200 fs r272963 : merging fix for P1 issue #i102701#
2009-06-11 11:31:24 +0200 fs r272858 : #i10000# copied the fix which before the rebase was done in ../dialog/macropg.src
2009-06-11 09:38:14 +0200 fs r272846 : CWS-TOOLING: rebase CWS dba32c to trunk@272827 (milestone: DEV300:m50)
2009-06-02 09:53:10 +0200 fs r272483 : #i10000#
2009-05-29 15:55:03 +0200 fs r272465 : #i100818#
2009-05-29 12:58:43 +0200 fs r272452 : don't apply comphelper::getString on possibly VOID any
2009-05-29 10:38:35 +0200 oj r272437 : #i101519# handle where condition
2009-05-29 09:53:39 +0200 fs r272434 : #i100818# call into releaseStubs /without/ locked GlobalMutex
2009-05-28 07:53:44 +0200 oj r272375 : #i101369# parse tree changed
2009-05-27 14:53:36 +0200 fs r272347 : #i10000#
2009-05-27 09:29:15 +0200 oj r272327 : #i101626# check for double before hard cast
2009-05-27 09:13:58 +0200 oj r272326 : #i101626# handle void correctly
2009-05-27 08:04:39 +0200 oj r272321 : #i102256# wrong method signature used
2009-05-27 07:55:52 +0200 oj r272320 : #i101519# look up parameter typ if used in function
2009-05-27 06:49:07 +0200 oj r272319 : #i101519# set parameter from rowset as well
2009-05-26 13:30:56 +0200 oj r272297 : #i101987# impl XBatchExecution
2009-05-26 12:44:34 +0200 oj r272293 : #i101700# check if group is not set
2009-05-26 12:16:53 +0200 oj r272290 : #i101369# resolved some reduce7reduce problems with boolean_term and search_condition
2009-05-26 12:12:42 +0200 oj r272289 : #i101369# fix for or on one line criteria
2009-05-25 16:02:25 +0200 fs r272257 : #i999704# +PROPERTY_MOUSE_WHEEL_BEHAVIOR
2009-05-25 16:01:55 +0200 fs r272256 : merging the changes from CWS dba32b herein
2009-05-25 15:49:57 +0200 fs r272254 : #i999704#
2009-05-25 15:32:57 +0200 fs r272252 : #i99704# grid columns also to respect the MouseWheelBehavior property
2009-05-25 15:23:43 +0200 fs r272251 : don't pass empty Anys to ::comphelper::getString
2009-05-25 14:48:43 +0200 fs r272248 : merged changes from CWS dba32b herein
2009-05-25 14:44:40 +0200 fs r272247 : #i99704# support new MouseWheelBehavior property
2009-05-25 14:43:18 +0200 fs r272246 : #i99704# WheelWithoutFocus (peer property) superseded by MouseWheelBehavior (model property)
2009-05-25 14:41:03 +0200 fs r272245 : #i99704# no need to set the mouse wheel behavior at the peer, this is now a model property, having the right default
2009-05-25 14:39:31 +0200 fs r272243 : removed dead import
2009-05-25 14:35:36 +0200 fs r272242 : the new EnableVisible doesn't make sense for grid columns
2009-05-25 14:34:33 +0200 fs r272241 : #i99704# +MouseWheelBehavior - allow to enable/disable the mouse wheel for the control, or make it focus-dependent
2009-05-25 14:26:11 +0200 fs r272240 : #i99704# change MouseSettings wheel flag (NoWheelActionWithoutFocus) to a three-state option, allowing to completely ignore the mouse wheel
2009-05-23 21:35:59 +0200 fs r272213 : localize 'sub component opened/closed' event
2009-05-22 21:42:47 +0200 fs r272211 : #i102003#
2009-05-22 21:42:20 +0200 fs r272210 : grammar
2009-05-22 21:36:10 +0200 fs r272209 : #i102140# load only once, not twice, and show error messages during loading (and during any form action, that is) asynchronously
2009-05-22 21:35:11 +0200 fs r272208 : #i102140# +clear
2009-05-22 14:50:30 +0200 fs r272194 : #i102139# for newly created DB docs, set the MacroExecutionMode to USE_CONFIG
2009-05-22 12:03:42 +0200 fs r272180 : #i88878#
provided by noel.power@novell.com
implement a visibility property (EnableVisible) for toolkit controls, and usage in forms and UNO dialogs
2009-05-15 15:37:31 +0200 fs r271942 : #i100671# corrected some @since tags, so autodoc has better chances of correctly reading them
2009-05-15 15:33:11 +0200 fs r271940 : don't call comphelper::getFOO for VOID values
2009-05-15 15:08:31 +0200 fs r271937 : includes
2009-05-15 13:39:22 +0200 fs r271934 : #i101398# createPrimitive2DSequence: when we already have a control, use the old code. In particular, call positionControlForPaint
2009-05-15 12:33:48 +0200 fs r271933 : make the geometry a part of the ControlPrimitive2D's identity
2009-05-15 10:15:44 +0200 fs r271928 : #i10000#
2009-05-14 20:55:38 +0200 fs r271921 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:55:31 +0200 fs r271920 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:23:23 +0200 fs r271919 : #i101622#
2009-05-14 16:04:38 +0200 fs r271898 : don't use comphelper::getInt32 on voids
2009-05-14 16:04:12 +0200 fs r271897 : merge fix for issue whose number just slipped my memory ... (originally fixed in CWS dba32b)
2009-05-14 15:36:55 +0200 fs r271895 : merging changes from DEV300:m48
2009-05-07 14:43:19 +0200 fs r271670 : #i101477#
2009-05-07 14:37:30 +0200 fs r271668 : #i101477#
2009-05-07 09:27:30 +0200 oj r271628 : #i101343# remove pch
2009-05-06 09:36:02 +0200 fs r271568 : getFoo: diagnostics
2009-05-04 09:23:06 +0200 oj r271438 : CWS-TOOLING: rebase CWS dba32c to trunk@271427 (milestone: DEV300:m47)
2009-04-29 23:18:13 +0200 fs r271394 : #i101398# use a dedicated 2DPrimitive for UNO Controls, which is able to provide the B2DRange *without* actually creating the control
2009-04-29 13:52:25 +0200 fs r271366 : #i101308#
2009-07-03 14:21:50 +00:00
|
|
|
m_bEnableVisible = _pOriginal->m_bEnableVisible;
|
2004-07-05 15:20:11 +00:00
|
|
|
m_bHardLineBreaks = _pOriginal->m_bHardLineBreaks;
|
|
|
|
m_bHScroll = _pOriginal->m_bHScroll;
|
|
|
|
m_bVScroll = _pOriginal->m_bVScroll;
|
|
|
|
m_bReadonly = _pOriginal->m_bReadonly;
|
|
|
|
m_bPrintable = _pOriginal->m_bPrintable;
|
|
|
|
m_bReallyActAsRichText = _pOriginal->m_bReallyActAsRichText;
|
|
|
|
m_bHideInactiveSelection = _pOriginal->m_bHideInactiveSelection;
|
2005-01-21 15:51:55 +00:00
|
|
|
m_nLineEndFormat = _pOriginal->m_nLineEndFormat;
|
2008-12-16 13:30:53 +00:00
|
|
|
m_nTextWritingMode = _pOriginal->m_nTextWritingMode;
|
|
|
|
m_nContextWritingMode = _pOriginal->m_nContextWritingMode;
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
m_aAlign = _pOriginal->m_aAlign;
|
|
|
|
m_nEchoChar = _pOriginal->m_nEchoChar;
|
|
|
|
m_nMaxTextLength = _pOriginal->m_nMaxTextLength;
|
|
|
|
m_bMultiLine = _pOriginal->m_bMultiLine;
|
|
|
|
|
2007-07-06 08:56:54 +00:00
|
|
|
m_pEngine.reset(_pOriginal->m_pEngine->Clone());
|
2004-05-07 15:13:25 +00:00
|
|
|
m_sLastKnownEngineText = m_pEngine->GetText();
|
|
|
|
|
|
|
|
implInit();
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
void ORichTextModel::implInit()
|
|
|
|
{
|
2007-07-06 08:56:54 +00:00
|
|
|
OSL_ENSURE( m_pEngine.get(), "ORichTextModel::implInit: where's the engine?" );
|
|
|
|
if ( m_pEngine.get() )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
m_pEngine->SetModifyHdl( LINK( this, ORichTextModel, OnEngineContentModified ) );
|
|
|
|
|
2015-03-24 16:05:55 +02:00
|
|
|
EEControlBits nEngineControlWord = m_pEngine->GetControlWord();
|
|
|
|
nEngineControlWord = nEngineControlWord & ~EEControlBits::AUTOPAGESIZE;
|
2004-05-07 15:13:25 +00:00
|
|
|
m_pEngine->SetControlWord( nEngineControlWord );
|
|
|
|
|
|
|
|
VCLXDevice* pUnoRefDevice = new VCLXDevice;
|
|
|
|
pUnoRefDevice->SetOutputDevice( m_pEngine->GetRefDevice() );
|
|
|
|
m_xReferenceDevice = pUnoRefDevice;
|
|
|
|
}
|
|
|
|
|
|
|
|
implDoAggregation();
|
|
|
|
implRegisterProperties();
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
void ORichTextModel::implDoAggregation()
|
|
|
|
{
|
|
|
|
increment( m_refCount );
|
|
|
|
|
|
|
|
{
|
|
|
|
m_xAggregate = new ORichTextUnoWrapper( *m_pEngine, this );
|
|
|
|
setAggregation( m_xAggregate );
|
|
|
|
doSetDelegator();
|
|
|
|
}
|
|
|
|
|
|
|
|
decrement( m_refCount );
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
void ORichTextModel::implRegisterProperties()
|
|
|
|
{
|
2004-07-05 15:20:11 +00:00
|
|
|
REGISTER_PROP_2( DEFAULTCONTROL, m_sDefaultControl, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( HELPTEXT, m_sHelpText, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( HELPURL, m_sHelpURL, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( ENABLED, m_bEnabled, BOUND, MAYBEDEFAULT );
|
CWS-TOOLING: integrate CWS dba32c
2009-06-29 20:53:25 +0200 fs r273484 : #i103138# Rectangle conversion
2009-06-29 20:51:50 +0200 fs r273483 : #i103138# yet more refactoring, now also setting the proper zoom level at the proper point in time
2009-06-29 13:40:26 +0200 fs r273470 : added svn:ignore to ignore output paths
2009-06-29 10:08:54 +0200 fs r273455 : #i103138#
refactored the code for positioning/zooming the control
Basically, we now allow adjustControlGeometry_throw (formerly known as positionControl_throw and setControlZoom) to
take an additional ViewTransformation parameter, describing the transformation to obtain the actual
control position/size. Consequently, positionControl itself also allows for a ViewTransformation parameter.
This has become necessary since during painting, the device which we created our control for might not necessarily
have a proper MapMode set. In this case, if we would use this map mode for calculating the control's position/size,
this would lead to wrong results.
Note that this problem was introduced by the fix for #i101398#: During the fix, we postponed the control creation
to a later time (when it is really needed). At this later time, the MapMode at the device is broken, at the earlier
time where we formerly crearted the control (createPrimitive2DSequence), it is not yet broken.
Whether or not the MapMode is defined as "broken" might depend on one's point of view, however ...
I consider it broken, since:
- we need the map mode to obtain the proper zoom level, which is to be forwarded to the control
- there are scenarios where the MapMode is *not* set to MAP_PIXEL (in those scenarios, everything works
fine), and there are scenarios where it *is* set to MAP_PIXEL (in those the bug 103138 appears).
It somehow feels wrong that one cannot rely on the device's map mode this way, but on the other hand
one has no possibility to obtain the current zoom by other means.
Note that one issue (still to be submitted) is left: In the page pane of a Draw/Impress document, controls
have a wrong text size. This is because in this pane, the above-mentioned "broken" map mode is used,
which means the controls have a zoom of "1:1" set, which is wrong here.
2009-06-25 13:41:35 +0200 msc r273380 : #100000# the tabs changed die to new properties
2009-06-24 12:42:40 +0200 msc r273330 : #102082# remove issue warning
2009-06-22 10:43:14 +0200 fs r273201 : createPrimitive2DSequence: care for being disposed
2009-06-18 12:35:13 +0200 oj r273109 : #i102305# make nooptfiles for gcc
2009-06-17 12:14:37 +0200 oj r273056 : #i102305# fix for linux
2009-06-17 07:20:22 +0200 oj r273046 : #i102305# move ValueTransfer into the for loop to avoid a crash under Linux
2009-06-17 07:17:28 +0200 oj r273045 : #i102305# use varchar
2009-06-15 14:11:27 +0200 fs r272983 : added since tag
2009-06-15 12:11:39 +0200 oj r272973 : #i102305# SAL_DLLPUBLIC_EXPORT inserted
2009-06-15 11:08:53 +0200 fs r272969 : #i10000#
2009-06-15 09:25:13 +0200 fs r272963 : merging fix for P1 issue #i102701#
2009-06-11 11:31:24 +0200 fs r272858 : #i10000# copied the fix which before the rebase was done in ../dialog/macropg.src
2009-06-11 09:38:14 +0200 fs r272846 : CWS-TOOLING: rebase CWS dba32c to trunk@272827 (milestone: DEV300:m50)
2009-06-02 09:53:10 +0200 fs r272483 : #i10000#
2009-05-29 15:55:03 +0200 fs r272465 : #i100818#
2009-05-29 12:58:43 +0200 fs r272452 : don't apply comphelper::getString on possibly VOID any
2009-05-29 10:38:35 +0200 oj r272437 : #i101519# handle where condition
2009-05-29 09:53:39 +0200 fs r272434 : #i100818# call into releaseStubs /without/ locked GlobalMutex
2009-05-28 07:53:44 +0200 oj r272375 : #i101369# parse tree changed
2009-05-27 14:53:36 +0200 fs r272347 : #i10000#
2009-05-27 09:29:15 +0200 oj r272327 : #i101626# check for double before hard cast
2009-05-27 09:13:58 +0200 oj r272326 : #i101626# handle void correctly
2009-05-27 08:04:39 +0200 oj r272321 : #i102256# wrong method signature used
2009-05-27 07:55:52 +0200 oj r272320 : #i101519# look up parameter typ if used in function
2009-05-27 06:49:07 +0200 oj r272319 : #i101519# set parameter from rowset as well
2009-05-26 13:30:56 +0200 oj r272297 : #i101987# impl XBatchExecution
2009-05-26 12:44:34 +0200 oj r272293 : #i101700# check if group is not set
2009-05-26 12:16:53 +0200 oj r272290 : #i101369# resolved some reduce7reduce problems with boolean_term and search_condition
2009-05-26 12:12:42 +0200 oj r272289 : #i101369# fix for or on one line criteria
2009-05-25 16:02:25 +0200 fs r272257 : #i999704# +PROPERTY_MOUSE_WHEEL_BEHAVIOR
2009-05-25 16:01:55 +0200 fs r272256 : merging the changes from CWS dba32b herein
2009-05-25 15:49:57 +0200 fs r272254 : #i999704#
2009-05-25 15:32:57 +0200 fs r272252 : #i99704# grid columns also to respect the MouseWheelBehavior property
2009-05-25 15:23:43 +0200 fs r272251 : don't pass empty Anys to ::comphelper::getString
2009-05-25 14:48:43 +0200 fs r272248 : merged changes from CWS dba32b herein
2009-05-25 14:44:40 +0200 fs r272247 : #i99704# support new MouseWheelBehavior property
2009-05-25 14:43:18 +0200 fs r272246 : #i99704# WheelWithoutFocus (peer property) superseded by MouseWheelBehavior (model property)
2009-05-25 14:41:03 +0200 fs r272245 : #i99704# no need to set the mouse wheel behavior at the peer, this is now a model property, having the right default
2009-05-25 14:39:31 +0200 fs r272243 : removed dead import
2009-05-25 14:35:36 +0200 fs r272242 : the new EnableVisible doesn't make sense for grid columns
2009-05-25 14:34:33 +0200 fs r272241 : #i99704# +MouseWheelBehavior - allow to enable/disable the mouse wheel for the control, or make it focus-dependent
2009-05-25 14:26:11 +0200 fs r272240 : #i99704# change MouseSettings wheel flag (NoWheelActionWithoutFocus) to a three-state option, allowing to completely ignore the mouse wheel
2009-05-23 21:35:59 +0200 fs r272213 : localize 'sub component opened/closed' event
2009-05-22 21:42:47 +0200 fs r272211 : #i102003#
2009-05-22 21:42:20 +0200 fs r272210 : grammar
2009-05-22 21:36:10 +0200 fs r272209 : #i102140# load only once, not twice, and show error messages during loading (and during any form action, that is) asynchronously
2009-05-22 21:35:11 +0200 fs r272208 : #i102140# +clear
2009-05-22 14:50:30 +0200 fs r272194 : #i102139# for newly created DB docs, set the MacroExecutionMode to USE_CONFIG
2009-05-22 12:03:42 +0200 fs r272180 : #i88878#
provided by noel.power@novell.com
implement a visibility property (EnableVisible) for toolkit controls, and usage in forms and UNO dialogs
2009-05-15 15:37:31 +0200 fs r271942 : #i100671# corrected some @since tags, so autodoc has better chances of correctly reading them
2009-05-15 15:33:11 +0200 fs r271940 : don't call comphelper::getFOO for VOID values
2009-05-15 15:08:31 +0200 fs r271937 : includes
2009-05-15 13:39:22 +0200 fs r271934 : #i101398# createPrimitive2DSequence: when we already have a control, use the old code. In particular, call positionControlForPaint
2009-05-15 12:33:48 +0200 fs r271933 : make the geometry a part of the ControlPrimitive2D's identity
2009-05-15 10:15:44 +0200 fs r271928 : #i10000#
2009-05-14 20:55:38 +0200 fs r271921 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:55:31 +0200 fs r271920 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:23:23 +0200 fs r271919 : #i101622#
2009-05-14 16:04:38 +0200 fs r271898 : don't use comphelper::getInt32 on voids
2009-05-14 16:04:12 +0200 fs r271897 : merge fix for issue whose number just slipped my memory ... (originally fixed in CWS dba32b)
2009-05-14 15:36:55 +0200 fs r271895 : merging changes from DEV300:m48
2009-05-07 14:43:19 +0200 fs r271670 : #i101477#
2009-05-07 14:37:30 +0200 fs r271668 : #i101477#
2009-05-07 09:27:30 +0200 oj r271628 : #i101343# remove pch
2009-05-06 09:36:02 +0200 fs r271568 : getFoo: diagnostics
2009-05-04 09:23:06 +0200 oj r271438 : CWS-TOOLING: rebase CWS dba32c to trunk@271427 (milestone: DEV300:m47)
2009-04-29 23:18:13 +0200 fs r271394 : #i101398# use a dedicated 2DPrimitive for UNO Controls, which is able to provide the B2DRange *without* actually creating the control
2009-04-29 13:52:25 +0200 fs r271366 : #i101308#
2009-07-03 14:21:50 +00:00
|
|
|
REGISTER_PROP_2( ENABLEVISIBLE, m_bEnableVisible, BOUND, MAYBEDEFAULT );
|
2004-07-05 15:20:11 +00:00
|
|
|
REGISTER_PROP_2( BORDER, m_nBorder, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( HARDLINEBREAKS, m_bHardLineBreaks, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( HSCROLL, m_bHScroll, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( VSCROLL, m_bVScroll, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( READONLY, m_bReadonly, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( PRINTABLE, m_bPrintable, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( REFERENCE_DEVICE, m_xReferenceDevice, BOUND, TRANSIENT );
|
|
|
|
REGISTER_PROP_2( RICH_TEXT, m_bReallyActAsRichText, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( HIDEINACTIVESELECTION, m_bHideInactiveSelection, BOUND, MAYBEDEFAULT );
|
|
|
|
|
2009-10-23 12:10:07 +02:00
|
|
|
REGISTER_VOID_PROP_2( TABSTOP, m_aTabStop, sal_Bool, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_VOID_PROP_2( BACKGROUNDCOLOR, m_aBackgroundColor, sal_Int32, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_VOID_PROP_2( BORDERCOLOR, m_aBorderColor, sal_Int32, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_VOID_PROP_2( VERTICAL_ALIGN, m_aVerticalAlignment, VerticalAlignment, BOUND, MAYBEDEFAULT );
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
// properties which exist only for compatibility with the css.swt.UnoControlEditModel,
|
2008-12-16 13:30:53 +00:00
|
|
|
// since we replace the default implementation for this service
|
|
|
|
REGISTER_PROP_2( ECHO_CHAR, m_nEchoChar, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( MAXTEXTLEN, m_nMaxTextLength, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( MULTILINE, m_bMultiLine, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( TEXT, m_sLastKnownEngineText, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( LINEEND_FORMAT, m_nLineEndFormat, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_2( WRITING_MODE, m_nTextWritingMode, BOUND, MAYBEDEFAULT );
|
|
|
|
REGISTER_PROP_3( CONTEXT_WRITING_MODE, m_nContextWritingMode, BOUND, MAYBEDEFAULT, TRANSIENT );
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
REGISTER_VOID_PROP_2( ALIGN, m_aAlign, sal_Int16, BOUND, MAYBEDEFAULT );
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
ORichTextModel::~ORichTextModel( )
|
|
|
|
{
|
|
|
|
if ( !OComponentHelper::rBHelper.bDisposed )
|
|
|
|
{
|
|
|
|
acquire();
|
|
|
|
dispose();
|
|
|
|
}
|
2007-07-06 08:56:54 +00:00
|
|
|
if ( m_pEngine.get() )
|
|
|
|
{
|
Ensure SolarMutex is locked at DBG_TESTSOLARMUTEX checkpoints
f218110744cbb2ec79796d886042546e47334cca "Get rid of
GlobalEditData::GetStdRefDevice()" causes DBG_TESTSOLARMUTEX failures like
13 <signal handler called>
14 0x000000396e035ba5 in raise () from /lib64/libc.so.6
15 0x000000396e037358 in abort () from /lib64/libc.so.6
16 0x000000396e02e972 in __assert_fail_base () from /lib64/libc.so.6
17 0x000000396e02ea22 in __assert_fail () from /lib64/libc.so.6
18 0x00002aaaaee6e42f in ImplDbgTestSolarMutex () at vcl/source/app/dbggui.cxx:1750
19 0x00002aaaae21cf1b in DbgFunc (nAction=15, pParam=0x0) at tools/source/debug/debug.cxx:1118
20 0x00002aaaaf12bbb5 in DbgTestSolarMutex () at include/tools/debug.hxx:295
21 0x00002aaaaf151d4f in OutputDevice::ImplGetGraphics (this=0x2aab342127c0) at vcl/source/gdi/outdev.cxx:554
22 0x00002aaaaf1562e9 in OutputDevice::DrawRect (this=0x2aab342127c0, rRect=Rectangle = {...}) at vcl/source/gdi/outdev.cxx:1665
23 0x00002aaaaf14dc53 in OutputDevice::ImplDrawColorWallpaper (this=0x2aab342127c0, nX=0, nY=0, nWidth=1, nHeight=1, rWallpaper=...) at vcl/source/gdi/outdev6.cxx:775
24 0x00002aaaaf14f68c in OutputDevice::ImplDrawWallpaper (this=0x2aab342127c0, nX=0, nY=0, nWidth=1, nHeight=1, rWallpaper=...) at vcl/source/gdi/outdev6.cxx:1080
25 0x00002aaaaf14fa4c in OutputDevice::Erase (this=0x2aab342127c0) at vcl/source/gdi/outdev6.cxx:1141
26 0x00002aaaaf2a8802 in VirtualDevice::ImplInitVirDev (this=0x2aab342127c0, pOutDev=0x2d93230, nDX=1, nDY=1, nBitCount=0, pData=0x0) at vcl/source/gdi/virdev.cxx:113
27 0x00002aaaaf2a8a6e in VirtualDevice::VirtualDevice (this=0x2aab342127c0, nBitCount=0) at vcl/source/gdi/virdev.cxx:135
28 0x00002aaacee3e6a1 in ImpEditEngine::SetRefDevice (this=0x2aab34212040, pRef=0x0) at editeng/source/editeng/impedit2.cxx:193
29 0x00002aaacee3ddf7 in ImpEditEngine::ImpEditEngine (this=0x2aab34212040, pEE=0x2aab34211fe0, pItemPool=0x2aab34210780) at editeng/source/editeng/impedit2.cxx:154
30 0x00002aaacedeec95 in EditEngine::EditEngine (this=0x2aab34211fe0, pItemPool=0x2aab34210780) at editeng/source/editeng/editeng.cxx:104
31 0x00002aaaf63acf10 in frm::RichTextEngine::RichTextEngine (this=0x2aab34211fe0, _pPool=0x2aab34210780) at forms/source/richtext/richtextengine.cxx:102
32 0x00002aaaf63ac8ea in frm::RichTextEngine::Create () at forms/source/richtext/richtextengine.cxx:52
33 0x00002aaaf63bd661 in frm::ORichTextModel::ORichTextModel (this=0x2aab394e5728, _rxFactory=uno::Reference to (cppuhelper::ServiceManager *) 0x2aaabc565260) at forms/source/richtext/richtextmodel.cxx:68
34 0x00002aaaf63c00e3 in frm::ORichTextModel::Create (_rxFactory=uno::Reference to (cppuhelper::ServiceManager *) 0x2aaabc565260) at forms/source/richtext/richtextmodel.cxx:242
35 0x00002aaaab81054e in cppu::OSingleFactoryHelper::createInstanceEveryTime (this=0x2aaaf5d3d070, xContext=uno::Reference to (cppu::ComponentContext *) 0x2aaabc54ef58) at cppuhelper/source/factory.cxx:171
36 0x00002aaaab810765 in cppu::OSingleFactoryHelper::createInstanceWithContext (this=0x2aaaf5d3d070, xContext=uno::Reference to (cppu::ComponentContext *) 0x2aaabc54ef58) at cppuhelper/source/factory.cxx:203
37 0x00002aaaab8111bf in cppu::OFactoryComponentHelper::createInstanceWithContext (this=0x2aaaf5d3d008, xContext=uno::Reference to (cppu::ComponentContext *) 0x2aaabc54ef58) at cppuhelper/source/factory.cxx:432
38 0x00002aaaab865ee6 in cppuhelper::ServiceManager::createInstanceWithContext (this=0x2aaabc565208, aServiceSpecifier="com.sun.star.form.component.RichTextControl", Context=uno::Reference to (cppu::ComponentContext *) 0x2aaabc54ef58) at cppuhelper/source/servicemanager.cxx:796
39 0x00002aaaab865990 in cppuhelper::ServiceManager::createInstance (this=0x2aaabc565208, aServiceSpecifier="com.sun.star.form.component.RichTextControl") at cppuhelper/source/servicemanager.cxx:745
40 0x00002aaaf62db43d in frm::OControlModel::OControlModel (this=0x2aaaf5a5e408, _rxFactory=uno::Reference to (cppuhelper::ServiceManager *) 0x2aaabc565260, _rUnoControlModelTypeName="com.sun.star.form.component.RichTextControl", rDefault="com.sun.star.form.control.TextField", _bSetDelegator=0 '\000') at forms/source/component/FormComponent.cxx:598
41 0x00002aaaf62def21 in frm::OBoundControlModel::OBoundControlModel (this=0x2aaaf5a5e408, _rxFactory=uno::Reference to (cppuhelper::ServiceManager *) 0x2aaabc565260, _rUnoControlModelTypeName="com.sun.star.form.component.RichTextControl", _rDefault="com.sun.star.form.control.TextField", _bCommitable=1 '\001', _bSupportExternalBinding=1 '\001', _bSupportsValidation=1 '\001') at forms/source/component/FormComponent.cxx:1257
42 0x00002aaaf62a212c in frm::OEditBaseModel::OEditBaseModel (this=0x2aaaf5a5e408, _rxFactory=uno::Reference to (cppuhelper::ServiceManager *) 0x2aaabc565260, rUnoControlModelName="com.sun.star.form.component.RichTextControl", rDefault="com.sun.star.form.control.TextField", _bSupportExternalBinding=1 '\001', _bSupportsValidation=1 '\001') at forms/source/component/EditBase.cxx:56
43 0x00002aaaf62a54e2 in frm::OEditModel::OEditModel (this=0x2aaaf5a5e408, _rxFactory=uno::Reference to (cppuhelper::ServiceManager *) 0x2aaabc565260) at forms/source/component/Edit.cxx:294
44 0x00002aaaf62d6a40 in frm::OFormattedFieldWrapper::read (this=0x2aaadbee2940, _rxInStream=uno::Reference to (io_stm::OObjectInputStream *) 0x2aab393d0070) at forms/source/component/FormattedFieldWrapper.cxx:303
45 0x00002aaabcba47e6 in gcc3::callVirtualMethod(void*, unsigned int, void*, _typelib_TypeDescriptionReference*, bool, unsigned long*, unsigned int, unsigned long*, unsigned int, double*, unsigned int) () from solver/unxlngx6/installation/opt/ure/lib/libgcc3_uno.so
46 0x00002aaabcba36c0 in cpp_call (pThis=0x2aaad40cee90, aVtableSlot=..., pReturnTypeRef=0x2474360, nParams=1, pParams=0x2aaad0009000, pUnoReturn=0x0, pUnoArgs=0x2aab3420ff10, ppUnoExc=0x2aab26a4e6a8) at bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:237
47 0x00002aaabcba4203 in bridges::cpp_uno::shared::unoInterfaceProxyDispatch (pUnoI=0x2aaad40cee90, pMemberDescr=0x2aaad0012980, pReturn=0x0, pArgs=0x2aab3420ff10, ppException=0x2aab26a4e6a8) at bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:430
48 0x00002aaabe26515f in binaryurp::IncomingRequest::execute_throw (this=0x2aaad000b9a0, returnValue=0x2aab26a4eb10, outArguments=0x2aab26a4ea80) at binaryurp/source/incomingrequest.cxx:245
49 0x00002aaabe26402f in binaryurp::IncomingRequest::execute (this=0x2aaad000b9a0) at binaryurp/source/incomingrequest.cxx:74
50 0x00002aaabe27f3f1 in binaryurp::(anonymous namespace)::request (pThreadSpecificData=0x2aaad000b9a0) at binaryurp/source/reader.cxx:87
51 0x00002aaaab539286 in cppu_threadpool::JobQueue::enter (this=0x2aaad00098b0, nDisposeId=46913122473968, bReturnWhenNoJob=1 '\001') at cppu/source/threadpool/jobqueue.cxx:115
52 0x00002aaaab53cb7d in cppu_threadpool::ORequestThread::run (this=0x2aaad00017f0) at cppu/source/threadpool/thread.cxx:172
53 0x00002aaaab53d363 in osl::threadFunc (param=0x2aaad0001800) at include/osl/thread.hxx:187
54 0x00002aaaaaac85fb in osl_thread_start_Impl (pData=0x2aaad0007050) at sal/osl/unx/thread.c:251
55 0x000000396e407d15 in start_thread () from /lib64/libpthread.so.0
56 0x000000396e0f248d in clone () from /lib64/libc.so.6
(encountered with JunitTest_forms_unoapi) or
13 <signal handler called>
14 0x000000396e035ba5 in raise () from /lib64/libc.so.6
15 0x000000396e037358 in abort () from /lib64/libc.so.6
16 0x000000396e02e972 in __assert_fail_base () from /lib64/libc.so.6
17 0x000000396e02ea22 in __assert_fail () from /lib64/libc.so.6
18 0x00002aaaaee6e42f in ImplDbgTestSolarMutex () at vcl/source/app/dbggui.cxx:1750
19 0x00002aaaae21cf1b in DbgFunc (nAction=15, pParam=0x0) at tools/source/debug/debug.cxx:1118
20 0x00002aaaaf12bbb5 in DbgTestSolarMutex () at include/tools/debug.hxx:295
21 0x00002aaaaf152433 in OutputDevice::ImplReleaseGraphics (this=0x2aab20eef8b0, bRelease=1 '\001') at vcl/source/gdi/outdev.cxx:704
22 0x00002aaaaf2a9047 in VirtualDevice::~VirtualDevice (this=0x2aab20eef8b0, __in_chrg=<optimized out>) at vcl/source/gdi/virdev.cxx:187
23 0x00002aaaaf2a919c in VirtualDevice::~VirtualDevice (this=0x2aab20eef8b0, __in_chrg=<optimized out>) at vcl/source/gdi/virdev.cxx:202
24 0x00002aaacecbb264 in ImpEditEngine::~ImpEditEngine (this=0x2aab20eef130, __in_chrg=<optimized out>) at editeng/source/editeng/impedit2.cxx:182
25 0x00002aaacecbb614 in ImpEditEngine::~ImpEditEngine (this=0x2aab20eef130, __in_chrg=<optimized out>) at editeng/source/editeng/impedit2.cxx:184
26 0x00002aaacec6bd51 in EditEngine::~EditEngine (this=0x2aab20eef0d0, __in_chrg=<optimized out>) at editeng/source/editeng/editeng.cxx:110
27 0x00002aab34256039 in frm::RichTextEngine::~RichTextEngine (this=0x2aab20eef0d0, __in_chrg=<optimized out>) at forms/source/richtext/richtextengine.cxx:108
28 0x00002aab3425609c in frm::RichTextEngine::~RichTextEngine (this=0x2aab20eef0d0, __in_chrg=<optimized out>) at forms/source/richtext/richtextengine.cxx:111
29 0x00002aab3426b3fe in std::auto_ptr<frm::RichTextEngine>::reset (this=0x2aaabd4cb210, __p=0x0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/backward/auto_ptr.h:244
30 0x00002aab34268a64 in frm::ORichTextModel::~ORichTextModel (this=0x2aaabd4cae08, __in_chrg=<optimized out>) at forms/source/richtext/richtextmodel.cxx:219
31 0x00002aab34268d60 in frm::ORichTextModel::~ORichTextModel (this=0x2aaabd4cae08, __in_chrg=<optimized out>) at forms/source/richtext/richtextmodel.cxx:225
32 0x00002aaaab8bd763 in cppu::OWeakObject::release (this=0x2aaabd4cae08) at cppuhelper/source/weak.cxx:204
33 0x00002aaaab8bdc20 in cppu::OWeakAggObject::release (this=0x2aaabd4cae08) at cppuhelper/source/weak.cxx:274
34 0x00002aaaab805212 in cppu::OComponentHelper::release (this=0x2aaabd4cae08) at cppuhelper/source/component.cxx:113
35 0x00002aab340edb6c in frm::OControlModel::release (this=0x2aaabd4cae08) at forms/source/inc/FormComponent.hxx:408
36 0x00002aab3426ae18 in frm::ORichTextModel::release (this=0x2aaabd4cae08) at forms/source/richtext/richtextmodel.hxx:106
37 0x00002aaaab1d81cf in com::sun::star::uno::Reference<com::sun::star::beans::XPropertyState>::~Reference (this=0x2aaacfee10d0, __in_chrg=<optimized out>) at include/com/sun/star/uno/Reference.hxx:108
38 0x00002aaaab1d2e69 in comphelper::OPropertySetAggregationHelper::~OPropertySetAggregationHelper (this=0x2aaacfee1068, __in_chrg=<optimized out>) at comphelper/source/property/propagg.cxx:451
39 0x00002aab34184f55 in frm::OControlModel::~OControlModel (this=0x2aaacfee1008, __in_chrg=<optimized out>) at forms/source/component/FormComponent.cxx:669
40 0x00002aab34189425 in frm::OBoundControlModel::~OBoundControlModel (this=0x2aaacfee1008, __in_chrg=<optimized out>) at forms/source/component/FormComponent.cxx:1316
41 0x00002aab3414bac5 in frm::OEditBaseModel::~OEditBaseModel (this=0x2aaacfee1008, __in_chrg=<optimized out>) at forms/source/component/EditBase.cxx:75
42 0x00002aab3414ee79 in frm::OEditModel::~OEditModel (this=0x2aaacfee1008, __in_chrg=<optimized out>) at forms/source/component/Edit.cxx:318
43 0x00002aab3414eef8 in frm::OEditModel::~OEditModel (this=0x2aaacfee1008, __in_chrg=<optimized out>) at forms/source/component/Edit.cxx:327
44 0x00002aaaab8bd763 in cppu::OWeakObject::release (this=0x2aaacfee1008) at cppuhelper/source/weak.cxx:204
45 0x00002aaaab8bdc20 in cppu::OWeakAggObject::release (this=0x2aaacfee1008) at cppuhelper/source/weak.cxx:274
46 0x00002aaaab805212 in cppu::OComponentHelper::release (this=0x2aaacfee1008) at cppuhelper/source/component.cxx:113
47 0x00002aab340edb6c in frm::OControlModel::release (this=0x2aaacfee1008) at forms/source/inc/FormComponent.hxx:408
48 0x00002aab340f8a38 in frm::OBoundControlModel::release (this=0x2aaacfee1008) at forms/source/inc/FormComponent.hxx:1025
49 0x00002aaaab7ed45d in com::sun::star::uno::Reference<com::sun::star::uno::XInterface>::~Reference (this=0x7fff8d7a2cd0, __in_chrg=<optimized out>) at include/com/sun/star/uno/Reference.hxx:108
50 0x00002aaaab8051f3 in cppu::OComponentHelper::release (this=0x2aaacfee1008) at cppuhelper/source/component.cxx:107
51 0x00002aab340edb6c in frm::OControlModel::release (this=0x2aaacfee1008) at forms/source/inc/FormComponent.hxx:408
52 0x00002aab340f8a38 in frm::OBoundControlModel::release (this=0x2aaacfee1008) at forms/source/inc/FormComponent.hxx:1025
53 0x00002aaabcba6224 in bridges::cpp_uno::shared::freeUnoInterfaceProxy (pEnv=0x2aaac80009e0, pProxy=0x2aab20ef5470) at bridges/source/cpp_uno/shared/unointerfaceproxy.cxx:43
54 0x00002aaaab56f35c in (anonymous namespace)::s_stub_defenv_revokeInterface (pParam=0x7fff8d7a2f78) at cppu/source/uno/lbenv.cxx:390
55 0x00002aaaab56ad4f in s_environment_invoke_v (pCurrEnv=0x0, pTargetEnv=0x2aaac80009e0, pCallee=0x2aaaab56f008 <(anonymous namespace)::s_stub_defenv_revokeInterface(va_list*)>, pParam=0x7fff8d7a2f78) at cppu/source/uno/EnvStack.cxx:292
56 0x00002aaaab56adf8 in uno_Environment_invoke_v (pTargetEnv=0x2aaac80009e0, pCallee=0x2aaaab56f008 <(anonymous namespace)::s_stub_defenv_revokeInterface(va_list*)>, pParam=0x7fff8d7a2f78) at cppu/source/uno/EnvStack.cxx:311
57 0x00002aaaab56aeb8 in uno_Environment_invoke (pEnv=0x2aaac80009e0, pCallee=0x2aaaab56f008 <(anonymous namespace)::s_stub_defenv_revokeInterface(va_list*)>) at cppu/source/uno/EnvStack.cxx:320
58 0x00002aaaab56f704 in (anonymous namespace)::defenv_revokeInterface (pEnv=0x2aaac80009e0, pInterface=0x2aab20ef5470) at cppu/source/uno/lbenv.cxx:446
59 0x00002aaabcba634a in bridges::cpp_uno::shared::releaseProxy (pUnoI=0x2aab20ef5470) at bridges/source/cpp_uno/shared/unointerfaceproxy.cxx:85
60 0x00002aaabe24dbd3 in com::sun::star::uno::UnoInterfaceReference::~UnoInterfaceReference (this=0x2aaad011eac8, __in_chrg=<optimized out>) at include/uno/dispatcher.hxx:88
61 0x00002aaabe24edd8 in binaryurp::Bridge::SubStub::~SubStub (this=0x2aaad011eac8, __in_chrg=<optimized out>) at binaryurp/source/bridge.cxx:167
62 0x00002aaabe24eea3 in std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub>::~pair (this=0x2aaad011eac0, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:88
63 0x00002aaabe25a32e in std::_Rb_tree_node<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> >::~_Rb_tree_node (this=0x2aaad011eaa0, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:130
64 0x00002aaabe25a34c in __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >::destroy<std::_Rb_tree_node<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > (this=0x2aaad011eb08, __p=0x2aaad011eaa0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/ext/new_allocator.h:114
65 0x00002aaabe258ad9 in std::_Rb_tree<com::sun::star::uno::TypeDescription, std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub>, std::_Select1st<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> >, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >::_M_destroy_node (this=0x2aaad011eb08, __p=0x2aaad011eaa0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:419
66 0x00002aaabe2566d5 in std::_Rb_tree<com::sun::star::uno::TypeDescription, std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub>, std::_Select1st<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> >, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >::_M_erase (this=0x2aaad011eb08, __x=0x2aaad011eaa0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1084
67 0x00002aaabe254656 in std::_Rb_tree<com::sun::star::uno::TypeDescription, std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub>, std::_Select1st<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> >, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >::~_Rb_tree (this=0x2aaad011eb08, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:646
68 0x00002aaabe2519d4 in std::__cxx1998::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >::~map (this=0x2aaad011eb08, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_map.h:90
69 0x00002aaabe251a70 in std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >::~map (this=0x2aaad011eb08, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/debug/map.h:107
70 0x00002aaabe24ef78 in std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >::~pair (this=0x2aaad011eb00, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:88
71 0x00002aaabe25a168 in std::_Rb_tree_node<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >::~_Rb_tree_node (this=0x2aaad011eae0, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:130
72 0x00002aaabe25a186 in __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::destroy<std::_Rb_tree_node<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > > (this=0x7fff8d7a3470, __p=0x2aaad011eae0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/ext/new_allocator.h:114
73 0x00002aaabe2584ef in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::_M_destroy_node (this=0x7fff8d7a3470, __p=0x2aaad011eae0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:419
74 0x00002aaabe255bc1 in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::_M_erase (this=0x7fff8d7a3470, __x=0x2aaad011eae0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1084
75 0x00002aaabe255b9e in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::_M_erase (this=0x7fff8d7a3470, __x=0x2aaad0012f10) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1082
76 0x00002aaabe255b9e in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::_M_erase (this=0x7fff8d7a3470, __x=0x2aaad0012a60) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1082
77 0x00002aaabe255b9e in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::_M_erase (this=0x7fff8d7a3470, __x=0x2aaad002ec50) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1082
78 0x00002aaabe255b9e in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::_M_erase (this=0x7fff8d7a3470, __x=0x2aaad001ca70) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1082
79 0x00002aaabe2537e8 in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > >, std::_Select1st<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::~_Rb_tree (this=0x7fff8d7a3470, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:646
80 0x00002aaabe25033a in std::__cxx1998::map<rtl::OUString, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::~map (this=0x7fff8d7a3470, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_map.h:90
81 0x00002aaabe2503d6 in std::__debug::map<rtl::OUString, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, std::__debug::map<com::sun::star::uno::TypeDescription, binaryurp::Bridge::SubStub, std::less<com::sun::star::uno::TypeDescription>, std::allocator<std::pair<com::sun::star::uno::TypeDescription const, binaryurp::Bridge::SubStub> > > > > >::~map (this=0x7fff8d7a3470, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/debug/map.h:107
82 0x00002aaabe2468ec in binaryurp::Bridge::terminate (this=0x2aaabd5aa670, final=true) at binaryurp/source/bridge.cxx:332
83 0x00002aaabe24af19 in binaryurp::Bridge::dispose (this=0x2aaabd5aa670) at binaryurp/source/bridge.cxx:920
84 0x00002aaabddfc85d in desktop::Acceptor::~Acceptor (this=0x2aaabd3ea6d0, __in_chrg=<optimized out>) at desktop/source/offacc/acceptor.cxx:88
85 0x00002aaabddfca52 in desktop::Acceptor::~Acceptor (this=0x2aaabd3ea6d0, __in_chrg=<optimized out>) at desktop/source/offacc/acceptor.cxx:90
86 0x00002aaaab8bd763 in cppu::OWeakObject::release (this=0x2aaabd3ea6d0) at cppuhelper/source/weak.cxx:204
87 0x00002aaabde05f7e in cppu::WeakImplHelper2<com::sun::star::lang::XServiceInfo, com::sun::star::lang::XInitialization>::release (this=0x2aaabd3ea6d0) at include/cppuhelper/implbase2.hxx:106
88 0x00002aaaaad7d4fb in com::sun::star::uno::Reference<com::sun::star::lang::XInitialization>::~Reference (this=0x16790f8, __in_chrg=<optimized out>) at include/com/sun/star/uno/Reference.hxx:108
89 0x00002aaaaad846f8 in std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> >::~pair (this=0x16790f0, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:88
90 0x00002aaaaad8834e in std::_Rb_tree_node<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > >::~_Rb_tree_node (this=0x16790d0, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:130
91 0x00002aaaaad8836c in __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > >::destroy<std::_Rb_tree_node<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > > (this=0x2aaaab039660 <rtl::Static<desktop::AcceptorMap, desktop::(anonymous namespace)::acceptorMap>::get()::instance>, __p=0x16790d0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/ext/new_allocator.h:114
92 0x00002aaaaad87fdb in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> >, std::_Select1st<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > >::_M_destroy_node (this=0x2aaaab039660 <rtl::Static<desktop::AcceptorMap, desktop::(anonymous namespace)::acceptorMap>::get()::instance>, __p=0x16790d0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:419
93 0x00002aaaaad878a5 in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> >, std::_Select1st<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > >::_M_erase (this=0x2aaaab039660 <rtl::Static<desktop::AcceptorMap, desktop::(anonymous namespace)::acceptorMap>::get()::instance>, __x=0x16790d0) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:1084
94 0x00002aaaaad87625 in std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> >, std::_Select1st<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > >::clear (this=0x2aaaab039660 <rtl::Static<desktop::AcceptorMap, desktop::(anonymous namespace)::acceptorMap>::get()::instance>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tree.h:816
95 0x00002aaaaad865b4 in std::__cxx1998::map<rtl::OUString, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization>, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > >::clear (this=0x2aaaab039660 <rtl::Static<desktop::AcceptorMap, desktop::(anonymous namespace)::acceptorMap>::get()::instance>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_map.h:716
96 0x00002aaaaad85670 in std::__debug::map<rtl::OUString, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization>, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, com::sun::star::uno::Reference<com::sun::star::lang::XInitialization> > > >::clear (this=0x2aaaab039660 <rtl::Static<desktop::AcceptorMap, desktop::(anonymous namespace)::acceptorMap>::get()::instance>) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/debug/map.h:351
97 0x00002aaaaad83453 in desktop::Desktop::DeregisterServices (this=0x7fff8d7a43e0) at desktop/source/app/appinit.cxx:255
98 0x00002aaaaad643e3 in desktop::Desktop::doShutdown (this=0x7fff8d7a43e0) at desktop/source/app/app.cxx:1804
99 0x00002aaaaad63680 in desktop::Desktop::Main (this=0x7fff8d7a43e0) at desktop/source/app/app.cxx:1753
100 0x00002aaaaee9b0dd in ImplSVMain () at vcl/source/app/svmain.cxx:162
101 0x00002aaaaee9b1c6 in SVMain () at vcl/source/app/svmain.cxx:198
102 0x00002aaaaada6616 in soffice_main () at desktop/source/app/sofficemain.cxx:82
103 0x0000000000400968 in sal_main () at desktop/source/app/main.c:48
104 0x0000000000400949 in main (argc=9, argv=0x7fff8d7a45c8) at desktop/source/app/main.c:47
(encountered with JunitTest_sc_unoapi), and more, so lock the SolarMutex at the
"entrance" to the relevant stack traces.
Change-Id: I017acf2886b813adb4d44562c5f1e22dd24aa884
2013-05-22 16:19:33 +02:00
|
|
|
SolarMutexGuard g;
|
CWS-TOOLING: integrate CWS aw063
2009-02-12 13:10:24 +0100 aw r267649 : #i99123# when a primitive is invisible, it is not sufficient to produce no output when decomposing, but to add invisible data using HitTestPrimitive2D. This is needed for the slideshow which relies on geometry data in MetaFiles when painting invisible objects
2009-02-12 13:08:39 +0100 aw r267648 : #i99123# do not ignore HitTestPrimitive2D, but draw empty rectangles instead. This is needed since Slideshow is based on getting MetaFile content when painting invisible objects
2009-02-11 16:04:28 +0100 aw r267620 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:04:10 +0100 aw r267619 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:56 +0100 aw r267618 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:39 +0100 aw r267617 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:21 +0100 aw r267615 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:48 +0100 aw r267614 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:24 +0100 aw r267613 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:01 +0100 aw r267612 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:32 +0100 aw r267611 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:05 +0100 aw r267610 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:00:15 +0100 aw r267608 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 11:27:33 +0100 aw r267585 : #i98788# added missing include for STL
2009-02-10 17:46:50 +0100 aw r267570 : #i98788# added reaction on pool destruction
2009-02-10 17:11:58 +0100 aw r267562 : #i98788# added messaging mechanism to register for pool destruction
2009-02-10 13:35:35 +0100 aw r267549 : #i98788# removing changes, too complicated and risky for 3.1
2009-02-10 12:13:48 +0100 aw r267546 : #i98788# 4th round
2009-02-10 12:13:37 +0100 aw r267545 : #i98788# 4th round
2009-02-10 12:13:26 +0100 aw r267544 : #i98788# 4th round
2009-02-10 12:13:14 +0100 aw r267543 : #i98788# 4th round
2009-02-10 12:13:03 +0100 aw r267542 : #i98788# 4th round
2009-02-10 12:12:50 +0100 aw r267541 : #i98788# 4th round
2009-02-10 12:12:37 +0100 aw r267540 : #i98788# 4th round
2009-02-08 14:38:22 +0100 aw r267495 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:38:06 +0100 aw r267494 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:48 +0100 aw r267493 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:17 +0100 aw r267492 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:56 +0100 aw r267491 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:44 +0100 aw r267490 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:29 +0100 aw r267489 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:16 +0100 aw r267488 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:02 +0100 aw r267487 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:35:46 +0100 aw r267486 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-05 12:20:39 +0100 aw r267415 : #i98788# 2nd batch of adaptions for SfxItemPoolHolder addition
2009-02-04 15:12:54 +0100 aw r267385 : #i98788# added newline at EOF
2009-02-04 13:26:04 +0100 aw r267379 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:40 +0100 aw r267378 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:08 +0100 aw r267377 : #i98788# make SfxItemPool holdable
2009-02-04 13:24:42 +0100 aw r267376 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:14 +0100 aw r267375 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:02 +0100 aw r267374 : #i98788# make SfxItemPool holdable
2009-01-29 17:08:31 +0100 aw r267159 : #i97628# completed the fix
2009-01-29 17:08:15 +0100 aw r267158 : #i97628# completed the fix
2009-01-29 14:09:07 +0100 aw r267132 : #i97628# Corrected usage of ParagraphData in headers
2009-01-29 14:06:58 +0100 iha r267131 : #i98344# incorrect font size in charts
2009-01-29 12:13:46 +0100 aw r267115 : #i97628# back to old state; triggers too many errors in other modules
2009-01-29 12:03:51 +0100 aw r267114 : #i97628# enabled exceptions due to STL vector include
2009-01-29 11:21:37 +0100 aw r267107 : #i97628# added needed include
2009-01-28 17:58:29 +0100 aw r267077 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:58:12 +0100 aw r267076 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:51 +0100 aw r267074 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:21 +0100 aw r267073 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-27 17:07:33 +0100 aw r267011 : #i98402# added support for ViewRange when exporting MetaFiles in ObjectContactOfPageView::DoProcessDisplay to avoid to paint too much
2009-01-27 11:45:48 +0100 aw r266973 : #i98404# Added a warning to a place where a conversion to rectangle should not be copied from
2009-01-26 21:44:36 +0100 iha r266949 : #i98497# 3D charts are rendered with wrong size
2009-01-26 20:47:07 +0100 aw r266947 : #i98404# handle BackgroundColorPrimitive2D directly in PixelRenderers and avoid AA under all circumstances
2009-01-26 14:50:36 +0100 aw r266926 : #i98386# secured cloning of SdrObject in IMapUserData by boost::shared_prt usage
2009-01-26 12:51:30 +0100 aw r266916 : #i96581# added separated FontStretching and fallback for small X!=Y scale differences
2009-01-23 16:14:55 +0100 aw r266834 : #i96475# added missing implementation of TextDecoratedPortionPrimitive2D::getB2DRange
2009-01-23 15:24:34 +0100 aw r266826 : #i98405# fixed fallback to DrawAlphaRect to use the correctly sized rectangle
2009-01-23 13:34:43 +0100 aw r266813 : #i96474# fixed impSplitSingleWords for an unexpected case
2009-01-23 10:47:31 +0100 aw r266786 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:20 +0100 aw r266785 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:09 +0100 aw r266783 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:58 +0100 aw r266782 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:48 +0100 aw r266781 : #i98289#,#i96474# tooling and new flags for tasks
2009-03-04 14:16:02 +00:00
|
|
|
SfxItemPool* pPool = m_pEngine->getPool();
|
2007-07-06 08:56:54 +00:00
|
|
|
m_pEngine.reset();
|
CWS-TOOLING: integrate CWS aw063
2009-02-12 13:10:24 +0100 aw r267649 : #i99123# when a primitive is invisible, it is not sufficient to produce no output when decomposing, but to add invisible data using HitTestPrimitive2D. This is needed for the slideshow which relies on geometry data in MetaFiles when painting invisible objects
2009-02-12 13:08:39 +0100 aw r267648 : #i99123# do not ignore HitTestPrimitive2D, but draw empty rectangles instead. This is needed since Slideshow is based on getting MetaFile content when painting invisible objects
2009-02-11 16:04:28 +0100 aw r267620 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:04:10 +0100 aw r267619 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:56 +0100 aw r267618 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:39 +0100 aw r267617 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:03:21 +0100 aw r267615 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:48 +0100 aw r267614 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:24 +0100 aw r267613 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:02:01 +0100 aw r267612 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:32 +0100 aw r267611 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:01:05 +0100 aw r267610 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 16:00:15 +0100 aw r267608 : #i98788# made SfxItemPool destructor protected, added static ::Free method
2009-02-11 11:27:33 +0100 aw r267585 : #i98788# added missing include for STL
2009-02-10 17:46:50 +0100 aw r267570 : #i98788# added reaction on pool destruction
2009-02-10 17:11:58 +0100 aw r267562 : #i98788# added messaging mechanism to register for pool destruction
2009-02-10 13:35:35 +0100 aw r267549 : #i98788# removing changes, too complicated and risky for 3.1
2009-02-10 12:13:48 +0100 aw r267546 : #i98788# 4th round
2009-02-10 12:13:37 +0100 aw r267545 : #i98788# 4th round
2009-02-10 12:13:26 +0100 aw r267544 : #i98788# 4th round
2009-02-10 12:13:14 +0100 aw r267543 : #i98788# 4th round
2009-02-10 12:13:03 +0100 aw r267542 : #i98788# 4th round
2009-02-10 12:12:50 +0100 aw r267541 : #i98788# 4th round
2009-02-10 12:12:37 +0100 aw r267540 : #i98788# 4th round
2009-02-08 14:38:22 +0100 aw r267495 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:38:06 +0100 aw r267494 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:48 +0100 aw r267493 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:37:17 +0100 aw r267492 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:56 +0100 aw r267491 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:44 +0100 aw r267490 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:29 +0100 aw r267489 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:16 +0100 aw r267488 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:36:02 +0100 aw r267487 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-08 14:35:46 +0100 aw r267486 : #i98788# 3rd round of changes to SfxItemPool handling
2009-02-05 12:20:39 +0100 aw r267415 : #i98788# 2nd batch of adaptions for SfxItemPoolHolder addition
2009-02-04 15:12:54 +0100 aw r267385 : #i98788# added newline at EOF
2009-02-04 13:26:04 +0100 aw r267379 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:40 +0100 aw r267378 : #i98788# make SfxItemPool holdable
2009-02-04 13:25:08 +0100 aw r267377 : #i98788# make SfxItemPool holdable
2009-02-04 13:24:42 +0100 aw r267376 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:14 +0100 aw r267375 : #i98788# make SfxItemPool holdable
2009-02-04 13:23:02 +0100 aw r267374 : #i98788# make SfxItemPool holdable
2009-01-29 17:08:31 +0100 aw r267159 : #i97628# completed the fix
2009-01-29 17:08:15 +0100 aw r267158 : #i97628# completed the fix
2009-01-29 14:09:07 +0100 aw r267132 : #i97628# Corrected usage of ParagraphData in headers
2009-01-29 14:06:58 +0100 iha r267131 : #i98344# incorrect font size in charts
2009-01-29 12:13:46 +0100 aw r267115 : #i97628# back to old state; triggers too many errors in other modules
2009-01-29 12:03:51 +0100 aw r267114 : #i97628# enabled exceptions due to STL vector include
2009-01-29 11:21:37 +0100 aw r267107 : #i97628# added needed include
2009-01-28 17:58:29 +0100 aw r267077 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:58:12 +0100 aw r267076 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:51 +0100 aw r267074 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-28 17:57:21 +0100 aw r267073 : #i97628# first version of newly implemented OutlinerParaObject and adaptions
2009-01-27 17:07:33 +0100 aw r267011 : #i98402# added support for ViewRange when exporting MetaFiles in ObjectContactOfPageView::DoProcessDisplay to avoid to paint too much
2009-01-27 11:45:48 +0100 aw r266973 : #i98404# Added a warning to a place where a conversion to rectangle should not be copied from
2009-01-26 21:44:36 +0100 iha r266949 : #i98497# 3D charts are rendered with wrong size
2009-01-26 20:47:07 +0100 aw r266947 : #i98404# handle BackgroundColorPrimitive2D directly in PixelRenderers and avoid AA under all circumstances
2009-01-26 14:50:36 +0100 aw r266926 : #i98386# secured cloning of SdrObject in IMapUserData by boost::shared_prt usage
2009-01-26 12:51:30 +0100 aw r266916 : #i96581# added separated FontStretching and fallback for small X!=Y scale differences
2009-01-23 16:14:55 +0100 aw r266834 : #i96475# added missing implementation of TextDecoratedPortionPrimitive2D::getB2DRange
2009-01-23 15:24:34 +0100 aw r266826 : #i98405# fixed fallback to DrawAlphaRect to use the correctly sized rectangle
2009-01-23 13:34:43 +0100 aw r266813 : #i96474# fixed impSplitSingleWords for an unexpected case
2009-01-23 10:47:31 +0100 aw r266786 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:20 +0100 aw r266785 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:47:09 +0100 aw r266783 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:58 +0100 aw r266782 : #i98289#,#i96474# tooling and new flags for tasks
2009-01-23 10:46:48 +0100 aw r266781 : #i98289#,#i96474# tooling and new flags for tasks
2009-03-04 14:16:02 +00:00
|
|
|
SfxItemPool::Free(pPool);
|
2007-07-06 08:56:54 +00:00
|
|
|
}
|
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
Any SAL_CALL ORichTextModel::queryAggregation( const Type& _rType ) throw ( RuntimeException, std::exception )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
Any aReturn = ORichTextModel_BASE::queryInterface( _rType );
|
|
|
|
|
|
|
|
if ( !aReturn.hasValue() )
|
|
|
|
aReturn = OControlModel::queryAggregation( _rType );
|
|
|
|
|
|
|
|
return aReturn;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
IMPLEMENT_FORWARD_XTYPEPROVIDER2( ORichTextModel, OControlModel, ORichTextModel_BASE )
|
|
|
|
|
2015-03-27 23:27:32 +01:00
|
|
|
OUString SAL_CALL ORichTextModel::getImplementationName() throw ( RuntimeException, std::exception )
|
|
|
|
{
|
|
|
|
return OUString( "com.sun.star.comp.forms.ORichTextModel" );
|
|
|
|
}
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2015-03-27 23:27:32 +01:00
|
|
|
Sequence< OUString > SAL_CALL ORichTextModel::getSupportedServiceNames() throw (RuntimeException, std::exception)
|
|
|
|
{
|
|
|
|
Sequence< OUString > aOwnNames( 8 );
|
|
|
|
aOwnNames[ 0 ] = FRM_SUN_COMPONENT_RICHTEXTCONTROL;
|
|
|
|
aOwnNames[ 1 ] = "com.sun.star.text.TextRange";
|
|
|
|
aOwnNames[ 2 ] = "com.sun.star.style.CharacterProperties";
|
|
|
|
aOwnNames[ 3 ] = "com.sun.star.style.ParagraphProperties";
|
|
|
|
aOwnNames[ 4 ] = "com.sun.star.style.CharacterPropertiesAsian";
|
|
|
|
aOwnNames[ 5 ] = "com.sun.star.style.CharacterPropertiesComplex";
|
|
|
|
aOwnNames[ 6 ] = "com.sun.star.style.ParagraphPropertiesAsian";
|
|
|
|
aOwnNames[ 7 ] = "com.sun.star.style.ParagraphPropertiesComplex";
|
|
|
|
|
|
|
|
return ::comphelper::combineSequences(
|
|
|
|
getAggregateServiceNames(),
|
|
|
|
::comphelper::concatSequences(
|
|
|
|
OControlModel::getSupportedServiceNames_Static(),
|
|
|
|
aOwnNames)
|
|
|
|
);
|
|
|
|
}
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
IMPLEMENT_DEFAULT_CLONING( ORichTextModel )
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
void SAL_CALL ORichTextModel::disposing()
|
|
|
|
{
|
2006-06-19 12:00:59 +00:00
|
|
|
m_aModifyListeners.disposeAndClear( EventObject( *this ) );
|
2004-05-07 15:13:25 +00:00
|
|
|
OControlModel::disposing();
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
namespace
|
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
void lcl_removeProperty( Sequence< Property >& _rSeq, const OUString& _rPropertyName )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
Property* pLoop = _rSeq.getArray();
|
|
|
|
Property* pEnd = _rSeq.getArray() + _rSeq.getLength();
|
|
|
|
while ( pLoop != pEnd )
|
|
|
|
{
|
|
|
|
if ( pLoop->Name == _rPropertyName )
|
|
|
|
{
|
|
|
|
::std::copy( pLoop + 1, pEnd, pLoop );
|
|
|
|
_rSeq.realloc( _rSeq.getLength() - 1 );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
++pLoop;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2007-03-09 12:36:05 +00:00
|
|
|
void ORichTextModel::describeFixedProperties( Sequence< Property >& _rProps ) const
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
BEGIN_DESCRIBE_PROPERTIES( 1, OControlModel )
|
|
|
|
DECL_PROP2( TABINDEX, sal_Int16, BOUND, MAYBEDEFAULT );
|
|
|
|
END_DESCRIBE_PROPERTIES();
|
|
|
|
|
|
|
|
// properties which the OPropertyContainerHelper is responsible for
|
|
|
|
Sequence< Property > aContainedProperties;
|
|
|
|
describeProperties( aContainedProperties );
|
|
|
|
|
|
|
|
// properties which the FontControlModel is responsible for
|
|
|
|
Sequence< Property > aFontProperties;
|
|
|
|
describeFontRelatedProperties( aFontProperties );
|
|
|
|
|
2007-03-09 12:36:05 +00:00
|
|
|
_rProps = concatSequences( aContainedProperties, aFontProperties, _rProps );
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2007-03-09 12:36:05 +00:00
|
|
|
void ORichTextModel::describeAggregateProperties( Sequence< Property >& _rAggregateProps ) const
|
|
|
|
{
|
|
|
|
OControlModel::describeAggregateProperties( _rAggregateProps );
|
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
// our aggregate (the SvxUnoText) declares a FontDescriptor property, as does
|
|
|
|
// our FormControlFont base class. We remove it from the base class' sequence
|
|
|
|
// here, and later on care for both instances being in sync
|
|
|
|
lcl_removeProperty( _rAggregateProps, PROPERTY_FONT );
|
2008-12-16 13:30:53 +00:00
|
|
|
|
|
|
|
// similar, the WritingMode property is declared in our aggregate, too, but we override
|
|
|
|
// it, since the aggregate does no proper PropertyState handling.
|
|
|
|
lcl_removeProperty( _rAggregateProps, PROPERTY_WRITING_MODE );
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
void SAL_CALL ORichTextModel::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle ) const
|
|
|
|
{
|
|
|
|
if ( isRegisteredProperty( _nHandle ) )
|
|
|
|
{
|
|
|
|
OPropertyContainerHelper::getFastPropertyValue( _rValue, _nHandle );
|
|
|
|
}
|
|
|
|
else if ( isFontRelatedProperty( _nHandle ) )
|
|
|
|
{
|
|
|
|
FontControlModel::getFastPropertyValue( _rValue, _nHandle );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
OControlModel::getFastPropertyValue( _rValue, _nHandle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
sal_Bool SAL_CALL ORichTextModel::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw( IllegalArgumentException )
|
|
|
|
{
|
2014-05-06 12:37:38 +02:00
|
|
|
bool bModified = false;
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
if ( isRegisteredProperty( _nHandle ) )
|
|
|
|
{
|
|
|
|
bModified = OPropertyContainerHelper::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
|
|
|
|
}
|
|
|
|
else if ( isFontRelatedProperty( _nHandle ) )
|
|
|
|
{
|
|
|
|
bModified = FontControlModel::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
bModified = OControlModel::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
|
|
|
|
}
|
|
|
|
|
|
|
|
return bModified;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL ORichTextModel::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const Any& _rValue ) throw ( Exception, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
if ( isRegisteredProperty( _nHandle ) )
|
|
|
|
{
|
|
|
|
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
|
|
|
|
|
2008-12-16 13:30:53 +00:00
|
|
|
switch ( _nHandle )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2008-12-16 13:30:53 +00:00
|
|
|
case PROPERTY_ID_REFERENCE_DEVICE:
|
|
|
|
{
|
|
|
|
#if OSL_DEBUG_LEVEL > 0
|
2004-05-07 15:13:25 +00:00
|
|
|
MapMode aOldMapMode = m_pEngine->GetRefDevice()->GetMapMode();
|
2008-12-16 13:30:53 +00:00
|
|
|
#endif
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
OutputDevice* pRefDevice = VCLUnoHelper::GetOutputDevice( m_xReferenceDevice );
|
|
|
|
OSL_ENSURE( pRefDevice, "ORichTextModel::setFastPropertyValue_NoBroadcast: empty reference device?" );
|
|
|
|
m_pEngine->SetRefDevice( pRefDevice );
|
|
|
|
|
2008-12-16 13:30:53 +00:00
|
|
|
#if OSL_DEBUG_LEVEL > 0
|
2004-05-07 15:13:25 +00:00
|
|
|
MapMode aNewMapMode = m_pEngine->GetRefDevice()->GetMapMode();
|
|
|
|
OSL_ENSURE( aNewMapMode.GetMapUnit() == aOldMapMode.GetMapUnit(),
|
|
|
|
"ORichTextModel::setFastPropertyValue_NoBroadcast: You should not tamper with the MapUnit of the ref device!" );
|
|
|
|
// if this assertion here is triggered, then we would need to adjust all
|
|
|
|
// items in all text portions in all paragraphs in the attributes of the EditEngine,
|
|
|
|
// as long as they are MapUnit-dependent. This holds at least for the FontSize.
|
2008-12-16 13:30:53 +00:00
|
|
|
#endif
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
2008-12-16 13:30:53 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_TEXT:
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2006-10-24 14:11:29 +00:00
|
|
|
MutexRelease aReleaseMutex( m_aMutex );
|
2005-12-21 12:23:48 +00:00
|
|
|
impl_smlock_setEngineText( m_sLastKnownEngineText );
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
2008-12-16 13:30:53 +00:00
|
|
|
break;
|
|
|
|
} // switch ( _nHandle )
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
else if ( isFontRelatedProperty( _nHandle ) )
|
|
|
|
{
|
2013-11-27 17:08:22 +01:00
|
|
|
FontControlModel::setFastPropertyValue_NoBroadcast_impl(
|
|
|
|
*this, &ORichTextModel::setDependentFastPropertyValue,
|
|
|
|
_nHandle, _rValue);
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2008-12-16 13:30:53 +00:00
|
|
|
switch ( _nHandle )
|
|
|
|
{
|
|
|
|
case PROPERTY_ID_WRITING_MODE:
|
|
|
|
{
|
|
|
|
// forward to our aggregate, so the EditEngine knows about it
|
|
|
|
if ( m_xAggregateSet.is() )
|
|
|
|
m_xAggregateSet->setPropertyValue(
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString( "WritingMode" ), _rValue );
|
2008-12-16 13:30:53 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
OControlModel::setFastPropertyValue_NoBroadcast( _nHandle, _rValue );
|
|
|
|
break;
|
|
|
|
}
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
Any ORichTextModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const
|
|
|
|
{
|
|
|
|
Any aDefault;
|
|
|
|
|
|
|
|
switch ( _nHandle )
|
|
|
|
{
|
2008-12-16 13:30:53 +00:00
|
|
|
case PROPERTY_ID_WRITING_MODE:
|
|
|
|
case PROPERTY_ID_CONTEXT_WRITING_MODE:
|
|
|
|
aDefault <<= WritingMode2::CONTEXT;
|
|
|
|
break;
|
|
|
|
|
2004-10-22 10:42:08 +00:00
|
|
|
case PROPERTY_ID_LINEEND_FORMAT:
|
|
|
|
aDefault <<= (sal_Int16)LineEndFormat::LINE_FEED;
|
|
|
|
break;
|
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
case PROPERTY_ID_ECHO_CHAR:
|
|
|
|
case PROPERTY_ID_ALIGN:
|
|
|
|
case PROPERTY_ID_MAXTEXTLEN:
|
|
|
|
aDefault <<= (sal_Int16)0;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_TABSTOP:
|
|
|
|
case PROPERTY_ID_BACKGROUNDCOLOR:
|
2004-07-05 15:20:11 +00:00
|
|
|
case PROPERTY_ID_BORDERCOLOR:
|
2009-10-23 12:10:07 +02:00
|
|
|
case PROPERTY_ID_VERTICAL_ALIGN:
|
2004-05-07 15:13:25 +00:00
|
|
|
/* void */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_ENABLED:
|
CWS-TOOLING: integrate CWS dba32c
2009-06-29 20:53:25 +0200 fs r273484 : #i103138# Rectangle conversion
2009-06-29 20:51:50 +0200 fs r273483 : #i103138# yet more refactoring, now also setting the proper zoom level at the proper point in time
2009-06-29 13:40:26 +0200 fs r273470 : added svn:ignore to ignore output paths
2009-06-29 10:08:54 +0200 fs r273455 : #i103138#
refactored the code for positioning/zooming the control
Basically, we now allow adjustControlGeometry_throw (formerly known as positionControl_throw and setControlZoom) to
take an additional ViewTransformation parameter, describing the transformation to obtain the actual
control position/size. Consequently, positionControl itself also allows for a ViewTransformation parameter.
This has become necessary since during painting, the device which we created our control for might not necessarily
have a proper MapMode set. In this case, if we would use this map mode for calculating the control's position/size,
this would lead to wrong results.
Note that this problem was introduced by the fix for #i101398#: During the fix, we postponed the control creation
to a later time (when it is really needed). At this later time, the MapMode at the device is broken, at the earlier
time where we formerly crearted the control (createPrimitive2DSequence), it is not yet broken.
Whether or not the MapMode is defined as "broken" might depend on one's point of view, however ...
I consider it broken, since:
- we need the map mode to obtain the proper zoom level, which is to be forwarded to the control
- there are scenarios where the MapMode is *not* set to MAP_PIXEL (in those scenarios, everything works
fine), and there are scenarios where it *is* set to MAP_PIXEL (in those the bug 103138 appears).
It somehow feels wrong that one cannot rely on the device's map mode this way, but on the other hand
one has no possibility to obtain the current zoom by other means.
Note that one issue (still to be submitted) is left: In the page pane of a Draw/Impress document, controls
have a wrong text size. This is because in this pane, the above-mentioned "broken" map mode is used,
which means the controls have a zoom of "1:1" set, which is wrong here.
2009-06-25 13:41:35 +0200 msc r273380 : #100000# the tabs changed die to new properties
2009-06-24 12:42:40 +0200 msc r273330 : #102082# remove issue warning
2009-06-22 10:43:14 +0200 fs r273201 : createPrimitive2DSequence: care for being disposed
2009-06-18 12:35:13 +0200 oj r273109 : #i102305# make nooptfiles for gcc
2009-06-17 12:14:37 +0200 oj r273056 : #i102305# fix for linux
2009-06-17 07:20:22 +0200 oj r273046 : #i102305# move ValueTransfer into the for loop to avoid a crash under Linux
2009-06-17 07:17:28 +0200 oj r273045 : #i102305# use varchar
2009-06-15 14:11:27 +0200 fs r272983 : added since tag
2009-06-15 12:11:39 +0200 oj r272973 : #i102305# SAL_DLLPUBLIC_EXPORT inserted
2009-06-15 11:08:53 +0200 fs r272969 : #i10000#
2009-06-15 09:25:13 +0200 fs r272963 : merging fix for P1 issue #i102701#
2009-06-11 11:31:24 +0200 fs r272858 : #i10000# copied the fix which before the rebase was done in ../dialog/macropg.src
2009-06-11 09:38:14 +0200 fs r272846 : CWS-TOOLING: rebase CWS dba32c to trunk@272827 (milestone: DEV300:m50)
2009-06-02 09:53:10 +0200 fs r272483 : #i10000#
2009-05-29 15:55:03 +0200 fs r272465 : #i100818#
2009-05-29 12:58:43 +0200 fs r272452 : don't apply comphelper::getString on possibly VOID any
2009-05-29 10:38:35 +0200 oj r272437 : #i101519# handle where condition
2009-05-29 09:53:39 +0200 fs r272434 : #i100818# call into releaseStubs /without/ locked GlobalMutex
2009-05-28 07:53:44 +0200 oj r272375 : #i101369# parse tree changed
2009-05-27 14:53:36 +0200 fs r272347 : #i10000#
2009-05-27 09:29:15 +0200 oj r272327 : #i101626# check for double before hard cast
2009-05-27 09:13:58 +0200 oj r272326 : #i101626# handle void correctly
2009-05-27 08:04:39 +0200 oj r272321 : #i102256# wrong method signature used
2009-05-27 07:55:52 +0200 oj r272320 : #i101519# look up parameter typ if used in function
2009-05-27 06:49:07 +0200 oj r272319 : #i101519# set parameter from rowset as well
2009-05-26 13:30:56 +0200 oj r272297 : #i101987# impl XBatchExecution
2009-05-26 12:44:34 +0200 oj r272293 : #i101700# check if group is not set
2009-05-26 12:16:53 +0200 oj r272290 : #i101369# resolved some reduce7reduce problems with boolean_term and search_condition
2009-05-26 12:12:42 +0200 oj r272289 : #i101369# fix for or on one line criteria
2009-05-25 16:02:25 +0200 fs r272257 : #i999704# +PROPERTY_MOUSE_WHEEL_BEHAVIOR
2009-05-25 16:01:55 +0200 fs r272256 : merging the changes from CWS dba32b herein
2009-05-25 15:49:57 +0200 fs r272254 : #i999704#
2009-05-25 15:32:57 +0200 fs r272252 : #i99704# grid columns also to respect the MouseWheelBehavior property
2009-05-25 15:23:43 +0200 fs r272251 : don't pass empty Anys to ::comphelper::getString
2009-05-25 14:48:43 +0200 fs r272248 : merged changes from CWS dba32b herein
2009-05-25 14:44:40 +0200 fs r272247 : #i99704# support new MouseWheelBehavior property
2009-05-25 14:43:18 +0200 fs r272246 : #i99704# WheelWithoutFocus (peer property) superseded by MouseWheelBehavior (model property)
2009-05-25 14:41:03 +0200 fs r272245 : #i99704# no need to set the mouse wheel behavior at the peer, this is now a model property, having the right default
2009-05-25 14:39:31 +0200 fs r272243 : removed dead import
2009-05-25 14:35:36 +0200 fs r272242 : the new EnableVisible doesn't make sense for grid columns
2009-05-25 14:34:33 +0200 fs r272241 : #i99704# +MouseWheelBehavior - allow to enable/disable the mouse wheel for the control, or make it focus-dependent
2009-05-25 14:26:11 +0200 fs r272240 : #i99704# change MouseSettings wheel flag (NoWheelActionWithoutFocus) to a three-state option, allowing to completely ignore the mouse wheel
2009-05-23 21:35:59 +0200 fs r272213 : localize 'sub component opened/closed' event
2009-05-22 21:42:47 +0200 fs r272211 : #i102003#
2009-05-22 21:42:20 +0200 fs r272210 : grammar
2009-05-22 21:36:10 +0200 fs r272209 : #i102140# load only once, not twice, and show error messages during loading (and during any form action, that is) asynchronously
2009-05-22 21:35:11 +0200 fs r272208 : #i102140# +clear
2009-05-22 14:50:30 +0200 fs r272194 : #i102139# for newly created DB docs, set the MacroExecutionMode to USE_CONFIG
2009-05-22 12:03:42 +0200 fs r272180 : #i88878#
provided by noel.power@novell.com
implement a visibility property (EnableVisible) for toolkit controls, and usage in forms and UNO dialogs
2009-05-15 15:37:31 +0200 fs r271942 : #i100671# corrected some @since tags, so autodoc has better chances of correctly reading them
2009-05-15 15:33:11 +0200 fs r271940 : don't call comphelper::getFOO for VOID values
2009-05-15 15:08:31 +0200 fs r271937 : includes
2009-05-15 13:39:22 +0200 fs r271934 : #i101398# createPrimitive2DSequence: when we already have a control, use the old code. In particular, call positionControlForPaint
2009-05-15 12:33:48 +0200 fs r271933 : make the geometry a part of the ControlPrimitive2D's identity
2009-05-15 10:15:44 +0200 fs r271928 : #i10000#
2009-05-14 20:55:38 +0200 fs r271921 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:55:31 +0200 fs r271920 : #i101398# don't reuse the name PRIMITIVE_ID_CONTROLPRIMITIVE2D, make the name of our own ControlPrimitive2D unique
2009-05-14 20:23:23 +0200 fs r271919 : #i101622#
2009-05-14 16:04:38 +0200 fs r271898 : don't use comphelper::getInt32 on voids
2009-05-14 16:04:12 +0200 fs r271897 : merge fix for issue whose number just slipped my memory ... (originally fixed in CWS dba32b)
2009-05-14 15:36:55 +0200 fs r271895 : merging changes from DEV300:m48
2009-05-07 14:43:19 +0200 fs r271670 : #i101477#
2009-05-07 14:37:30 +0200 fs r271668 : #i101477#
2009-05-07 09:27:30 +0200 oj r271628 : #i101343# remove pch
2009-05-06 09:36:02 +0200 fs r271568 : getFoo: diagnostics
2009-05-04 09:23:06 +0200 oj r271438 : CWS-TOOLING: rebase CWS dba32c to trunk@271427 (milestone: DEV300:m47)
2009-04-29 23:18:13 +0200 fs r271394 : #i101398# use a dedicated 2DPrimitive for UNO Controls, which is able to provide the B2DRange *without* actually creating the control
2009-04-29 13:52:25 +0200 fs r271366 : #i101308#
2009-07-03 14:21:50 +00:00
|
|
|
case PROPERTY_ID_ENABLEVISIBLE:
|
2004-05-07 15:13:25 +00:00
|
|
|
case PROPERTY_ID_PRINTABLE:
|
2004-07-05 15:20:11 +00:00
|
|
|
case PROPERTY_ID_HIDEINACTIVESELECTION:
|
2014-05-06 12:37:38 +02:00
|
|
|
aDefault <<= true;
|
2004-05-07 15:13:25 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_HARDLINEBREAKS:
|
|
|
|
case PROPERTY_ID_HSCROLL:
|
|
|
|
case PROPERTY_ID_VSCROLL:
|
|
|
|
case PROPERTY_ID_READONLY:
|
|
|
|
case PROPERTY_ID_MULTILINE:
|
|
|
|
case PROPERTY_ID_RICH_TEXT:
|
2014-05-06 12:37:38 +02:00
|
|
|
aDefault <<= false;
|
2004-05-07 15:13:25 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_DEFAULTCONTROL:
|
2014-10-21 14:29:42 +02:00
|
|
|
aDefault <<= OUString(FRM_SUN_CONTROL_RICHTEXTCONTROL);
|
2004-05-07 15:13:25 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_HELPTEXT:
|
|
|
|
case PROPERTY_ID_HELPURL:
|
|
|
|
case PROPERTY_ID_TEXT:
|
2013-04-07 12:06:47 +02:00
|
|
|
aDefault <<= OUString();
|
2004-05-07 15:13:25 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PROPERTY_ID_BORDER:
|
|
|
|
aDefault <<= (sal_Int16)1;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
if ( isFontRelatedProperty( _nHandle ) )
|
|
|
|
aDefault = FontControlModel::getPropertyDefaultByHandle( _nHandle );
|
|
|
|
else
|
|
|
|
aDefault = OControlModel::getPropertyDefaultByHandle( _nHandle );
|
|
|
|
}
|
|
|
|
|
|
|
|
return aDefault;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
void ORichTextModel::impl_smlock_setEngineText( const OUString& _rText )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2007-07-06 08:56:54 +00:00
|
|
|
if ( m_pEngine.get() )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2010-10-13 04:35:41 -05:00
|
|
|
SolarMutexGuard aSolarGuard;
|
2004-05-07 15:13:25 +00:00
|
|
|
m_bSettingEngineText = true;
|
|
|
|
m_pEngine->SetText( _rText );
|
|
|
|
m_bSettingEngineText = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
OUString SAL_CALL ORichTextModel::getServiceName() throw ( RuntimeException, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2013-04-23 11:48:24 +02:00
|
|
|
return OUString(FRM_SUN_COMPONENT_RICHTEXTCONTROL);
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL ORichTextModel::write(const Reference< XObjectOutputStream >& _rxOutStream) throw ( IOException, RuntimeException, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
OControlModel::write( _rxOutStream );
|
|
|
|
// TODO: place your code here
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL ORichTextModel::read(const Reference< XObjectInputStream >& _rxInStream) throw ( IOException, RuntimeException, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
OControlModel::read( _rxInStream );
|
|
|
|
// TODO: place your code here
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
RichTextEngine* ORichTextModel::getEditEngine( const Reference< XControlModel >& _rxModel )
|
|
|
|
{
|
|
|
|
RichTextEngine* pEngine = NULL;
|
|
|
|
|
|
|
|
Reference< XUnoTunnel > xTunnel( _rxModel, UNO_QUERY );
|
|
|
|
OSL_ENSURE( xTunnel.is(), "ORichTextModel::getEditEngine: invalid model!" );
|
|
|
|
if ( xTunnel.is() )
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
pEngine = reinterpret_cast< RichTextEngine* >( xTunnel->getSomething( getEditEngineTunnelId() ) );
|
|
|
|
}
|
|
|
|
catch( const Exception& )
|
|
|
|
{
|
2011-03-19 14:06:18 +01:00
|
|
|
OSL_FAIL( "ORichTextModel::getEditEngine: caught an exception!" );
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return pEngine;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
Sequence< sal_Int8 > ORichTextModel::getEditEngineTunnelId()
|
|
|
|
{
|
|
|
|
static ::cppu::OImplementationId * pId = 0;
|
|
|
|
if (! pId)
|
|
|
|
{
|
|
|
|
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
|
|
|
|
if (! pId)
|
|
|
|
{
|
|
|
|
static ::cppu::OImplementationId aId;
|
|
|
|
pId = &aId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return pId->getImplementationId();
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-06-19 12:00:59 +00:00
|
|
|
IMPL_LINK( ORichTextModel, OnEngineContentModified, void*, /*_pNotInterestedIn*/ )
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
if ( !m_bSettingEngineText )
|
|
|
|
{
|
2006-06-19 12:00:59 +00:00
|
|
|
m_aModifyListeners.notifyEach( &XModifyListener::modified, EventObject( *this ) );
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
potentialTextChange();
|
|
|
|
// is this a good idea? It may become expensive in case of larger texts,
|
|
|
|
// and this method here is called for every single changed character ...
|
|
|
|
// On the other hand, the API *requires* us to notify changes in the "Text"
|
|
|
|
// property immediately ...
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0L;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
sal_Int64 SAL_CALL ORichTextModel::getSomething( const Sequence< sal_Int8 >& _rId ) throw (RuntimeException, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
|
|
|
Sequence< sal_Int8 > aEditEngineAccessId( getEditEngineTunnelId() );
|
|
|
|
if ( ( _rId.getLength() == aEditEngineAccessId.getLength() )
|
2012-09-29 14:47:11 +02:00
|
|
|
&& ( 0 == memcmp( aEditEngineAccessId.getConstArray(), _rId.getConstArray(), _rId.getLength() ) )
|
2004-05-07 15:13:25 +00:00
|
|
|
)
|
2007-07-06 08:56:54 +00:00
|
|
|
return reinterpret_cast< sal_Int64 >( m_pEngine.get() );
|
2004-05-07 15:13:25 +00:00
|
|
|
|
|
|
|
Reference< XUnoTunnel > xAggTunnel;
|
|
|
|
if ( query_aggregation( m_xAggregate, xAggTunnel ) )
|
|
|
|
return xAggTunnel->getSomething( _rId );
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL ORichTextModel::addModifyListener( const Reference< XModifyListener >& _rxListener ) throw (RuntimeException, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2006-06-19 12:00:59 +00:00
|
|
|
m_aModifyListeners.addInterface( _rxListener );
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL ORichTextModel::removeModifyListener( const Reference< XModifyListener >& _rxListener ) throw (RuntimeException, std::exception)
|
2004-05-07 15:13:25 +00:00
|
|
|
{
|
2006-06-19 12:00:59 +00:00
|
|
|
m_aModifyListeners.removeInterface( _rxListener );
|
2004-05-07 15:13:25 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
void ORichTextModel::potentialTextChange( )
|
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString sCurrentEngineText;
|
2007-07-06 08:56:54 +00:00
|
|
|
if ( m_pEngine.get() )
|
2004-05-07 15:13:25 +00:00
|
|
|
sCurrentEngineText = m_pEngine->GetText();
|
|
|
|
|
|
|
|
if ( sCurrentEngineText != m_sLastKnownEngineText )
|
|
|
|
{
|
|
|
|
sal_Int32 nHandle = PROPERTY_ID_TEXT;
|
|
|
|
Any aOldValue; aOldValue <<= m_sLastKnownEngineText;
|
|
|
|
Any aNewValue; aNewValue <<= sCurrentEngineText;
|
|
|
|
fire( &nHandle, &aNewValue, &aOldValue, 1, sal_False );
|
|
|
|
|
|
|
|
m_sLastKnownEngineText = sCurrentEngineText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2004-05-07 15:13:25 +00:00
|
|
|
} // namespace frm
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2010-10-12 15:57:08 +02:00
|
|
|
|
2015-02-12 14:10:24 +11:00
|
|
|
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
|
|
|
|
com_sun_star_comp_forms_ORichTextModel_get_implementation(css::uno::XComponentContext* context,
|
|
|
|
css::uno::Sequence<css::uno::Any> const &)
|
|
|
|
{
|
|
|
|
return cppu::acquire(new frm::ORichTextModel(context));
|
|
|
|
}
|
|
|
|
|
2010-10-12 15:57:08 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|