Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f02e6d3d
Kaydet (Commit)
f02e6d3d
authored
Mar 19, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use SolarMutexGuard directly
Change-Id: Id6421432be5b9220463a9b5be38b215e1e3b7563
üst
3037f4d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
16 deletions
+8
-16
imagesdocumenthandler.hxx
framework/inc/xml/imagesdocumenthandler.hxx
+2
-4
imagesdocumenthandler.cxx
framework/source/xml/imagesdocumenthandler.cxx
+6
-12
No files found.
framework/inc/xml/imagesdocumenthandler.hxx
Dosyayı görüntüle @
f02e6d3d
...
...
@@ -25,7 +25,6 @@
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <xml/imagesconfiguration.hxx>
#include <threadhelp/threadhelpbase.hxx>
#include <rtl/ustring.hxx>
#include <cppuhelper/implbase1.hxx>
...
...
@@ -37,8 +36,7 @@ namespace framework{
// Hash code function for using in all hash maps of follow implementation.
class
OReadImagesDocumentHandler
:
private
ThreadHelpBase
,
// Struct for right initalization of lock member! Must be first of baseclasses.
public
::
cppu
::
WeakImplHelper1
<
::
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>
class
OReadImagesDocumentHandler
:
public
::
cppu
::
WeakImplHelper1
<
::
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>
{
public
:
enum
Image_XML_Entry
...
...
@@ -140,7 +138,7 @@ class OReadImagesDocumentHandler : private ThreadHelpBase, // Struct for right
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XLocator
>
m_xLocator
;
};
class
OWriteImagesDocumentHandler
:
private
ThreadHelpBase
// Struct for right initalization of lock member! Must be first of baseclasses.
class
OWriteImagesDocumentHandler
{
public
:
OWriteImagesDocumentHandler
(
...
...
framework/source/xml/imagesdocumenthandler.cxx
Dosyayı görüntüle @
f02e6d3d
...
...
@@ -20,7 +20,6 @@
#include <stdio.h>
#include <threadhelp/guard.hxx>
#include <xml/imagesdocumenthandler.hxx>
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
...
...
@@ -102,7 +101,6 @@ ImageXMLEntryProperty ImagesEntries[OReadImagesDocumentHandler::IMG_XML_ENTRY_CO
OReadImagesDocumentHandler
::
OReadImagesDocumentHandler
(
ImageListsDescriptor
&
aItems
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
()
),
m_aImageList
(
aItems
),
m_pImages
(
0
),
m_pExternalImages
(
0
)
...
...
@@ -152,7 +150,7 @@ throw ( SAXException, RuntimeException, std::exception )
void
SAL_CALL
OReadImagesDocumentHandler
::
endDocument
(
void
)
throw
(
SAXException
,
RuntimeException
,
std
::
exception
)
{
Guard
aGuard
(
m_aLock
)
;
SolarMutexGuard
g
;
if
((
m_bImageContainerStartFound
&&
!
m_bImageContainerEndFound
)
||
(
!
m_bImageContainerStartFound
&&
m_bImageContainerEndFound
)
)
...
...
@@ -169,7 +167,7 @@ void SAL_CALL OReadImagesDocumentHandler::startElement(
RuntimeException
,
std
::
exception
)
{
Guard
aGuard
(
m_aLock
)
;
SolarMutexGuard
g
;
ImageHashMap
::
const_iterator
pImageEntry
=
m_aImageMap
.
find
(
aName
)
;
if
(
pImageEntry
!=
m_aImageMap
.
end
()
)
...
...
@@ -503,7 +501,7 @@ void SAL_CALL OReadImagesDocumentHandler::endElement(const OUString& aName)
RuntimeException
,
std
::
exception
)
{
Guard
aGuard
(
m_aLock
)
;
SolarMutexGuard
g
;
ImageHashMap
::
const_iterator
pImageEntry
=
m_aImageMap
.
find
(
aName
)
;
if
(
pImageEntry
!=
m_aImageMap
.
end
()
)
...
...
@@ -579,16 +577,13 @@ void SAL_CALL OReadImagesDocumentHandler::setDocumentLocator(
const
Reference
<
XLocator
>
&
xLocator
)
throw
(
SAXException
,
RuntimeException
,
std
::
exception
)
{
Guard
aGuard
(
m_aLock
);
SolarMutexGuard
g
;
m_xLocator
=
xLocator
;
}
OUString
OReadImagesDocumentHandler
::
getErrorLineString
()
{
Guard
aGuard
(
m_aLock
);
SolarMutexGuard
g
;
if
(
m_xLocator
.
is
()
)
{
OUStringBuffer
buffer
(
"Line: "
);
...
...
@@ -608,7 +603,6 @@ OUString OReadImagesDocumentHandler::getErrorLineString()
OWriteImagesDocumentHandler
::
OWriteImagesDocumentHandler
(
const
ImageListsDescriptor
&
aItems
,
Reference
<
XDocumentHandler
>
rWriteDocumentHandler
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
()
),
m_aImageListsItems
(
aItems
),
m_xWriteDocumentHandler
(
rWriteDocumentHandler
)
{
...
...
@@ -628,7 +622,7 @@ OWriteImagesDocumentHandler::~OWriteImagesDocumentHandler()
void
OWriteImagesDocumentHandler
::
WriteImagesDocument
()
throw
(
SAXException
,
RuntimeException
)
{
Guard
aGuard
(
m_aLock
)
;
SolarMutexGuard
g
;
m_xWriteDocumentHandler
->
startDocument
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment