summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/textlayout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/textlayout.cxx')
-rw-r--r--canvas/source/vcl/textlayout.cxx41
1 files changed, 22 insertions, 19 deletions
diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx
index 19b0f7cea4ce..08cdd66abe00 100644
--- a/canvas/source/vcl/textlayout.cxx
+++ b/canvas/source/vcl/textlayout.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103,7 +104,7 @@ namespace vclcanvas
void SAL_CALL TextLayout::disposing()
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
mpOutDevProvider.reset();
mxDevice.clear();
@@ -113,7 +114,7 @@ namespace vclcanvas
// XTextLayout
uno::Sequence< uno::Reference< rendering::XPolyPolygon2D > > SAL_CALL TextLayout::queryTextShapes( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
OutputDevice& rOutDev = mpOutDevProvider->getOutDev();
VirtualDevice aVDev( rOutDev );
@@ -165,7 +166,7 @@ namespace vclcanvas
uno::Sequence< geometry::RealRectangle2D > SAL_CALL TextLayout::queryInkMeasures( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
OutputDevice& rOutDev = mpOutDevProvider->getOutDev();
@@ -217,7 +218,7 @@ namespace vclcanvas
uno::Sequence< geometry::RealRectangle2D > SAL_CALL TextLayout::queryMeasures( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
// TODO(F1)
return uno::Sequence< geometry::RealRectangle2D >();
@@ -225,14 +226,14 @@ namespace vclcanvas
uno::Sequence< double > SAL_CALL TextLayout::queryLogicalAdvancements( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
return maLogicalAdvancements;
}
void SAL_CALL TextLayout::applyLogicalAdvancements( const uno::Sequence< double >& aAdvancements ) throw (lang::IllegalArgumentException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
ENSURE_ARG_OR_THROW( aAdvancements.getLength() == maText.Length,
"TextLayout::applyLogicalAdvancements(): mismatching number of advancements" );
@@ -242,7 +243,7 @@ namespace vclcanvas
geometry::RealRectangle2D SAL_CALL TextLayout::queryTextBounds( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
if( !mpOutDevProvider )
return geometry::RealRectangle2D();
@@ -280,7 +281,7 @@ namespace vclcanvas
double SAL_CALL TextLayout::justify( double nSize ) throw (lang::IllegalArgumentException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)nSize;
@@ -291,7 +292,7 @@ namespace vclcanvas
double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& aNextLayouts,
double nSize ) throw (lang::IllegalArgumentException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)aNextLayouts;
(void)nSize;
@@ -302,7 +303,7 @@ namespace vclcanvas
rendering::TextHit SAL_CALL TextLayout::getTextHit( const geometry::RealPoint2D& aHitPoint ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)aHitPoint;
@@ -312,7 +313,7 @@ namespace vclcanvas
rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 nInsertionIndex, sal_Bool bExcludeLigatures ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)nInsertionIndex;
(void)bExcludeLigatures;
@@ -323,7 +324,7 @@ namespace vclcanvas
sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 nStartIndex, sal_Int32 nCaretAdvancement, sal_Bool bExcludeLigatures ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)nStartIndex;
(void)nCaretAdvancement;
@@ -335,7 +336,7 @@ namespace vclcanvas
uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)nStartIndex;
(void)nEndIndex;
@@ -346,7 +347,7 @@ namespace vclcanvas
uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
(void)nStartIndex;
(void)nEndIndex;
@@ -357,7 +358,7 @@ namespace vclcanvas
double SAL_CALL TextLayout::getBaselineOffset( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
// TODO(F1)
return 0.0;
@@ -365,21 +366,21 @@ namespace vclcanvas
sal_Int8 SAL_CALL TextLayout::getMainTextDirection( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
return mnTextDirection;
}
uno::Reference< rendering::XCanvasFont > SAL_CALL TextLayout::getFont( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
return mpFont.getRef();
}
rendering::StringContext SAL_CALL TextLayout::getText( ) throw (uno::RuntimeException)
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
return maText;
}
@@ -389,7 +390,7 @@ namespace vclcanvas
const rendering::ViewState& viewState,
const rendering::RenderState& renderState ) const
{
- tools::LocalGuard aGuard;
+ SolarMutexGuard aGuard;
setupLayoutMode( rOutDev, mnTextDirection );
@@ -494,3 +495,5 @@ namespace vclcanvas
return aRet;
}
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */