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
e89b0abf
Kaydet (Commit)
e89b0abf
authored
Eki 01, 2010
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Port binfilter crash-on-exit fix ...
üst
f410283f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
67 deletions
+15
-67
unoprov.hxx
svx/inc/svx/unoprov.hxx
+5
-21
unomod.cxx
svx/source/unodraw/unomod.cxx
+5
-28
unopage.cxx
svx/source/unodraw/unopage.cxx
+1
-1
unoprov.cxx
svx/source/unodraw/unoprov.cxx
+0
-0
unoshape.cxx
svx/source/unodraw/unoshape.cxx
+4
-17
No files found.
svx/inc/svx/unoprov.hxx
Dosyayı görüntüle @
e89b0abf
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#define SVX_UNOPROV_HXX
#define SVX_UNOPROV_HXX
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <svl/itemprop.hxx>
#include <svl/itemprop.hxx>
#include <tools/list.hxx>
#include <tools/list.hxx>
#include "svx/svxdllapi.h"
#include "svx/svxdllapi.h"
...
@@ -40,29 +41,14 @@ class SfxItemPool;
...
@@ -40,29 +41,14 @@ class SfxItemPool;
* class UHashMap *
* class UHashMap *
***********************************************************************/
***********************************************************************/
struct
UHashMapEntry
{
::
rtl
::
OUString
aIdentifier
;
UINT32
nId
;
UHashMapEntry
(
const
sal_Char
*
value
,
sal_Int32
length
,
UINT32
_nId
)
:
aIdentifier
(
value
,
length
,
RTL_TEXTENCODING_ASCII_US
),
nId
(
_nId
)
{
}
};
DECLARE_LIST
(
UHashMapEntryList
,
UHashMapEntry
*
)
#define HASHARRAYSIZE 0x10
#define UHASHMAP_NOTFOUND sal::static_int_cast< UINT32 >(~0)
#define UHASHMAP_NOTFOUND sal::static_int_cast< UINT32 >(~0)
class
UHashMap
class
UHashMap
{
{
private
:
UHashMap
()
{}
UHashMapEntryList
m_aHashList
[
HASHARRAYSIZE
];
public
:
public
:
UHashMap
(
UHashMapEntry
*
pMap
);
static
sal_uInt32
getId
(
const
::
rtl
::
OUString
&
rCompareString
);
~
UHashMap
()
{};
static
rtl
::
OUString
getNameFromId
(
sal_uInt32
nId
);
static
::
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
getServiceNames
();
UINT32
getId
(
const
::
rtl
::
OUString
&
rCompareString
);
};
};
/***********************************************************************
/***********************************************************************
...
@@ -119,8 +105,6 @@ const sal_Int16 OBJ_OLE2_APPLET = 100;
...
@@ -119,8 +105,6 @@ const sal_Int16 OBJ_OLE2_APPLET = 100;
const
sal_Int16
OBJ_OLE2_PLUGIN
=
101
;
const
sal_Int16
OBJ_OLE2_PLUGIN
=
101
;
extern
SvxUnoPropertyMapProvider
aSvxMapProvider
;
extern
SvxUnoPropertyMapProvider
aSvxMapProvider
;
extern
UHashMapEntry
pSdrShapeIdentifierMap
[];
extern
UHashMap
aSdrShapeIdentifierMap
;
#define E3D_INVENTOR_FLAG (0x80000000)
#define E3D_INVENTOR_FLAG (0x80000000)
...
...
svx/source/unodraw/unomod.cxx
Dosyayı görüntüle @
e89b0abf
...
@@ -62,8 +62,6 @@
...
@@ -62,8 +62,6 @@
#include <svx/svdpage.hxx>
#include <svx/svdpage.hxx>
#include <svx/unoshape.hxx>
#include <svx/unoshape.hxx>
extern
UHashMapEntry
pSdrShapeIdentifierMap
[];
//-////////////////////////////////////////////////////////////////////
//-////////////////////////////////////////////////////////////////////
using
namespace
::
rtl
;
using
namespace
::
rtl
;
...
@@ -185,14 +183,14 @@ sal_Bool SvxUnoDrawMSFactory::createEvent( const SdrModel* pDoc, const SdrHint*
...
@@ -185,14 +183,14 @@ sal_Bool SvxUnoDrawMSFactory::createEvent( const SdrModel* pDoc, const SdrHint*
return
sal_True
;
return
sal_True
;
}
}
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
SvxUnoDrawMSFactory
::
createInstance
(
const
OUString
&
ServiceSpecifier
)
uno
::
Reference
<
uno
::
XInterface
>
SAL_CALL
SvxUnoDrawMSFactory
::
createInstance
(
const
OUString
&
r
ServiceSpecifier
)
throw
(
uno
::
Exception
,
uno
::
RuntimeException
)
throw
(
uno
::
Exception
,
uno
::
RuntimeException
)
{
{
const
OUString
aDrawingPrefix
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.drawing."
)
);
const
OUString
aDrawingPrefix
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.drawing."
)
);
if
(
ServiceSpecifier
.
compareTo
(
aDrawingPrefix
,
aDrawingPrefix
.
getLength
()
)
==
0
)
if
(
r
ServiceSpecifier
.
compareTo
(
aDrawingPrefix
,
aDrawingPrefix
.
getLength
()
)
==
0
)
{
{
UINT32
nType
=
aSdrShapeIdentifierMap
.
getId
(
ServiceSpecifier
);
sal_uInt32
nType
=
UHashMap
::
getId
(
r
ServiceSpecifier
);
if
(
nType
!=
UHASHMAP_NOTFOUND
)
if
(
nType
!=
UHASHMAP_NOTFOUND
)
{
{
UINT16
nT
=
(
UINT16
)(
nType
&
~
E3D_INVENTOR_FLAG
);
UINT16
nT
=
(
UINT16
)(
nType
&
~
E3D_INVENTOR_FLAG
);
...
@@ -202,7 +200,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawMSFactory::createInstance(
...
@@ -202,7 +200,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawMSFactory::createInstance(
}
}
}
}
uno
::
Reference
<
uno
::
XInterface
>
xRet
(
createTextField
(
ServiceSpecifier
)
);
uno
::
Reference
<
uno
::
XInterface
>
xRet
(
createTextField
(
r
ServiceSpecifier
)
);
if
(
!
xRet
.
is
()
)
if
(
!
xRet
.
is
()
)
throw
lang
::
ServiceNotRegisteredException
();
throw
lang
::
ServiceNotRegisteredException
();
...
@@ -223,28 +221,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawMSFactory::createInstanceWi
...
@@ -223,28 +221,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawMSFactory::createInstanceWi
uno
::
Sequence
<
OUString
>
SAL_CALL
SvxUnoDrawMSFactory
::
getAvailableServiceNames
()
uno
::
Sequence
<
OUString
>
SAL_CALL
SvxUnoDrawMSFactory
::
getAvailableServiceNames
()
throw
(
uno
::
RuntimeException
)
throw
(
uno
::
RuntimeException
)
{
{
UHashMapEntry
*
pMap
=
pSdrShapeIdentifierMap
;
return
UHashMap
::
getServiceNames
();
UINT32
nCount
=
0
;
while
(
pMap
->
aIdentifier
.
getLength
())
{
pMap
++
;
nCount
++
;
}
uno
::
Sequence
<
OUString
>
aSeq
(
nCount
);
OUString
*
pStrings
=
aSeq
.
getArray
();
pMap
=
pSdrShapeIdentifierMap
;
UINT32
nIdx
=
0
;
while
(
pMap
->
aIdentifier
.
getLength
())
{
pStrings
[
nIdx
]
=
pMap
->
aIdentifier
;
pMap
++
;
nIdx
++
;
}
return
aSeq
;
}
}
uno
::
Sequence
<
OUString
>
SvxUnoDrawMSFactory
::
concatServiceNames
(
uno
::
Sequence
<
OUString
>&
rServices1
,
uno
::
Sequence
<
OUString
>&
rServices2
)
throw
()
uno
::
Sequence
<
OUString
>
SvxUnoDrawMSFactory
::
concatServiceNames
(
uno
::
Sequence
<
OUString
>&
rServices1
,
uno
::
Sequence
<
OUString
>&
rServices2
)
throw
()
...
...
svx/source/unodraw/unopage.cxx
Dosyayı görüntüle @
e89b0abf
...
@@ -650,7 +650,7 @@ SdrObject *SvxDrawPage::_CreateSdrObject( const Reference< drawing::XShape > & x
...
@@ -650,7 +650,7 @@ SdrObject *SvxDrawPage::_CreateSdrObject( const Reference< drawing::XShape > & x
//----------------------------------------------------------------------
//----------------------------------------------------------------------
void
SvxDrawPage
::
GetTypeAndInventor
(
sal_uInt16
&
rType
,
sal_uInt32
&
rInventor
,
const
OUString
&
aName
)
const
throw
()
void
SvxDrawPage
::
GetTypeAndInventor
(
sal_uInt16
&
rType
,
sal_uInt32
&
rInventor
,
const
OUString
&
aName
)
const
throw
()
{
{
sal_uInt32
nTempType
=
aSdrShapeIdentifierMap
.
getId
(
aName
);
sal_uInt32
nTempType
=
UHashMap
::
getId
(
aName
);
if
(
nTempType
==
UHASHMAP_NOTFOUND
)
if
(
nTempType
==
UHASHMAP_NOTFOUND
)
{
{
...
...
svx/source/unodraw/unoprov.cxx
Dosyayı görüntüle @
e89b0abf
This diff is collapsed.
Click to expand it.
svx/source/unodraw/unoshape.cxx
Dosyayı görüntüle @
e89b0abf
...
@@ -1385,23 +1385,10 @@ void SAL_CALL SvxShape::setName( const ::rtl::OUString& aName ) throw(::com::sun
...
@@ -1385,23 +1385,10 @@ void SAL_CALL SvxShape::setName( const ::rtl::OUString& aName ) throw(::com::sun
//----------------------------------------------------------------------
//----------------------------------------------------------------------
OUString
SAL_CALL
SvxShape
::
getShapeType
()
throw
(
uno
::
RuntimeException
)
OUString
SAL_CALL
SvxShape
::
getShapeType
()
throw
(
uno
::
RuntimeException
)
{
{
if
(
0
==
maShapeType
.
getLength
()
)
if
(
!
aShapeType
.
getLength
()
)
{
return
UHashMap
::
getNameFromId
(
mpImpl
->
mnObjId
);
UHashMapEntry
*
pMap
=
pSdrShapeIdentifierMap
;
else
while
(
(
pMap
->
nId
!=
mpImpl
->
mnObjId
)
&&
pMap
->
aIdentifier
.
getLength
()
)
return
maShapeType
;
++
pMap
;
if
(
pMap
->
aIdentifier
.
getLength
()
)
{
return
pMap
->
aIdentifier
;
}
else
{
DBG_ERROR
(
"[CL] unknown SdrObjekt identifier"
);
}
}
return
maShapeType
;
}
}
// XComponent
// XComponent
...
...
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