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
f461a9b0
Kaydet (Commit)
f461a9b0
authored
Ock 24, 2011
tarafından
Joseph Powers
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove DECLARE_LIST( XMLAttributeList, XMLAttribute * )
üst
5be744ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
xmlparse.hxx
l10ntools/inc/xmlparse.hxx
+1
-2
layoutparse.cxx
l10ntools/layout/layoutparse.cxx
+5
-5
tralay.cxx
l10ntools/layout/tralay.cxx
+14
-4
xmlparse.cxx
l10ntools/source/xmlparse.cxx
+0
-0
No files found.
l10ntools/inc/xmlparse.hxx
Dosyayı görüntüle @
f461a9b0
...
@@ -64,7 +64,6 @@ using namespace std;
...
@@ -64,7 +64,6 @@ using namespace std;
#define MAX_LANGUAGES 99
#define MAX_LANGUAGES 99
//#define TESTDRIVER /* use xml2gsi testclass */
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
/** Holds data of Attributes
/** Holds data of Attributes
...
@@ -96,7 +95,7 @@ public:
...
@@ -96,7 +95,7 @@ public:
}
}
};
};
DECLARE_LIST
(
XMLAttributeList
,
XMLAttribute
*
)
typedef
::
std
::
vector
<
XMLAttribute
*
>
XMLAttributeList
;
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
...
...
l10ntools/layout/layoutparse.cxx
Dosyayı görüntüle @
f461a9b0
...
@@ -57,11 +57,11 @@ interestingAttributes( XMLAttributeList* lst )
...
@@ -57,11 +57,11 @@ interestingAttributes( XMLAttributeList* lst )
{
{
std
::
vector
<
XMLAttribute
*>
interesting
;
std
::
vector
<
XMLAttribute
*>
interesting
;
if
(
lst
)
if
(
lst
)
for
(
ULONG
i
=
0
;
i
<
lst
->
Count
();
i
++
)
for
(
size_t
i
=
0
;
i
<
lst
->
size
();
i
++
)
if
(
lst
->
GetObject
(
i
)
->
Equals
(
STRING
(
"id"
)
)
)
if
(
(
*
lst
)[
i
]
->
Equals
(
STRING
(
"id"
)
)
)
interesting
.
insert
(
interesting
.
begin
(),
lst
->
GetObject
(
i
)
);
interesting
.
insert
(
interesting
.
begin
(),
(
*
lst
)[
i
]
);
else
if
(
!
BSTRING
(
*
lst
->
GetObject
(
i
)
).
CompareTo
(
"_"
,
1
)
)
else
if
(
!
BSTRING
(
*
(
*
lst
)[
i
]
).
CompareTo
(
"_"
,
1
)
)
interesting
.
push_back
(
lst
->
GetObject
(
i
)
);
interesting
.
push_back
(
(
*
lst
)[
i
]
);
return
interesting
;
return
interesting
;
}
}
...
...
l10ntools/layout/tralay.cxx
Dosyayı görüntüle @
f461a9b0
...
@@ -166,9 +166,9 @@ void TranslateLayout::ParseCommandLine()
...
@@ -166,9 +166,9 @@ void TranslateLayout::ParseCommandLine()
static
XMLAttribute
*
static
XMLAttribute
*
findAttribute
(
XMLAttributeList
*
lst
,
String
const
&
name
)
findAttribute
(
XMLAttributeList
*
lst
,
String
const
&
name
)
{
{
for
(
ULONG
i
=
0
;
i
<
lst
->
Count
();
i
++
)
for
(
size_t
i
=
0
;
i
<
lst
->
size
();
i
++
)
if
(
lst
->
GetObject
(
i
)
->
Equals
(
name
)
)
if
(
(
*
lst
)[
i
]
->
Equals
(
name
)
)
return
lst
->
GetObject
(
i
)
;
return
(
*
lst
)[
i
]
;
return
0
;
return
0
;
}
}
...
@@ -177,7 +177,17 @@ translateAttribute( XMLAttributeList* lst,
...
@@ -177,7 +177,17 @@ translateAttribute( XMLAttributeList* lst,
String
const
&
name
,
String
const
&
translation
)
String
const
&
name
,
String
const
&
translation
)
{
{
if
(
XMLAttribute
*
a
=
findAttribute
(
lst
,
name
)
)
if
(
XMLAttribute
*
a
=
findAttribute
(
lst
,
name
)
)
return
lst
->
Replace
(
new
XMLAttribute
(
name
.
Copy
(
1
),
translation
),
a
);
{
for
(
XMLAttributeList
::
iterator
it
=
lst
->
begin
();
it
<
lst
->
end
();
++
it
)
{
if
(
*
it
==
a
)
{
delete
*
it
;
*
it
=
new
XMLAttribute
(
name
.
Copy
(
1
),
translation
);
return
*
it
;
}
}
}
return
0
;
return
0
;
}
}
...
...
l10ntools/source/xmlparse.cxx
Dosyayı görüntüle @
f461a9b0
This diff is collapsed.
Click to expand it.
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