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
674ed53b
Kaydet (Commit)
674ed53b
authored
Nis 12, 2012
tarafından
Olivier Hallot
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More RTL_CONSTASCII_USTRINGPARAM removals
module sd/../ui
üst
139b5e76
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
30 deletions
+18
-30
SlsListener.cxx
sd/source/ui/slidesorter/controller/SlsListener.cxx
+5
-11
SlsSlotManager.cxx
sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+6
-7
SlideSorterModel.cxx
sd/source/ui/slidesorter/model/SlideSorterModel.cxx
+1
-1
SlideSorterService.cxx
sd/source/ui/slidesorter/shell/SlideSorterService.cxx
+4
-8
SlsButtonBar.cxx
sd/source/ui/slidesorter/view/SlsButtonBar.cxx
+1
-1
SlsFontProvider.cxx
sd/source/ui/slidesorter/view/SlsFontProvider.cxx
+1
-2
No files found.
sd/source/ui/slidesorter/controller/SlsListener.cxx
Dosyayı görüntüle @
674ed53b
...
@@ -488,10 +488,8 @@ void SAL_CALL Listener::propertyChange (
...
@@ -488,10 +488,8 @@ void SAL_CALL Listener::propertyChange (
{
{
ThrowIfDisposed
();
ThrowIfDisposed
();
static
const
::
rtl
::
OUString
sCurrentPagePropertyName
(
static
const
::
rtl
::
OUString
sCurrentPagePropertyName
(
"CurrentPage"
);
RTL_CONSTASCII_USTRINGPARAM
(
"CurrentPage"
));
static
const
::
rtl
::
OUString
sEditModePropertyName
(
"IsMasterPageMode"
);
static
const
::
rtl
::
OUString
sEditModePropertyName
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsMasterPageMode"
));
if
(
rEvent
.
PropertyName
.
equals
(
sCurrentPagePropertyName
))
if
(
rEvent
.
PropertyName
.
equals
(
sCurrentPagePropertyName
))
{
{
...
@@ -501,8 +499,7 @@ void SAL_CALL Listener::propertyChange (
...
@@ -501,8 +499,7 @@ void SAL_CALL Listener::propertyChange (
{
{
try
try
{
{
Any
aPageNumber
=
xPageSet
->
getPropertyValue
(
Any
aPageNumber
=
xPageSet
->
getPropertyValue
(
"Number"
);
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Number"
)));
sal_Int32
nCurrentPage
=
0
;
sal_Int32
nCurrentPage
=
0
;
aPageNumber
>>=
nCurrentPage
;
aPageNumber
>>=
nCurrentPage
;
// The selection is already set but we call SelectPage()
// The selection is already set but we call SelectPage()
...
@@ -592,8 +589,7 @@ void Listener::UpdateEditMode (void)
...
@@ -592,8 +589,7 @@ void Listener::UpdateEditMode (void)
{
{
try
try
{
{
Any
aValue
(
xSet
->
getPropertyValue
(
Any
aValue
(
xSet
->
getPropertyValue
(
"IsMasterPageMode"
));
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsMasterPageMode"
))));
aValue
>>=
bIsMasterPageMode
;
aValue
>>=
bIsMasterPageMode
;
}
}
catch
(
beans
::
UnknownPropertyException
&
)
catch
(
beans
::
UnknownPropertyException
&
)
...
@@ -693,9 +689,7 @@ void Listener::ThrowIfDisposed (void)
...
@@ -693,9 +689,7 @@ void Listener::ThrowIfDisposed (void)
{
{
if
(
rBHelper
.
bDisposed
||
rBHelper
.
bInDispose
)
if
(
rBHelper
.
bDisposed
||
rBHelper
.
bInDispose
)
{
{
throw
lang
::
DisposedException
(
throw
lang
::
DisposedException
(
"SlideSorterController object has already been disposed"
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"SlideSorterController object has already been disposed"
)),
static_cast
<
uno
::
XWeak
*>
(
this
));
static_cast
<
uno
::
XWeak
*>
(
this
));
}
}
}
}
...
...
sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
Dosyayı görüntüle @
674ed53b
...
@@ -828,11 +828,11 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
...
@@ -828,11 +828,11 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
SdPage
*
pFirstPage
=
NULL
;
SdPage
*
pFirstPage
=
NULL
;
sal_uInt16
nFirstPage
;
sal_uInt16
nFirstPage
;
sal_uInt16
nSelectedPages
=
(
sal_uInt16
)
mrSlideSorter
.
GetController
().
GetPageSelector
().
GetSelectedPageCount
();
sal_uInt16
nSelectedPages
=
(
sal_uInt16
)
mrSlideSorter
.
GetController
().
GetPageSelector
().
GetSelectedPageCount
();
String
aPageStr
;
rtl
::
OU
String
aPageStr
;
String
aLayoutStr
;
String
aLayoutStr
;
if
(
nSelectedPages
>
0
)
if
(
nSelectedPages
>
0
)
aPageStr
=
String
(
SdResId
(
STR_SD_PAGE
));
aPageStr
=
rtl
::
OUString
(
ResId
::
toString
(
SdResId
(
STR_SD_PAGE
)
));
if
(
nSelectedPages
==
1
)
if
(
nSelectedPages
==
1
)
{
{
...
@@ -846,11 +846,10 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
...
@@ -846,11 +846,10 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
nFirstPage
=
pPage
->
GetPageNum
()
/
2
;
nFirstPage
=
pPage
->
GetPageNum
()
/
2
;
pFirstPage
=
pPage
;
pFirstPage
=
pPage
;
aPageStr
+=
sal_Unicode
(
' '
);
aPageStr
+=
" "
;
aPageStr
+=
String
::
CreateFromInt32
(
nFirstPage
+
1
);
aPageStr
+=
rtl
::
OUString
::
valueOf
(
nFirstPage
+
1
);
aPageStr
.
AppendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" / "
));
aPageStr
+=
" / "
;
aPageStr
+=
String
::
CreateFromInt32
(
aPageStr
+=
rtl
::
OUString
::
valueOf
(
mrSlideSorter
.
GetModel
().
GetPageCount
());
mrSlideSorter
.
GetModel
().
GetPageCount
());
aLayoutStr
=
pFirstPage
->
GetLayoutName
();
aLayoutStr
=
pFirstPage
->
GetLayoutName
();
aLayoutStr
.
Erase
(
aLayoutStr
.
SearchAscii
(
SD_LT_SEPARATOR
)
);
aLayoutStr
.
Erase
(
aLayoutStr
.
SearchAscii
(
SD_LT_SEPARATOR
)
);
...
...
sd/source/ui/slidesorter/model/SlideSorterModel.cxx
Dosyayı görüntüle @
674ed53b
...
@@ -248,7 +248,7 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli
...
@@ -248,7 +248,7 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli
{
{
try
try
{
{
const
Any
aNumber
(
xSet
->
getPropertyValue
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Number"
))
));
const
Any
aNumber
(
xSet
->
getPropertyValue
(
"Number"
));
sal_Int16
nNumber
(
-
1
);
sal_Int16
nNumber
(
-
1
);
aNumber
>>=
nNumber
;
aNumber
>>=
nNumber
;
nNumber
-=
1
;
nNumber
-=
1
;
...
...
sd/source/ui/slidesorter/shell/SlideSorterService.cxx
Dosyayı görüntüle @
674ed53b
...
@@ -79,7 +79,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance (
...
@@ -79,7 +79,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance (
::
rtl
::
OUString
SlideSorterService_getImplementationName
(
void
)
throw
(
RuntimeException
)
::
rtl
::
OUString
SlideSorterService_getImplementationName
(
void
)
throw
(
RuntimeException
)
{
{
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.Draw.SlideSorter"
)
);
return
OUString
(
"com.sun.star.comp.Draw.SlideSorter"
);
}
}
...
@@ -88,8 +88,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance (
...
@@ -88,8 +88,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance (
Sequence
<
rtl
::
OUString
>
SAL_CALL
SlideSorterService_getSupportedServiceNames
(
void
)
Sequence
<
rtl
::
OUString
>
SAL_CALL
SlideSorterService_getSupportedServiceNames
(
void
)
throw
(
RuntimeException
)
throw
(
RuntimeException
)
{
{
static
const
::
rtl
::
OUString
sServiceName
(
static
const
::
rtl
::
OUString
sServiceName
(
"com.sun.star.drawing.SlideSorter"
);
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.drawing.SlideSorter"
)));
return
Sequence
<
rtl
::
OUString
>
(
&
sServiceName
,
1
);
return
Sequence
<
rtl
::
OUString
>
(
&
sServiceName
,
1
);
}
}
...
@@ -174,8 +173,7 @@ void SAL_CALL SlideSorterService::initialize (const Sequence<Any>& rArguments)
...
@@ -174,8 +173,7 @@ void SAL_CALL SlideSorterService::initialize (const Sequence<Any>& rArguments)
}
}
else
else
{
{
throw
RuntimeException
(
throw
RuntimeException
(
"SlideSorterService: invalid number of arguments"
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"SlideSorterService: invalid number of arguments"
)),
static_cast
<
drawing
::
XDrawView
*>
(
this
));
static_cast
<
drawing
::
XDrawView
*>
(
this
));
}
}
}
}
...
@@ -632,9 +630,7 @@ void SlideSorterService::ThrowIfDisposed (void)
...
@@ -632,9 +630,7 @@ void SlideSorterService::ThrowIfDisposed (void)
{
{
if
(
SlideSorterServiceInterfaceBase
::
rBHelper
.
bDisposed
||
SlideSorterServiceInterfaceBase
::
rBHelper
.
bInDispose
)
if
(
SlideSorterServiceInterfaceBase
::
rBHelper
.
bDisposed
||
SlideSorterServiceInterfaceBase
::
rBHelper
.
bInDispose
)
{
{
throw
lang
::
DisposedException
(
throw
lang
::
DisposedException
(
"SlideSorterService object has already been disposed"
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"SlideSorterService object has already been disposed"
)),
static_cast
<
drawing
::
XDrawView
*>
(
this
));
static_cast
<
drawing
::
XDrawView
*>
(
this
));
}
}
}
}
...
...
sd/source/ui/slidesorter/view/SlsButtonBar.cxx
Dosyayı görüntüle @
674ed53b
...
@@ -1174,7 +1174,7 @@ void StartShowButton::ProcessClick (const model::SharedPageDescriptor& rpDescrip
...
@@ -1174,7 +1174,7 @@ void StartShowButton::ProcessClick (const model::SharedPageDescriptor& rpDescrip
if
(
xPresentation
.
is
())
if
(
xPresentation
.
is
())
{
{
Sequence
<
PropertyValue
>
aProperties
(
1
);
Sequence
<
PropertyValue
>
aProperties
(
1
);
aProperties
[
0
].
Name
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"FirstPage"
)
);
aProperties
[
0
].
Name
=
::
rtl
::
OUString
(
"FirstPage"
);
const
::
rtl
::
OUString
sName
(
rpDescriptor
->
GetPage
()
->
GetName
());
const
::
rtl
::
OUString
sName
(
rpDescriptor
->
GetPage
()
->
GetName
());
aProperties
[
0
].
Value
=
Any
(
sName
);
aProperties
[
0
].
Value
=
Any
(
sName
);
...
...
sd/source/ui/slidesorter/view/SlsFontProvider.cxx
Dosyayı görüntüle @
674ed53b
...
@@ -66,8 +66,7 @@ FontProvider& FontProvider::Instance (void)
...
@@ -66,8 +66,7 @@ FontProvider& FontProvider::Instance (void)
// We throw an exception when for some strange reason no instance of
// We throw an exception when for some strange reason no instance of
// this class exists.
// this class exists.
if
(
mpInstance
==
NULL
)
if
(
mpInstance
==
NULL
)
throw
::
com
::
sun
::
star
::
uno
::
RuntimeException
(
::
rtl
::
OUString
(
throw
::
com
::
sun
::
star
::
uno
::
RuntimeException
(
"com.sun.star.document.IndexedPropertyValues"
,
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.document.IndexedPropertyValues"
)),
NULL
);
NULL
);
return
*
mpInstance
;
return
*
mpInstance
;
...
...
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