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
5c3382d5
Kaydet (Commit)
5c3382d5
authored
Eki 15, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sw/source/core/text/*.cxx from String to OUString
Change-Id: Ifda1e87fb14d075bb0b1708efc12404c9ebc255a
üst
c60452f1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
39 additions
and
39 deletions
+39
-39
EnhancedPDFExportHelper.cxx
sw/source/core/text/EnhancedPDFExportHelper.cxx
+16
-16
guess.cxx
sw/source/core/text/guess.cxx
+2
-2
porexp.cxx
sw/source/core/text/porexp.cxx
+1
-1
porlay.cxx
sw/source/core/text/porlay.cxx
+13
-13
porlin.cxx
sw/source/core/text/porlin.cxx
+1
-1
pormulti.cxx
sw/source/core/text/pormulti.cxx
+1
-1
porref.cxx
sw/source/core/text/porref.cxx
+1
-1
porrst.cxx
sw/source/core/text/porrst.cxx
+2
-2
portox.cxx
sw/source/core/text/portox.cxx
+1
-1
txtftn.cxx
sw/source/core/text/txtftn.cxx
+1
-1
No files found.
sw/source/core/text/EnhancedPDFExportHelper.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -678,7 +678,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType )
const
SwNoTxtFrm
*
pNoTxtFrm
=
static_cast
<
const
SwNoTxtFrm
*>
(
pFly
->
Lower
());
const
SwNoTxtNode
*
pNoTxtNode
=
static_cast
<
const
SwNoTxtNode
*>
(
pNoTxtFrm
->
GetNode
());
const
String
aAlternateTxt
(
pNoTxtNode
->
GetTitle
()
);
const
OU
String
aAlternateTxt
(
pNoTxtNode
->
GetTitle
()
);
mpPDFExtOutDevData
->
SetAlternateText
(
aAlternateTxt
);
}
}
...
...
@@ -783,7 +783,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType )
if
(
bActualText
)
{
const
String
aActualTxt
(
rInf
.
GetTxt
(),
rInf
.
GetIdx
(),
pPor
->
GetLen
()
);
const
OUString
aActualTxt
=
rInf
.
GetTxt
().
copy
(
rInf
.
GetIdx
(),
pPor
->
GetLen
()
);
mpPDFExtOutDevData
->
SetActualText
(
aActualTxt
);
}
...
...
@@ -1004,7 +1004,7 @@ void SwTaggedPDFHelper::BeginBlockStructureElements()
return
;
sal_uInt16
nPDFType
=
USHRT_MAX
;
String
aPDFType
;
OU
String
aPDFType
;
switch
(
pFrm
->
GetType
()
)
{
...
...
@@ -1360,7 +1360,7 @@ void SwTaggedPDFHelper::BeginInlineStructureElements()
return
;
sal_uInt16
nPDFType
=
USHRT_MAX
;
String
aPDFType
;
OU
String
aPDFType
;
switch
(
pPor
->
GetWhichPor
()
)
{
...
...
@@ -1670,14 +1670,14 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
{
// First, we create the destination, because there may be more
// than one link to this destination:
String
aURL
(
INetURLObject
::
decode
(
OU
String
aURL
(
INetURLObject
::
decode
(
p
->
rINetAttr
.
GetINetFmt
().
GetValue
(),
INET_HEX_ESCAPE
,
INetURLObject
::
DECODE_UNAMBIGUOUS
,
RTL_TEXTENCODING_UTF8
)
);
// We have to distinguish between intern and real URLs
const
bool
bIntern
=
'#'
==
aURL
.
GetChar
(
0
)
;
const
bool
bIntern
=
'#'
==
aURL
[
0
]
;
// _GetCrsr() is a SwShellCrsr, which is derived from
// SwSelPaintRects, therefore the rectangles of the current
...
...
@@ -1692,7 +1692,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
sal_Int32
nDestId
=
-
1
;
if
(
bIntern
)
{
aURL
.
Erase
(
0
,
1
);
aURL
=
aURL
.
copy
(
1
);
mrSh
.
SwCrsrShell
::
ClearMark
();
JumpToSwMark
(
&
mrSh
,
aURL
);
...
...
@@ -1762,14 +1762,14 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
if
(
RES_DRAWFRMFMT
!=
pFrmFmt
->
Which
()
&&
SFX_ITEM_SET
==
pFrmFmt
->
GetAttrSet
().
GetItemState
(
RES_URL
,
sal_True
,
&
pItem
)
)
{
String
aURL
(
static_cast
<
const
SwFmtURL
*>
(
pItem
)
->
GetURL
()
);
const
bool
bIntern
=
'#'
==
aURL
.
GetChar
(
0
)
;
OU
String
aURL
(
static_cast
<
const
SwFmtURL
*>
(
pItem
)
->
GetURL
()
);
const
bool
bIntern
=
'#'
==
aURL
[
0
]
;
// Create the destination for internal links:
sal_Int32
nDestId
=
-
1
;
if
(
bIntern
)
{
aURL
.
Erase
(
0
,
1
);
aURL
=
aURL
.
copy
(
1
);
mrSh
.
SwCrsrShell
::
ClearMark
();
JumpToSwMark
(
&
mrSh
,
aURL
);
...
...
@@ -1855,7 +1855,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
// Destination Rectangle
const
SwGetRefField
*
pField
=
(
SwGetRefField
*
)
pFirst
->
GetFld
();
const
String
&
rRefName
=
pField
->
GetSetRefName
();
const
OU
String
&
rRefName
=
pField
->
GetSetRefName
();
mrSh
.
GotoRefMark
(
rRefName
,
pField
->
GetSubType
(),
pField
->
GetSeqNo
()
);
const
SwRect
&
rDestRect
=
mrSh
.
GetCharRect
();
...
...
@@ -1897,7 +1897,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
// #i44368# Links in Header/Footer
if
(
bHeaderFooter
)
{
const
String
aDummy
;
const
OU
String
aDummy
;
MakeHeaderFooterLinks
(
*
pPDFExtOutDevData
,
*
pTNd
,
rLinkRect
,
nDestId
,
aDummy
,
true
);
}
}
...
...
@@ -2024,7 +2024,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
pPDFExtOutDevData
->
CreateDest
(
rDestRect
.
SVRect
(),
nDestPageNum
);
// Outline entry text
const
String
&
rEntry
=
mrSh
.
getIDocumentOutlineNodesAccess
()
->
getOutlineText
(
i
);
const
OU
String
&
rEntry
=
mrSh
.
getIDocumentOutlineNodesAccess
()
->
getOutlineText
(
i
);
// Create a new outline item:
const
sal_Int32
nOutlineId
=
...
...
@@ -2080,11 +2080,11 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
const
std
::
vector
<
vcl
::
PDFExtOutDevBookmarkEntry
>::
const_iterator
aIEnd
=
rBookmarks
.
end
();
while
(
aIBeg
!=
aIEnd
)
{
String
aBookmarkName
(
aIBeg
->
aBookmark
);
const
bool
bIntern
=
'#'
==
aBookmarkName
.
GetChar
(
0
)
;
OU
String
aBookmarkName
(
aIBeg
->
aBookmark
);
const
bool
bIntern
=
'#'
==
aBookmarkName
[
0
]
;
if
(
bIntern
)
{
aBookmarkName
.
Erase
(
0
,
1
);
aBookmarkName
=
aBookmarkName
.
copy
(
1
);
JumpToSwMark
(
&
mrSh
,
aBookmarkName
);
// Destination Rectangle
...
...
sw/source/core/text/guess.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -394,9 +394,9 @@ sal_Bool SwTxtGuess::Guess( const SwTxtPortion& rPor, SwTxtFormatInfo &rInf,
#if OSL_DEBUG_LEVEL > 1
// e.g., Schif-fahrt, referes to our string
const
String
aWord
=
xHyphWord
->
getWord
();
const
OU
String
aWord
=
xHyphWord
->
getWord
();
// e.g., Schiff-fahrt, referes to the word after hyphenation
const
String
aHyphenatedWord
=
xHyphWord
->
getHyphenatedWord
();
const
OU
String
aHyphenatedWord
=
xHyphWord
->
getHyphenatedWord
();
// e.g., Schif-fahrt: 5, referes to our string
const
sal_uInt16
nHyphenationPos
=
xHyphWord
->
getHyphenationPos
();
(
void
)
nHyphenationPos
;
...
...
sw/source/core/text/porexp.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -47,7 +47,7 @@ sal_Bool SwExpandPortion::GetExpTxt( const SwTxtSizeInfo&, OUString &rTxt ) cons
void
SwExpandPortion
::
HandlePortion
(
SwPortionHandler
&
rPH
)
const
{
String
aString
;
OU
String
aString
;
rPH
.
Special
(
GetLen
(),
aString
,
GetWhichPor
()
);
}
...
...
sw/source/core/text/porlay.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -679,12 +679,12 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
if
(
!
g_pBreakIt
->
GetBreakIter
().
is
()
)
return
;
const
String
&
rTxt
=
rNode
.
GetTxt
();
const
OU
String
&
rTxt
=
rNode
.
GetTxt
();
//
// HIDDEN TEXT INFORMATION
//
Range
aRange
(
0
,
rTxt
.
Len
()
?
rTxt
.
Len
()
-
1
:
0
);
Range
aRange
(
0
,
!
rTxt
.
isEmpty
()
?
rTxt
.
getLength
()
-
1
:
0
);
MultiSelection
aHiddenMulti
(
aRange
);
CalcHiddenRanges
(
rNode
,
aHiddenMulti
);
...
...
@@ -840,8 +840,8 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
xub_StrLen
nEnd
=
(
xub_StrLen
)
g_pBreakIt
->
GetBreakIter
()
->
endOfScript
(
rTxt
,
nChg
,
WEAK
);
if
(
nEnd
>
rTxt
.
Len
()
)
nEnd
=
rTxt
.
Len
();
if
(
nEnd
>
rTxt
.
getLength
()
)
nEnd
=
rTxt
.
getLength
();
nScript
=
(
sal_uInt8
)
GetI18NScriptTypeOfLanguage
(
(
sal_uInt16
)
GetAppLanguage
()
);
...
...
@@ -852,7 +852,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
nChg
=
nEnd
;
// Get next script type or set to weak in order to exit
sal_uInt8
nNextScript
=
(
nEnd
<
rTxt
.
Len
()
)
?
sal_uInt8
nNextScript
=
(
nEnd
<
rTxt
.
getLength
()
)
?
(
sal_uInt8
)
g_pBreakIt
->
GetBreakIter
()
->
getScriptType
(
rTxt
,
nEnd
)
:
(
sal_uInt8
)
WEAK
;
...
...
@@ -868,7 +868,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
// UPDATE THE SCRIPT INFO ARRAYS:
//
while
(
nChg
<
rTxt
.
Len
()
||
(
aScriptChanges
.
empty
()
&&
!
rTxt
.
Len
()
)
)
while
(
nChg
<
rTxt
.
getLength
()
||
(
aScriptChanges
.
empty
()
&&
rTxt
.
isEmpty
()
)
)
{
SAL_WARN_IF
(
i18n
::
ScriptType
::
WEAK
==
nScript
,
"sw.core"
,
"Inserting WEAK into SwScriptInfo structure"
);
...
...
@@ -877,8 +877,8 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
xub_StrLen
nSearchStt
=
nChg
;
nChg
=
(
xub_StrLen
)
g_pBreakIt
->
GetBreakIter
()
->
endOfScript
(
rTxt
,
nSearchStt
,
nScript
);
if
(
nChg
>
rTxt
.
Len
()
)
nChg
=
rTxt
.
Len
();
if
(
nChg
>
rTxt
.
getLength
()
)
nChg
=
rTxt
.
getLength
();
// #i28203#
// for 'complex' portions, we make sure that a portion does not contain more
...
...
@@ -891,7 +891,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
while
(
com
::
sun
::
star
::
i18n
::
CTLScriptType
::
CTL_UNKNOWN
==
nCurrentScriptType
||
nScriptType
==
nCurrentScriptType
)
{
nNextCTLScriptStart
=
(
xub_StrLen
)
ScriptTypeDetector
::
endOfCTLScriptType
(
rTxt
,
nNextCTLScriptStart
);
if
(
nNextCTLScriptStart
<
rTxt
.
Len
()
&&
nNextCTLScriptStart
<
nChg
)
if
(
nNextCTLScriptStart
<
rTxt
.
getLength
()
&&
nNextCTLScriptStart
<
nChg
)
nCurrentScriptType
=
ScriptTypeDetector
::
getCTLScriptType
(
rTxt
,
nNextCTLScriptStart
);
else
break
;
...
...
@@ -901,10 +901,10 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
// special case for dotted circle since it can be used with complex
// before a mark, so we want it associated with the mark's script
if
(
nChg
<
rTxt
.
Len
()
&&
nChg
>
0
&&
(
i18n
::
ScriptType
::
WEAK
==
if
(
nChg
<
rTxt
.
getLength
()
&&
nChg
>
0
&&
(
i18n
::
ScriptType
::
WEAK
==
g_pBreakIt
->
GetBreakIter
()
->
getScriptType
(
rTxt
,
nChg
-
1
)))
{
int8_t
nType
=
u_charType
(
rTxt
.
GetChar
(
nChg
)
);
int8_t
nType
=
u_charType
(
rTxt
[
nChg
]
);
if
(
nType
==
U_NON_SPACING_MARK
||
nType
==
U_ENCLOSING_MARK
||
nType
==
U_COMBINING_SPACING_MARK
)
{
...
...
@@ -932,7 +932,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
while
(
nLastCompression
<
nChg
)
{
sal_Unicode
cChar
=
rTxt
.
GetChar
(
nLastCompression
)
;
sal_Unicode
cChar
=
rTxt
[
nLastCompression
]
;
// examine current character
switch
(
cChar
)
...
...
@@ -1154,7 +1154,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL )
}
// end of kashida search
}
if
(
nChg
<
rTxt
.
Len
()
)
if
(
nChg
<
rTxt
.
getLength
()
)
nScript
=
(
sal_uInt8
)
g_pBreakIt
->
GetBreakIter
()
->
getScriptType
(
rTxt
,
nChg
);
nLastCompression
=
nChg
;
...
...
sw/source/core/text/porlin.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -387,7 +387,7 @@ sal_Bool SwLinePortion::GetExpTxt( const SwTxtSizeInfo &, OUString & ) const
void
SwLinePortion
::
HandlePortion
(
SwPortionHandler
&
rPH
)
const
{
String
aString
;
OU
String
aString
;
rPH
.
Special
(
GetLen
(),
aString
,
GetWhichPor
(),
Height
(),
Width
()
);
}
...
...
sw/source/core/text/pormulti.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -635,7 +635,7 @@ SwRubyPortion::SwRubyPortion( const SwMultiCreator& rCreate, const SwFont& rFnt,
else
pRubyFont
=
NULL
;
String
aStr
(
rRuby
.
GetText
(),
nOffs
,
STRING_LEN
);
OUString
aStr
=
rRuby
.
GetText
().
copy
(
nOffs
);
SwFldPortion
*
pFld
=
new
SwFldPortion
(
aStr
,
pRubyFont
);
pFld
->
SetNextOffset
(
nOffs
);
pFld
->
SetFollow
(
sal_True
);
...
...
sw/source/core/text/porref.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -94,7 +94,7 @@ void SwIsoRefPortion::Paint( const SwTxtPaintInfo &rInf ) const
void
SwIsoRefPortion
::
HandlePortion
(
SwPortionHandler
&
rPH
)
const
{
String
aString
;
OU
String
aString
;
rPH
.
Special
(
GetLen
(),
aString
,
GetWhichPor
()
);
}
...
...
sw/source/core/text/porrst.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -530,12 +530,12 @@ void SwControlCharPortion::Paint( const SwTxtPaintInfo &rInf ) const
aTmpFont
.
SetProportion
(
nProp
);
// a smaller font
SwFontSave
aFontSave
(
rInf
,
&
aTmpFont
);
String
aOutString
;
OU
String
aOutString
;
switch
(
mcChar
)
{
case
CHAR_ZWSP
:
aOutString
=
'/'
;
break
;
aOutString
=
"/"
;
break
;
// case CHAR_LRM :
// rTxt = sal_Unicode(0x2514); break;
// case CHAR_RLM :
...
...
sw/source/core/text/portox.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -96,7 +96,7 @@ void SwIsoToxPortion::Paint( const SwTxtPaintInfo &rInf ) const
void
SwIsoToxPortion
::
HandlePortion
(
SwPortionHandler
&
rPH
)
const
{
String
aString
;
OU
String
aString
;
rPH
.
Special
(
GetLen
(),
aString
,
GetWhichPor
()
);
}
...
...
sw/source/core/text/txtftn.cxx
Dosyayı görüntüle @
5c3382d5
...
...
@@ -1546,7 +1546,7 @@ sal_Bool SwQuoVadisPortion::GetExpTxt( const SwTxtSizeInfo &, OUString &rTxt ) c
void
SwQuoVadisPortion
::
HandlePortion
(
SwPortionHandler
&
rPH
)
const
{
String
aString
(
aExpand
);
OU
String
aString
(
aExpand
);
aString
+=
aErgo
;
rPH
.
Special
(
GetLen
(),
aString
,
GetWhichPor
()
);
}
...
...
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