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
aeeef71b
Kaydet (Commit)
aeeef71b
authored
Kas 11, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svtools: boost::ptr_vector->std::vector
Change-Id: If03ab05ff90585285063705bf56527c6138e22fd
üst
f6a4b3df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
fontsubstconfig.hxx
include/svtools/fontsubstconfig.hxx
+2
-2
fontsubstconfig.cxx
svtools/source/config/fontsubstconfig.cxx
+9
-9
No files found.
include/svtools/fontsubstconfig.hxx
Dosyayı görüntüle @
aeeef71b
...
@@ -27,8 +27,8 @@ struct SvtFontSubstConfig_Impl;
...
@@ -27,8 +27,8 @@ struct SvtFontSubstConfig_Impl;
struct
SubstitutionStruct
struct
SubstitutionStruct
{
{
OUString
sFont
;
OUString
sFont
;
OUString
sReplaceBy
;
OUString
sReplaceBy
;
bool
bReplaceAlways
;
bool
bReplaceAlways
;
bool
bReplaceOnScreenOnly
;
bool
bReplaceOnScreenOnly
;
};
};
...
...
svtools/source/config/fontsubstconfig.cxx
Dosyayı görüntüle @
aeeef71b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include <tools/debug.hxx>
#include <tools/debug.hxx>
#include <vcl/outdev.hxx>
#include <vcl/outdev.hxx>
#include <
boost/ptr_container/ptr_vector.hpp
>
#include <
vector
>
using
namespace
utl
;
using
namespace
utl
;
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
...
@@ -40,7 +40,7 @@ const sal_Char cSubstituteFont[]= "SubstituteFont";
...
@@ -40,7 +40,7 @@ const sal_Char cSubstituteFont[]= "SubstituteFont";
const
sal_Char
cOnScreenOnly
[]
=
"OnScreenOnly"
;
const
sal_Char
cOnScreenOnly
[]
=
"OnScreenOnly"
;
const
sal_Char
cAlways
[]
=
"Always"
;
const
sal_Char
cAlways
[]
=
"Always"
;
typedef
boost
::
ptr_
vector
<
SubstitutionStruct
>
SubstitutionStructArr
;
typedef
std
::
vector
<
SubstitutionStruct
>
SubstitutionStructArr
;
struct
SvtFontSubstConfig_Impl
struct
SvtFontSubstConfig_Impl
{
{
...
@@ -80,12 +80,12 @@ SvtFontSubstConfig::SvtFontSubstConfig() :
...
@@ -80,12 +80,12 @@ SvtFontSubstConfig::SvtFontSubstConfig() :
nName
=
0
;
nName
=
0
;
for
(
nNode
=
0
;
nNode
<
aNodeNames
.
getLength
();
nNode
++
)
for
(
nNode
=
0
;
nNode
<
aNodeNames
.
getLength
();
nNode
++
)
{
{
SubstitutionStruct
*
pInsert
=
new
SubstitutionStruc
t
;
SubstitutionStruct
aInser
t
;
pNodeValues
[
nName
++
]
>>=
pInsert
->
sFont
;
pNodeValues
[
nName
++
]
>>=
aInsert
.
sFont
;
pNodeValues
[
nName
++
]
>>=
pInsert
->
sReplaceBy
;
pNodeValues
[
nName
++
]
>>=
aInsert
.
sReplaceBy
;
pInsert
->
bReplaceAlways
=
*
static_cast
<
sal_Bool
const
*>
(
pNodeValues
[
nName
++
].
getValue
());
aInsert
.
bReplaceAlways
=
*
static_cast
<
sal_Bool
const
*>
(
pNodeValues
[
nName
++
].
getValue
());
pInsert
->
bReplaceOnScreenOnly
=
*
static_cast
<
sal_Bool
const
*>
(
pNodeValues
[
nName
++
].
getValue
());
aInsert
.
bReplaceOnScreenOnly
=
*
static_cast
<
sal_Bool
const
*>
(
pNodeValues
[
nName
++
].
getValue
());
pImpl
->
aSubstArr
.
push_back
(
p
Insert
);
pImpl
->
aSubstArr
.
push_back
(
a
Insert
);
}
}
}
}
...
@@ -160,7 +160,7 @@ const SubstitutionStruct* SvtFontSubstConfig::GetSubstitution(sal_Int32 nPos)
...
@@ -160,7 +160,7 @@ const SubstitutionStruct* SvtFontSubstConfig::GetSubstitution(sal_Int32 nPos)
void
SvtFontSubstConfig
::
AddSubstitution
(
const
SubstitutionStruct
&
rToAdd
)
void
SvtFontSubstConfig
::
AddSubstitution
(
const
SubstitutionStruct
&
rToAdd
)
{
{
pImpl
->
aSubstArr
.
push_back
(
new
SubstitutionStruct
(
rToAdd
)
);
pImpl
->
aSubstArr
.
push_back
(
rToAdd
);
}
}
void
SvtFontSubstConfig
::
Apply
()
void
SvtFontSubstConfig
::
Apply
()
...
...
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