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
0fbfa10c
Kaydet (Commit)
0fbfa10c
authored
Haz 23, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: kill last direct RTL_CONSTASCII_USTRINGPARAM usages
Change-Id: I7e19b6ff9e12d7aee57f24b1acce722e287accf0
üst
71e91ab2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
20 deletions
+12
-20
swmodul1.cxx
sw/source/ui/app/swmodul1.cxx
+2
-4
olmenu.cxx
sw/source/ui/lingu/olmenu.cxx
+7
-12
tblctrl.cxx
sw/source/ui/ribbar/tblctrl.cxx
+1
-2
vbaeventshelper.cxx
sw/source/ui/vba/vbaeventshelper.cxx
+1
-1
vbainformationhelper.cxx
sw/source/ui/vba/vbainformationhelper.cxx
+1
-1
No files found.
sw/source/ui/app/swmodul1.cxx
Dosyayı görüntüle @
0fbfa10c
...
...
@@ -381,9 +381,7 @@ void SwModule::ShowDBObj(SwView& rView, const SwDBData& rData, sal_Bool /*bOnlyI
Reference
<
XFrame
>
xFrame
=
rView
.
GetViewFrame
()
->
GetFrame
().
GetFrameInterface
();
Reference
<
XDispatchProvider
>
xDP
(
xFrame
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
frame
::
XFrame
>
xBeamerFrame
=
xFrame
->
findFrame
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"_beamer"
)),
FrameSearchFlag
::
CHILDREN
);
uno
::
Reference
<
frame
::
XFrame
>
xBeamerFrame
=
xFrame
->
findFrame
(
"_beamer"
,
FrameSearchFlag
::
CHILDREN
);
if
(
xBeamerFrame
.
is
())
{
// the beamer has been opened by the SfxViewFrame
Reference
<
XController
>
xController
=
xBeamerFrame
->
getController
();
...
...
@@ -428,7 +426,7 @@ const String& SwModule::GetRedlineAuthor(sal_uInt16 nPos)
OSL_ENSURE
(
nPos
<
pAuthorNames
->
size
(),
"author not found!"
);
//#i45342# RTF doc with no author table caused reader to crash
while
(
!
(
nPos
<
pAuthorNames
->
size
()))
{
InsertRedlineAuthor
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"nn"
)
));
InsertRedlineAuthor
(
String
(
"nn"
));
};
return
(
*
pAuthorNames
)[
nPos
];
}
...
...
sw/source/ui/lingu/olmenu.cxx
Dosyayı görüntüle @
0fbfa10c
...
...
@@ -281,15 +281,13 @@ void SwSpellPopup::fillLangPopupMenu(
sal_uInt16
nItemId
=
nLangItemIdStart
;
const
OUString
sAsterix
(
RTL_CONSTASCII_USTRINGPARAM
(
"*"
));
// multiple languages in current selection
const
OUString
sEmpty
;
// 'no language found' from language guessing
std
::
set
<
OUString
>::
const_iterator
it
;
for
(
it
=
aLangItems
.
begin
();
it
!=
aLangItems
.
end
();
++
it
)
{
OUString
aEntryTxt
(
*
it
);
if
(
aEntryTxt
!=
OUString
(
aLanguageTable
.
GetString
(
LANGUAGE_NONE
)
)
&&
aEntryTxt
!=
sAsterix
&&
aEntryTxt
!=
sEmpty
)
aEntryTxt
!=
"*"
&&
// multiple languages in current selection
!
aEntryTxt
.
isEmpty
())
// 'no language found' from language guessing
{
OSL_ENSURE
(
nLangItemIdStart
<=
nItemId
&&
nItemId
<=
nLangItemIdStart
+
MN_MAX_NUM_LANG
,
"nItemId outside of expected range!"
);
...
...
@@ -319,7 +317,7 @@ static Image lcl_GetImageFromPngUrl( const OUString &rFileUrl )
OUString
aTmp
;
osl
::
FileBase
::
getSystemPathFromFileURL
(
rFileUrl
,
aTmp
);
Graphic
aGraphic
;
const
String
aFilterName
(
RTL_CONSTASCII_USTRINGPARAM
(
IMP_PNG
)
);
const
String
aFilterName
(
IMP_PNG
);
if
(
GRFILTER_OK
==
GraphicFilter
::
LoadGraphic
(
aTmp
,
aFilterName
,
aGraphic
)
)
{
aRes
=
Image
(
aGraphic
.
GetBitmapEx
()
);
...
...
@@ -335,12 +333,11 @@ OUString RetrieveLabelFromCommand( const OUString& aCmdURL )
{
try
{
uno
::
Reference
<
container
::
XNameAccess
>
xNameAccess
(
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.frame.UICommandDescription"
))
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XNameAccess
>
xNameAccess
(
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
"com.sun.star.frame.UICommandDescription"
),
uno
::
UNO_QUERY
);
if
(
xNameAccess
.
is
()
)
{
uno
::
Reference
<
container
::
XNameAccess
>
xUICommandLabels
;
const
OUString
aModule
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.text.TextDocument"
)
);
uno
::
Any
a
=
xNameAccess
->
getByName
(
aModule
);
uno
::
Any
a
=
xNameAccess
->
getByName
(
"com.sun.star.text.TextDocument"
);
uno
::
Reference
<
container
::
XNameAccess
>
xUICommands
;
a
>>=
xUICommandLabels
;
OUString
aStr
;
...
...
@@ -552,8 +549,7 @@ SwSpellPopup::SwSpellPopup(
if
(
bUseImagesInMenus
)
{
uno
::
Reference
<
frame
::
XFrame
>
xFrame
=
pWrtSh
->
GetView
().
GetViewFrame
()
->
GetFrame
().
GetFrameInterface
();
Image
rImg
=
::
GetImage
(
xFrame
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
".uno:SpellingAndGrammarDialog"
)),
sal_False
);
Image
rImg
=
::
GetImage
(
xFrame
,
".uno:SpellingAndGrammarDialog"
,
sal_False
);
SetItemImage
(
MN_SPELLING_DLG
,
rImg
);
}
...
...
@@ -707,8 +703,7 @@ aInfo16( SW_RES(IMG_INFO_16) )
if
(
bUseImagesInMenus
)
{
uno
::
Reference
<
frame
::
XFrame
>
xFrame
=
pWrtSh
->
GetView
().
GetViewFrame
()
->
GetFrame
().
GetFrameInterface
();
Image
rImg
=
::
GetImage
(
xFrame
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
".uno:SpellingAndGrammarDialog"
)),
sal_False
);
Image
rImg
=
::
GetImage
(
xFrame
,
".uno:SpellingAndGrammarDialog"
,
sal_False
);
SetItemImage
(
MN_SPELLING_DLG
,
rImg
);
}
...
...
sw/source/ui/ribbar/tblctrl.cxx
Dosyayı görüntüle @
0fbfa10c
...
...
@@ -62,8 +62,7 @@ SwTableOptimizeCtrl::~SwTableOptimizeCtrl()
SfxPopupWindow
*
SwTableOptimizeCtrl
::
CreatePopupWindow
()
{
rtl
::
OUString
aToolBarResStr
(
RTL_CONSTASCII_USTRINGPARAM
(
"private:resource/toolbar/optimizetablebar"
));
createAndPositionSubToolBar
(
aToolBarResStr
);
createAndPositionSubToolBar
(
"private:resource/toolbar/optimizetablebar"
);
return
NULL
;
}
...
...
sw/source/ui/vba/vbaeventshelper.cxx
Dosyayı görüntüle @
0fbfa10c
...
...
@@ -79,7 +79,7 @@ void SwVbaEventsHelper::implPostProcessEvent( EventQueue& /*rEventQueue*/,
const
uno
::
Sequence
<
uno
::
Any
>&
/*rArgs*/
)
const
throw
(
lang
::
IllegalArgumentException
)
{
// TODO: get actual codename from document
return
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ThisDocument"
)
);
return
::
rtl
::
OUString
(
"ThisDocument"
);
}
// ============================================================================
...
...
sw/source/ui/vba/vbainformationhelper.cxx
Dosyayı görüntüle @
0fbfa10c
...
...
@@ -47,7 +47,7 @@ double SwVbaInformationHelper::handleWdVerticalPositionRelativeToPage( const css
xTVCursor
->
collapseToStart
();
uno
::
Reference
<
beans
::
XPropertySet
>
xStyleProps
(
word
::
getCurrentPageStyle
(
xModel
),
uno
::
UNO_QUERY_THROW
);
sal_Int32
nTopMargin
=
0
;
xStyleProps
->
getPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"TopMargin"
)
)
)
>>=
nTopMargin
;
xStyleProps
->
getPropertyValue
(
"TopMargin"
)
>>=
nTopMargin
;
sal_Int32
nCurrentPos
=
xTVCursor
->
getPosition
().
Y
;
sal_Int32
nCurrentPage
=
handleWdActiveEndPageNumber
(
xTVCursor
);
...
...
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