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
9bd6c8d0
Kaydet (Commit)
9bd6c8d0
authored
Agu 20, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert svtools/source/filter/* from String to OUString
Change-Id: Ia544a7e84ac4de4f64ef4d7e71219a3f4683c430
üst
563e228f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
SvFilterOptionsDialog.cxx
svtools/source/filter/SvFilterOptionsDialog.cxx
+13
-13
No files found.
svtools/source/filter/SvFilterOptionsDialog.cxx
Dosyayı görüntüle @
9bd6c8d0
...
...
@@ -140,7 +140,7 @@ uno::Sequence< beans::PropertyValue > SvFilterOptionsDialog::getPropertyValues()
maMediaDescriptor
.
realloc
(
++
nCount
);
// the "FilterData" Property is an Any that will contain our PropertySequence of Values
maMediaDescriptor
[
i
].
Name
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"FilterData"
)
)
;
maMediaDescriptor
[
i
].
Name
=
"FilterData"
;
maMediaDescriptor
[
i
].
Value
<<=
maFilterDataSequence
;
return
maMediaDescriptor
;
}
...
...
@@ -178,8 +178,8 @@ sal_Int16 SvFilterOptionsDialog::execute()
{
sal_Int16
nRet
=
ui
::
dialogs
::
ExecutableDialogResults
::
CANCEL
;
String
aFilterNameStr
(
RTL_CONSTASCII_USTRINGPARAM
(
"FilterName"
)
);
String
aInternalFilterName
;
OUString
aFilterNameStr
(
"FilterName"
);
OU
String
aInternalFilterName
;
sal_Int32
j
,
nCount
=
maMediaDescriptor
.
getLength
();
for
(
j
=
0
;
j
<
nCount
;
j
++
)
{
...
...
@@ -188,12 +188,12 @@ sal_Int16 SvFilterOptionsDialog::execute()
OUString
aStr
;
maMediaDescriptor
[
j
].
Value
>>=
aStr
;
aInternalFilterName
=
aStr
;
aInternalFilterName
.
SearchAndReplace
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"draw_"
)
),
String
(),
0
);
aInternalFilterName
.
SearchAndReplace
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"impress_"
)
),
String
(),
0
);
aInternalFilterName
=
aInternalFilterName
.
replaceAll
(
"draw_"
,
""
);
aInternalFilterName
=
aInternalFilterName
.
replaceAll
(
"impress_"
,
""
);
break
;
}
}
if
(
aInternalFilterName
.
Len
()
)
if
(
!
aInternalFilterName
.
isEmpty
()
)
{
GraphicFilter
aGraphicFilter
(
sal_True
);
...
...
@@ -234,24 +234,24 @@ void SvFilterOptionsDialog::setSourceDocument( const uno::Reference< lang::XComp
mxSourceDocument
=
xDoc
;
// try to set the corresponding metric unit
String
aConfigPath
;
OU
String
aConfigPath
;
uno
::
Reference
<
lang
::
XServiceInfo
>
xServiceInfo
(
xDoc
,
uno
::
UNO_QUERY
);
if
(
xServiceInfo
.
is
()
)
{
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.presentation.PresentationDocument"
)
)
aConfigPath
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Office.Impress/Layout/Other/MeasureUnit"
)
)
;
aConfigPath
=
"Office.Impress/Layout/Other/MeasureUnit"
;
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.drawing.DrawingDocument"
)
)
aConfigPath
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Office.Draw/Layout/Other/MeasureUnit"
)
)
;
if
(
aConfigPath
.
Len
()
)
aConfigPath
=
"Office.Draw/Layout/Other/MeasureUnit"
;
if
(
!
aConfigPath
.
isEmpty
()
)
{
FilterConfigItem
aConfigItem
(
aConfigPath
);
String
aPropertyName
;
OU
String
aPropertyName
;
SvtSysLocale
aSysLocale
;
if
(
aSysLocale
.
GetLocaleDataPtr
()
->
getMeasurementSystemEnum
()
==
MEASURE_METRIC
)
aPropertyName
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Metric"
)
)
;
aPropertyName
=
"Metric"
;
else
aPropertyName
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"NonMetric"
)
)
;
aPropertyName
=
"NonMetric"
;
meFieldUnit
=
(
FieldUnit
)
aConfigItem
.
ReadInt32
(
aPropertyName
,
FUNIT_CM
);
}
}
...
...
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