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
c566814e
Kaydet (Commit)
c566814e
authored
Eyl 23, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove TokenMap::getUnicodeTokenName()
Change-Id: I778dc43085b6afbb6456cbf53fe8c95b624b75b3
üst
9703cc63
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
25 deletions
+15
-25
tokenmap.hxx
include/oox/token/tokenmap.hxx
+0
-3
customshapeproperties.hxx
oox/inc/drawingml/customshapeproperties.hxx
+1
-1
customshapeproperties.cxx
oox/source/drawingml/customshapeproperties.cxx
+3
-3
shape.cxx
oox/source/drawingml/shape.cxx
+5
-1
importutils.cxx
oox/source/mathml/importutils.cxx
+6
-5
tokenmap.cxx
oox/source/token/tokenmap.cxx
+0
-12
No files found.
include/oox/token/tokenmap.hxx
Dosyayı görüntüle @
c566814e
...
...
@@ -35,9 +35,6 @@ public:
explicit
TokenMap
();
~
TokenMap
();
/** Returns the Unicode name of the passed token identifier. */
OUString
getUnicodeTokenName
(
sal_Int32
nToken
)
const
;
/** Returns the token identifier for the passed Unicode token name. */
sal_Int32
getTokenFromUnicode
(
const
OUString
&
rUnicodeName
)
const
;
...
...
oox/inc/drawingml/customshapeproperties.hxx
Dosyayı görüntüle @
c566814e
...
...
@@ -116,7 +116,7 @@ public:
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>
&
xShape
,
const
::
com
::
sun
::
star
::
awt
::
Size
&
aSize
);
sal_Int32
getShapePresetType
()
const
{
return
mnShapePresetType
;
}
OUString
getShapePresetTypeName
()
const
;
css
::
uno
::
Sequence
<
sal_Int8
>
getShapePresetTypeName
()
const
;
void
setShapePresetType
(
sal_Int32
nShapePresetType
){
mnShapePresetType
=
nShapePresetType
;
};
bool
getShapeTypeOverride
(){
return
mbShapeTypeOverride
;
};
void
setShapeTypeOverride
(
bool
bShapeTypeOverride
)
{
mbShapeTypeOverride
=
bShapeTypeOverride
;
};
...
...
oox/source/drawingml/customshapeproperties.cxx
Dosyayı görüntüle @
c566814e
...
...
@@ -56,9 +56,9 @@ CustomShapeProperties::~CustomShapeProperties()
{
}
OUString
CustomShapeProperties
::
getShapePresetTypeName
()
const
uno
::
Sequence
<
sal_Int8
>
CustomShapeProperties
::
getShapePresetTypeName
()
const
{
return
StaticTokenMap
::
get
().
getU
nicode
TokenName
(
mnShapePresetType
);
return
StaticTokenMap
::
get
().
getU
tf8
TokenName
(
mnShapePresetType
);
}
sal_Int32
CustomShapeProperties
::
SetCustomShapeGuideValue
(
std
::
vector
<
CustomShapeGuide
>&
rGuideList
,
const
CustomShapeGuide
&
rGuide
)
...
...
@@ -136,7 +136,7 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi
}
else
if
(
maPresetDataMap
.
find
(
mnShapePresetType
)
!=
maPresetDataMap
.
end
())
{
OSL_TRACE
(
"found property map for preset: %
s (%d)"
,
USS
(
getShapePresetTypeName
())
,
mnShapePresetType
);
OSL_TRACE
(
"found property map for preset: %
d"
,
mnShapePresetType
);
aPropertyMap
=
maPresetDataMap
[
mnShapePresetType
];
#ifdef DEBUG
...
...
oox/source/drawingml/shape.cxx
Dosyayı görüntüle @
c566814e
...
...
@@ -678,7 +678,11 @@ Reference< XShape > Shape::createAndInsert(
sal_Int32
length
=
aGrabBag
.
getLength
();
aGrabBag
.
realloc
(
length
+
1
);
aGrabBag
[
length
].
Name
=
"mso-orig-shape-type"
;
aGrabBag
[
length
].
Value
=
uno
::
makeAny
(
mpCustomShapePropertiesPtr
->
getShapePresetTypeName
());
const
uno
::
Sequence
<
sal_Int8
>
aNameSeq
=
mpCustomShapePropertiesPtr
->
getShapePresetTypeName
();
OUString
sShapePresetTypeName
(
reinterpret_cast
<
const
char
*
>
(
aNameSeq
.
getConstArray
()),
aNameSeq
.
getLength
(),
RTL_TEXTENCODING_UTF8
);
aGrabBag
[
length
].
Value
=
uno
::
makeAny
(
sShapePresetTypeName
);
propertySet
->
setPropertyValue
(
"FrameInteropGrabBag"
,
uno
::
makeAny
(
aGrabBag
));
}
//If the text box has links then save the link information so that
...
...
oox/source/mathml/importutils.cxx
Dosyayı görüntüle @
c566814e
...
...
@@ -55,17 +55,18 @@ AttributeListBuilder::AttributeListBuilder( const uno::Reference< xml::sax::XFas
}
}
static
O
U
String
tokenToString
(
int
token
)
static
OString
tokenToString
(
int
token
)
{
OUString
tokenname
=
StaticTokenMap
::
get
().
getUnicodeTokenName
(
token
&
TOKEN_MASK
);
const
uno
::
Sequence
<
sal_Int8
>
aTokenNameSeq
=
StaticTokenMap
::
get
().
getUtf8TokenName
(
token
&
TOKEN_MASK
);
OString
tokenname
(
reinterpret_cast
<
const
char
*
>
(
aTokenNameSeq
.
getConstArray
()
),
aTokenNameSeq
.
getLength
()
);
if
(
tokenname
.
isEmpty
())
tokenname
=
"???"
;
int
nmsp
=
(
token
&
NMSP_MASK
&
~
(
TAG_OPENING
|
TAG_CLOSING
));
#if 0 // this is awfully long
O
U
String namespacename = StaticNamespaceMap::get().count( nmsp ) != 0
? StaticNamespaceMap::get()[ nmsp ] : O
U
String( "???" );
OString namespacename = StaticNamespaceMap::get().count( nmsp ) != 0
? StaticNamespaceMap::get()[ nmsp ] : OString( "???" );
#else
O
U
String
namespacename
;
OString
namespacename
;
// only few are needed actually
switch
(
nmsp
)
{
...
...
oox/source/token/tokenmap.cxx
Dosyayı görüntüle @
c566814e
...
...
@@ -73,18 +73,6 @@ TokenMap::~TokenMap()
{
}
OUString
TokenMap
::
getUnicodeTokenName
(
sal_Int32
nToken
)
const
{
Sequence
<
sal_Int8
>
rUtf8Name
=
getUtf8TokenName
(
nToken
);
if
(
rUtf8Name
.
getLength
()
==
0
)
return
OUString
();
return
OUString
(
reinterpret_cast
<
const
char
*
>
(
rUtf8Name
.
getConstArray
()
),
rUtf8Name
.
getLength
(),
RTL_TEXTENCODING_UTF8
);
}
sal_Int32
TokenMap
::
getTokenFromUnicode
(
const
OUString
&
rUnicodeName
)
const
{
OString
aUtf8Name
=
OUStringToOString
(
rUnicodeName
,
RTL_TEXTENCODING_UTF8
);
...
...
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