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
c71c419c
Kaydet (Commit)
c71c419c
authored
Agu 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I82330271362a428b2850d0f561770d35de1ee6b0
üst
ec27e71f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
29 deletions
+29
-29
pdfihelper.cxx
sdext/source/pdfimport/misc/pdfihelper.cxx
+3
-3
odfemitter.cxx
sdext/source/pdfimport/odf/odfemitter.cxx
+8
-8
drawtreevisiting.cxx
sdext/source/pdfimport/tree/drawtreevisiting.cxx
+4
-4
imagecontainer.cxx
sdext/source/pdfimport/tree/imagecontainer.cxx
+2
-2
style.cxx
sdext/source/pdfimport/tree/style.cxx
+1
-1
writertreevisiting.cxx
sdext/source/pdfimport/tree/writertreevisiting.cxx
+10
-10
wrapper.cxx
sdext/source/pdfimport/wrapper/wrapper.cxx
+1
-1
No files found.
sdext/source/pdfimport/misc/pdfihelper.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -103,7 +103,7 @@ OUString pdfi::getPercentString(double value)
...
@@ -103,7 +103,7 @@ OUString pdfi::getPercentString(double value)
{
{
OUStringBuffer
buf
(
32
);
OUStringBuffer
buf
(
32
);
buf
.
append
(
value
);
buf
.
append
(
value
);
buf
.
append
Ascii
(
"%"
);
buf
.
append
(
"%"
);
return
buf
.
makeStringAndClear
();
return
buf
.
makeStringAndClear
();
}
}
...
@@ -111,7 +111,7 @@ OUString pdfi::unitMMString( double fMM )
...
@@ -111,7 +111,7 @@ OUString pdfi::unitMMString( double fMM )
{
{
OUStringBuffer
aBuf
(
32
);
OUStringBuffer
aBuf
(
32
);
aBuf
.
append
(
rtl_math_round
(
fMM
,
2
,
rtl_math_RoundingMode_Floor
)
);
aBuf
.
append
(
rtl_math_round
(
fMM
,
2
,
rtl_math_RoundingMode_Floor
)
);
aBuf
.
append
Ascii
(
"mm"
);
aBuf
.
append
(
"mm"
);
return
aBuf
.
makeStringAndClear
();
return
aBuf
.
makeStringAndClear
();
}
}
...
@@ -120,7 +120,7 @@ OUString pdfi::convertPixelToUnitString( double fPix )
...
@@ -120,7 +120,7 @@ OUString pdfi::convertPixelToUnitString( double fPix )
{
{
OUStringBuffer
aBuf
(
32
);
OUStringBuffer
aBuf
(
32
);
aBuf
.
append
(
rtl_math_round
(
convPx2mm
(
fPix
),
2
,
rtl_math_RoundingMode_Floor
)
);
aBuf
.
append
(
rtl_math_round
(
convPx2mm
(
fPix
),
2
,
rtl_math_RoundingMode_Floor
)
);
aBuf
.
append
Ascii
(
"mm"
);
aBuf
.
append
(
"mm"
);
return
aBuf
.
makeStringAndClear
();
return
aBuf
.
makeStringAndClear
();
}
}
...
...
sdext/source/pdfimport/odf/odfemitter.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -56,7 +56,7 @@ OdfEmitter::OdfEmitter( const uno::Reference<io::XOutputStream>& xOutput ) :
...
@@ -56,7 +56,7 @@ OdfEmitter::OdfEmitter( const uno::Reference<io::XOutputStream>& xOutput ) :
m_aLineFeed
[
0
]
=
'\n'
;
m_aLineFeed
[
0
]
=
'\n'
;
OUStringBuffer
aElement
;
OUStringBuffer
aElement
;
aElement
.
append
Ascii
(
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>"
);
aElement
.
append
(
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>"
);
write
(
aElement
.
makeStringAndClear
());
write
(
aElement
.
makeStringAndClear
());
}
}
...
@@ -65,9 +65,9 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
...
@@ -65,9 +65,9 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
OSL_PRECOND
(
pTag
,
"Invalid tag string"
);
OSL_PRECOND
(
pTag
,
"Invalid tag string"
);
OUStringBuffer
aElement
;
OUStringBuffer
aElement
;
aElement
.
append
Ascii
(
"<"
);
aElement
.
append
(
"<"
);
aElement
.
appendAscii
(
pTag
);
aElement
.
appendAscii
(
pTag
);
aElement
.
append
Ascii
(
" "
);
aElement
.
append
(
" "
);
std
::
vector
<
OUString
>
aAttributes
;
std
::
vector
<
OUString
>
aAttributes
;
PropertyMap
::
const_iterator
aCurr
(
rProperties
.
begin
());
PropertyMap
::
const_iterator
aCurr
(
rProperties
.
begin
());
...
@@ -76,9 +76,9 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
...
@@ -76,9 +76,9 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
{
{
OUStringBuffer
aAttribute
;
OUStringBuffer
aAttribute
;
aAttribute
.
append
(
aCurr
->
first
);
aAttribute
.
append
(
aCurr
->
first
);
aAttribute
.
append
Ascii
(
"=
\"
"
);
aAttribute
.
append
(
"=
\"
"
);
aAttribute
.
append
(
aCurr
->
second
);
aAttribute
.
append
(
aCurr
->
second
);
aAttribute
.
append
Ascii
(
"
\"
"
);
aAttribute
.
append
(
"
\"
"
);
aAttributes
.
push_back
(
aAttribute
.
makeStringAndClear
());
aAttributes
.
push_back
(
aAttribute
.
makeStringAndClear
());
++
aCurr
;
++
aCurr
;
}
}
...
@@ -93,7 +93,7 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
...
@@ -93,7 +93,7 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties )
(
&
OUStringBuffer
::
append
),
(
&
OUStringBuffer
::
append
),
boost
::
ref
(
aElement
),
boost
::
ref
(
aElement
),
_1
));
_1
));
aElement
.
append
Ascii
(
">"
);
aElement
.
append
(
">"
);
write
(
aElement
.
makeStringAndClear
());
write
(
aElement
.
makeStringAndClear
());
}
}
...
@@ -113,9 +113,9 @@ void OdfEmitter::write( const OUString& rText )
...
@@ -113,9 +113,9 @@ void OdfEmitter::write( const OUString& rText )
void
OdfEmitter
::
endTag
(
const
char
*
pTag
)
void
OdfEmitter
::
endTag
(
const
char
*
pTag
)
{
{
OUStringBuffer
aElement
;
OUStringBuffer
aElement
;
aElement
.
append
Ascii
(
"</"
);
aElement
.
append
(
"</"
);
aElement
.
appendAscii
(
pTag
);
aElement
.
appendAscii
(
pTag
);
aElement
.
append
Ascii
(
">"
);
aElement
.
append
(
">"
);
write
(
aElement
.
makeStringAndClear
());
write
(
aElement
.
makeStringAndClear
());
}
}
...
...
sdext/source/pdfimport/tree/drawtreevisiting.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -224,7 +224,7 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
...
@@ -224,7 +224,7 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
double
scale
=
convPx2mm
(
100
);
double
scale
=
convPx2mm
(
100
);
mat
.
scale
(
scale
,
scale
);
mat
.
scale
(
scale
,
scale
);
aBuf
.
append
Ascii
(
"matrix("
);
aBuf
.
append
(
"matrix("
);
aBuf
.
append
(
mat
.
get
(
0
,
0
));
aBuf
.
append
(
mat
.
get
(
0
,
0
));
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
mat
.
get
(
1
,
0
));
aBuf
.
append
(
mat
.
get
(
1
,
0
));
...
@@ -236,7 +236,7 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
...
@@ -236,7 +236,7 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
aBuf
.
append
(
mat
.
get
(
0
,
2
));
aBuf
.
append
(
mat
.
get
(
0
,
2
));
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
mat
.
get
(
1
,
2
));
aBuf
.
append
(
mat
.
get
(
1
,
2
));
aBuf
.
append
Ascii
(
")"
);
aBuf
.
append
(
")"
);
rProps
[
"draw:transform"
]
=
aBuf
.
makeStringAndClear
();
rProps
[
"draw:transform"
]
=
aBuf
.
makeStringAndClear
();
}
}
...
@@ -324,7 +324,7 @@ void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::
...
@@ -324,7 +324,7 @@ void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::
// a PolyPolyElement was already applied (aside form translation)
// a PolyPolyElement was already applied (aside form translation)
fillFrameProps
(
elem
,
aProps
,
m_rEmitContext
,
true
);
fillFrameProps
(
elem
,
aProps
,
m_rEmitContext
,
true
);
OUStringBuffer
aBuf
(
64
);
OUStringBuffer
aBuf
(
64
);
aBuf
.
append
Ascii
(
"0 0 "
);
aBuf
.
append
(
"0 0 "
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
w
)
*
100.0
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
w
)
*
100.0
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
h
)
*
100.0
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
h
)
*
100.0
);
...
@@ -831,7 +831,7 @@ void SetFontsizeProperties(PropertyMap& props, double fontSize)
...
@@ -831,7 +831,7 @@ void SetFontsizeProperties(PropertyMap& props, double fontSize)
{
{
OUStringBuffer
aBuf
(
32
);
OUStringBuffer
aBuf
(
32
);
aBuf
.
append
(
fontSize
*
72
/
PDFI_OUTDEV_RESOLUTION
);
aBuf
.
append
(
fontSize
*
72
/
PDFI_OUTDEV_RESOLUTION
);
aBuf
.
append
Ascii
(
"pt"
);
aBuf
.
append
(
"pt"
);
OUString
aFSize
=
aBuf
.
makeStringAndClear
();
OUString
aFSize
=
aBuf
.
makeStringAndClear
();
props
[
"fo:font-size"
]
=
aFSize
;
props
[
"fo:font-size"
]
=
aFSize
;
props
[
"style:font-size-asian"
]
=
aFSize
;
props
[
"style:font-size-asian"
]
=
aFSize
;
...
...
sdext/source/pdfimport/tree/imagecontainer.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -62,7 +62,7 @@ OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBufferLeng
...
@@ -62,7 +62,7 @@ OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBufferLeng
(((
sal_uInt8
)
i_pBuffer
[
i
+
1
])
<<
8
)
+
(((
sal_uInt8
)
i_pBuffer
[
i
+
1
])
<<
8
)
+
((
sal_uInt8
)
i_pBuffer
[
i
+
2
]);
((
sal_uInt8
)
i_pBuffer
[
i
+
2
]);
aBuf
.
append
Ascii
(
"===="
);
aBuf
.
append
(
"===="
);
sal_uInt8
nIndex
(
static_cast
<
sal_uInt8
>
((
nBinary
&
0xFC0000
)
>>
18
));
sal_uInt8
nIndex
(
static_cast
<
sal_uInt8
>
((
nBinary
&
0xFC0000
)
>>
18
));
aBuf
[
nBufPos
]
=
aBase64EncodeTable
[
nIndex
];
aBuf
[
nBufPos
]
=
aBase64EncodeTable
[
nIndex
];
...
@@ -78,7 +78,7 @@ OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBufferLeng
...
@@ -78,7 +78,7 @@ OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBufferLeng
}
}
if
(
nRemain
>
0
)
if
(
nRemain
>
0
)
{
{
aBuf
.
append
Ascii
(
"===="
);
aBuf
.
append
(
"===="
);
sal_Int32
nBinary
(
0
);
sal_Int32
nBinary
(
0
);
const
sal_Int32
nStart
(
i_nBufferLength
-
nRemain
);
const
sal_Int32
nStart
(
i_nBufferLength
-
nRemain
);
switch
(
nRemain
)
switch
(
nRemain
)
...
...
sdext/source/pdfimport/tree/style.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -173,7 +173,7 @@ OUString StyleContainer::getStyleName( sal_Int32 nStyle ) const
...
@@ -173,7 +173,7 @@ OUString StyleContainer::getStyleName( sal_Int32 nStyle ) const
}
}
else
else
{
{
aRet
.
append
Ascii
(
"invalid style id "
);
aRet
.
append
(
"invalid style id "
);
aRet
.
append
(
nStyle
);
aRet
.
append
(
nStyle
);
}
}
...
...
sdext/source/pdfimport/tree/writertreevisiting.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -166,28 +166,28 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
...
@@ -166,28 +166,28 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
// build transformation string
// build transformation string
if
(
fShearX
!=
0.0
)
if
(
fShearX
!=
0.0
)
{
{
aBuf
.
append
Ascii
(
"skewX( "
);
aBuf
.
append
(
"skewX( "
);
aBuf
.
append
(
fShearX
);
aBuf
.
append
(
fShearX
);
aBuf
.
append
Ascii
(
" )"
);
aBuf
.
append
(
" )"
);
}
}
if
(
fRotate
!=
0.0
)
if
(
fRotate
!=
0.0
)
{
{
if
(
!
aBuf
.
isEmpty
()
)
if
(
!
aBuf
.
isEmpty
()
)
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
Ascii
(
"rotate( "
);
aBuf
.
append
(
"rotate( "
);
aBuf
.
append
(
-
fRotate
);
aBuf
.
append
(
-
fRotate
);
aBuf
.
append
Ascii
(
" )"
);
aBuf
.
append
(
" )"
);
}
}
if
(
!
rElem
.
isCharacter
)
if
(
!
rElem
.
isCharacter
)
{
{
if
(
!
aBuf
.
isEmpty
()
)
if
(
!
aBuf
.
isEmpty
()
)
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
Ascii
(
"translate( "
);
aBuf
.
append
(
"translate( "
);
aBuf
.
append
(
convertPixelToUnitString
(
rel_x
)
);
aBuf
.
append
(
convertPixelToUnitString
(
rel_x
)
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
convertPixelToUnitString
(
rel_y
)
);
aBuf
.
append
(
convertPixelToUnitString
(
rel_y
)
);
aBuf
.
append
Ascii
(
" )"
);
aBuf
.
append
(
" )"
);
}
}
rProps
[
"draw:transform"
]
=
aBuf
.
makeStringAndClear
();
rProps
[
"draw:transform"
]
=
aBuf
.
makeStringAndClear
();
...
@@ -273,7 +273,7 @@ void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >
...
@@ -273,7 +273,7 @@ void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >
PropertyMap
aProps
;
PropertyMap
aProps
;
fillFrameProps
(
elem
,
aProps
,
m_rEmitContext
);
fillFrameProps
(
elem
,
aProps
,
m_rEmitContext
);
OUStringBuffer
aBuf
(
64
);
OUStringBuffer
aBuf
(
64
);
aBuf
.
append
Ascii
(
"0 0 "
);
aBuf
.
append
(
"0 0 "
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
w
)
*
100.0
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
w
)
*
100.0
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
' '
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
h
)
*
100.0
);
aBuf
.
append
(
convPx2mmPrec2
(
elem
.
h
)
*
100.0
);
...
@@ -937,7 +937,7 @@ void WriterXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::
...
@@ -937,7 +937,7 @@ void WriterXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::
// size
// size
OUStringBuffer
aBuf
(
32
);
OUStringBuffer
aBuf
(
32
);
aBuf
.
append
(
rFont
.
size
*
72
/
PDFI_OUTDEV_RESOLUTION
);
aBuf
.
append
(
rFont
.
size
*
72
/
PDFI_OUTDEV_RESOLUTION
);
aBuf
.
append
Ascii
(
"pt"
);
aBuf
.
append
(
"pt"
);
OUString
aFSize
=
aBuf
.
makeStringAndClear
();
OUString
aFSize
=
aBuf
.
makeStringAndClear
();
aFontProps
[
"fo:font-size"
]
=
aFSize
;
aFontProps
[
"fo:font-size"
]
=
aFSize
;
aFontProps
[
"style:font-size-asian"
]
=
aFSize
;
aFontProps
[
"style:font-size-asian"
]
=
aFSize
;
...
@@ -989,7 +989,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
...
@@ -989,7 +989,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
// indent
// indent
OUStringBuffer
aBuf
(
32
);
OUStringBuffer
aBuf
(
32
);
aBuf
.
append
(
convPx2mm
(
elem
.
x
-
p_x
)
);
aBuf
.
append
(
convPx2mm
(
elem
.
x
-
p_x
)
);
aBuf
.
append
Ascii
(
"mm"
);
aBuf
.
append
(
"mm"
);
aParaProps
[
"fo:margin-left"
]
=
aBuf
.
makeStringAndClear
();
aParaProps
[
"fo:margin-left"
]
=
aBuf
.
makeStringAndClear
();
}
}
...
@@ -1005,7 +1005,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
...
@@ -1005,7 +1005,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
{
{
OUStringBuffer
aBuf
(
32
);
OUStringBuffer
aBuf
(
32
);
aBuf
.
append
(
convPx2mm
(
pNextPara
->
y
-
(
elem
.
y
+
elem
.
h
)
)
);
aBuf
.
append
(
convPx2mm
(
pNextPara
->
y
-
(
elem
.
y
+
elem
.
h
)
)
);
aBuf
.
append
Ascii
(
"mm"
);
aBuf
.
append
(
"mm"
);
aParaProps
[
"fo:margin-bottom"
]
=
aBuf
.
makeStringAndClear
();
aParaProps
[
"fo:margin-bottom"
]
=
aBuf
.
makeStringAndClear
();
}
}
}
}
...
...
sdext/source/pdfimport/wrapper/wrapper.cxx
Dosyayı görüntüle @
c71c419c
...
@@ -959,7 +959,7 @@ static bool checkEncryption( const OUString& i_rPa
...
@@ -959,7 +959,7 @@ static bool checkEncryption( const OUString& i_rPa
if
(
bAuthenticated
)
if
(
bAuthenticated
)
{
{
OUStringBuffer
aBuf
(
128
);
OUStringBuffer
aBuf
(
128
);
aBuf
.
append
Ascii
(
"_OOO_pdfi_Credentials_"
);
aBuf
.
append
(
"_OOO_pdfi_Credentials_"
);
aBuf
.
append
(
pPDFFile
->
getDecryptionKey
()
);
aBuf
.
append
(
pPDFFile
->
getDecryptionKey
()
);
io_rPwd
=
aBuf
.
makeStringAndClear
();
io_rPwd
=
aBuf
.
makeStringAndClear
();
}
}
...
...
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