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
9aee4d1c
Kaydet (Commit)
9aee4d1c
authored
Şub 25, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
harmonize Tell() Seek() type.
Change-Id: I2e472aa0279d0763762d3c660207cd74da512626
üst
d9cd3dc9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
27 deletions
+27
-27
emfplus.cxx
cppcanvas/source/mtfrenderer/emfplus.cxx
+4
-4
HtmlReader.cxx
dbaccess/source/ui/misc/HtmlReader.cxx
+1
-1
RtfReader.cxx
dbaccess/source/ui/misc/RtfReader.cxx
+1
-1
WTypeSelect.cxx
dbaccess/source/ui/misc/WTypeSelect.cxx
+1
-1
xplugin.cxx
extensions/source/plugin/base/xplugin.cxx
+2
-2
rsc.cxx
rsc/source/rsc/rsc.cxx
+2
-2
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+7
-7
rtfdocumentimpl.hxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx
+5
-5
rtftokenizer.cxx
writerfilter/source/rtftok/rtftokenizer.cxx
+3
-3
rtftokenizer.hxx
writerfilter/source/rtftok/rtftokenizer.hxx
+1
-1
No files found.
cppcanvas/source/mtfrenderer/emfplus.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -437,7 +437,7 @@ namespace cppcanvas
s
.
ReadInt32
(
pathLength
);
SAL_INFO
(
"cppcanvas.emf"
,
"EMF+
\t
path length: "
<<
pathLength
);
sal_
uInt32
pos
=
s
.
Tell
();
sal_
Size
pos
=
s
.
Tell
();
sal_uInt32
pathHeader
;
sal_Int32
pathPoints
,
pathFlags
;
...
...
@@ -907,7 +907,7 @@ namespace cppcanvas
{
s
.
ReadInt32
(
customStartCapLen
);
SAL_INFO
(
"cppcanvas.emf"
,
"EMF+
\t\t
customStartCapLen: "
<<
customStartCapLen
);
sal_
uInt32
pos
=
s
.
Tell
();
sal_
Size
pos
=
s
.
Tell
();
customStartCap
=
new
EMFPCustomLineCap
();
customStartCap
->
Read
(
s
,
rR
);
...
...
@@ -922,7 +922,7 @@ namespace cppcanvas
{
s
.
ReadInt32
(
customEndCapLen
);
SAL_INFO
(
"cppcanvas.emf"
,
"EMF+
\t\t
customEndCapLen: "
<<
customEndCapLen
);
sal_
uInt32
pos
=
s
.
Tell
();
sal_
Size
pos
=
s
.
Tell
();
customEndCap
=
new
EMFPCustomLineCap
();
customEndCap
->
Read
(
s
,
rR
);
...
...
@@ -1598,7 +1598,7 @@ namespace cppcanvas
while
(
length
>
0
)
{
sal_uInt16
type
,
flags
;
sal_uInt32
size
,
dataSize
;
sal_
uInt32
next
;
sal_
Size
next
;
rMF
.
ReadUInt16
(
type
).
ReadUInt16
(
flags
).
ReadUInt32
(
size
).
ReadUInt32
(
dataSize
);
...
...
dbaccess/source/ui/misc/HtmlReader.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -155,7 +155,7 @@ void OHTMLReader::NextToken( int nToken )
case
HTML_THEAD_ON
:
case
HTML_TBODY_ON
:
{
sal_
uInt32
nTell
=
rInput
.
Tell
();
// perhaps alters position of the stream
sal_
Size
nTell
=
rInput
.
Tell
();
// perhaps alters position of the stream
if
(
!
m_xTable
.
is
()
)
{
// use first line as header
m_bError
=
!
CreateTable
(
nToken
);
...
...
dbaccess/source/ui/misc/RtfReader.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -145,7 +145,7 @@ void ORTFReader::NextToken( int nToken )
bool
bInsertRow
=
true
;
if
(
!
m_xTable
.
is
()
)
// use first line as header
{
sal_
uInt32
nTell
=
rInput
.
Tell
();
// perhaps alters position of the stream
sal_
Size
nTell
=
rInput
.
Tell
();
// perhaps alters position of the stream
m_bError
=
!
CreateTable
(
nToken
);
bInsertRow
=
m_bAppendFirstLine
;
...
...
dbaccess/source/ui/misc/WTypeSelect.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -433,7 +433,7 @@ void OWizTypeSelect::fillColumnList(sal_uInt32 nRows)
{
if
(
m_pParserStream
)
{
sal_
uInt32
nTell
=
m_pParserStream
->
Tell
();
// might change seek position of stream
sal_
Size
nTell
=
m_pParserStream
->
Tell
();
// might change seek position of stream
SvParser
*
pReader
=
createReader
(
nRows
);
if
(
pReader
)
...
...
extensions/source/plugin/base/xplugin.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -1076,8 +1076,8 @@ void PluginInputStream::writeBytes( const Sequence<sal_Int8>& Buffer ) throw()
if
(
m_nMode
==
-
1
||
!
m_pPlugin
->
getPluginComm
()
)
return
;
sal_
uInt32
nPos
=
m_aFileStream
.
Tell
();
sal_
uInt32
nBytes
=
0
;
sal_
Size
nPos
=
m_aFileStream
.
Tell
();
sal_
Size
nBytes
=
0
;
while
(
m_nMode
!=
NP_ASFILEONLY
&&
m_nWritePos
<
nPos
&&
(
nBytes
=
m_pPlugin
->
getPluginComm
()
->
NPP_WriteReady
(
...
...
rsc/source/rsc/rsc.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -863,7 +863,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
if
(
aLine
.
indexOf
(
';'
)
==
-
1
)
{
const
sal_
uInt32
nImgListStartPos
=
aIStm
.
Tell
();
const
sal_
Size
nImgListStartPos
=
aIStm
.
Tell
();
do
{
...
...
@@ -909,7 +909,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
}
}
const
sal_
uInt32
nImgListEndPos
=
aIStm
.
Tell
();
const
sal_
Size
nImgListEndPos
=
aIStm
.
Tell
();
aIStm
.
Seek
(
nImgListStartPos
);
while
(
aIStm
.
Tell
()
<
nImgListEndPos
)
{
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -345,14 +345,14 @@ void RTFDocumentImpl::setIgnoreFirst(OUString& rIgnoreFirst)
m_aIgnoreFirst
=
rIgnoreFirst
;
}
void
RTFDocumentImpl
::
resolveSubstream
(
sal_
uInt32
nPos
,
Id
nId
)
void
RTFDocumentImpl
::
resolveSubstream
(
sal_
Size
nPos
,
Id
nId
)
{
OUString
aStr
;
resolveSubstream
(
nPos
,
nId
,
aStr
);
}
void
RTFDocumentImpl
::
resolveSubstream
(
sal_
uInt32
nPos
,
Id
nId
,
OUString
&
rIgnoreFirst
)
void
RTFDocumentImpl
::
resolveSubstream
(
sal_
Size
nPos
,
Id
nId
,
OUString
&
rIgnoreFirst
)
{
sal_
uInt32
nCurrent
=
Strm
().
Tell
();
sal_
Size
nCurrent
=
Strm
().
Tell
();
// Seek to header position, parse, then seek back.
RTFDocumentImpl
::
Pointer_t
pImpl
(
new
RTFDocumentImpl
(
m_xContext
,
m_xInputStream
,
m_xDstDoc
,
m_xFrame
,
m_xStatusIndicator
));
pImpl
->
setSuperstream
(
this
);
...
...
@@ -539,7 +539,7 @@ void RTFDocumentImpl::sectBreak(bool bFinal = false)
}
while
(
!
m_nHeaderFooterPositions
.
empty
())
{
std
::
pair
<
Id
,
sal_
uInt32
>
aPair
=
m_nHeaderFooterPositions
.
front
();
std
::
pair
<
Id
,
sal_
Size
>
aPair
=
m_nHeaderFooterPositions
.
front
();
m_nHeaderFooterPositions
.
pop
();
resolveSubstream
(
aPair
.
second
,
aPair
.
first
);
}
...
...
@@ -575,7 +575,7 @@ void RTFDocumentImpl::sectBreak(bool bFinal = false)
m_bNeedSect
=
false
;
}
void
RTFDocumentImpl
::
seek
(
sal_
uInt32
nPos
)
void
RTFDocumentImpl
::
seek
(
sal_
Size
nPos
)
{
Strm
().
Seek
(
nPos
);
}
...
...
@@ -1278,7 +1278,7 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
case
RTF_FLDINST
:
{
// Look for the field type
sal_
Int32
nPos
=
Strm
().
Tell
();
sal_
Size
nPos
=
Strm
().
Tell
();
OStringBuffer
aBuf
;
char
ch
=
0
;
bool
bFoundCode
=
false
;
...
...
@@ -1385,7 +1385,7 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
if
(
!
m_pSuperstream
)
{
Id
nId
=
0
;
sal_
uInt32
nPos
=
m_nGroupStartPos
-
1
;
sal_
Size
nPos
=
m_nGroupStartPos
-
1
;
switch
(
nKeyword
)
{
case
RTF_HEADER
:
nId
=
NS_ooxml
::
LN_headerr
;
break
;
...
...
writerfilter/source/rtftok/rtfdocumentimpl.hxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -318,7 +318,7 @@ namespace writerfilter {
void
setAuthor
(
OUString
&
rAuthor
);
void
setAuthorInitials
(
OUString
&
rAuthorInitials
);
void
setIgnoreFirst
(
OUString
&
rIgnoreFirst
);
void
seek
(
sal_
uInt32
nPos
);
void
seek
(
sal_
Size
nPos
);
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
getModelFactory
();
bool
isInBackground
();
void
setDestinationText
(
OUString
&
rString
);
...
...
@@ -348,8 +348,8 @@ namespace writerfilter {
RTFSprms
mergeAttributes
();
void
resetSprms
();
void
resetAttributes
();
void
resolveSubstream
(
sal_
uInt32
nPos
,
Id
nId
);
void
resolveSubstream
(
sal_
uInt32
nPos
,
Id
nId
,
OUString
&
rIgnoreFirst
);
void
resolveSubstream
(
sal_
Size
nPos
,
Id
nId
);
void
resolveSubstream
(
sal_
Size
nPos
,
Id
nId
,
OUString
&
rIgnoreFirst
);
void
text
(
OUString
&
rString
);
// Sends a single character to dmapper, taking care of buffering.
...
...
@@ -421,8 +421,8 @@ namespace writerfilter {
RTFDocumentImpl
*
m_pSuperstream
;
/// Type of the stream: header, footer, footnote, etc.
Id
m_nStreamType
;
std
::
queue
<
std
::
pair
<
Id
,
sal_
uInt32
>
>
m_nHeaderFooterPositions
;
sal_
uInt32
m_nGroupStartPos
;
std
::
queue
<
std
::
pair
<
Id
,
sal_
Size
>
>
m_nHeaderFooterPositions
;
sal_
Size
m_nGroupStartPos
;
/// Ignore the first occurrence of this text.
OUString
m_aIgnoreFirst
;
/// Bookmark name <-> index map.
...
...
writerfilter/source/rtftok/rtftokenizer.cxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -67,9 +67,9 @@ int RTFTokenizer::resolveParse()
static
ResMgr
*
pResMgr
=
ResMgr
::
CreateResMgr
(
"svx"
,
Application
::
GetSettings
().
GetUILanguageTag
());
OUString
sDocLoad
(
ResId
(
RID_SVXSTR_DOC_LOAD
,
*
pResMgr
).
toString
());
sal_
uInt32
nCurrentPos
=
Strm
().
Tell
();
sal_
Size
nCurrentPos
=
Strm
().
Tell
();
Strm
().
Seek
(
STREAM_SEEK_TO_END
);
sal_
uInt32
nEndPos
=
Strm
().
Tell
();
sal_
Size
nEndPos
=
Strm
().
Tell
();
Strm
().
Seek
(
nCurrentPos
);
m_xStatusIndicator
->
start
(
sDocLoad
,
nEndPos
);
nPercentSize
=
nEndPos
/
100
;
...
...
@@ -81,7 +81,7 @@ int RTFTokenizer::resolveParse()
{
//SAL_INFO("writerfilter", OSL_THIS_FUNC << ": parsing character '" << ch << "'");
sal_
uInt32
nCurrentPos
=
Strm
().
Tell
();
sal_
Size
nCurrentPos
=
Strm
().
Tell
();
if
(
m_xStatusIndicator
.
is
()
&&
nCurrentPos
>
(
nLastPos
+
nPercentSize
))
m_xStatusIndicator
->
setValue
(
nLastPos
=
nCurrentPos
);
...
...
writerfilter/source/rtftok/rtftokenizer.hxx
Dosyayı görüntüle @
9aee4d1c
...
...
@@ -48,7 +48,7 @@ namespace writerfilter {
/// Same as the size of the importer's states, except that this can be negative for invalid input.
int
m_nGroup
;
sal_Int32
m_nLineNumber
;
sal_
Int32
m_nLineStartPos
;
sal_
Size
m_nLineStartPos
;
sal_Size
m_nGroupStart
;
};
}
// namespace rtftok
...
...
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