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
6d93a746
Kaydet (Commit)
6d93a746
authored
Tem 02, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter is now RTL_CONSTASCII..PARAM-free
Change-Id: I04ef6ffefa7e27a1f9cac6d7d46cb6022223b9ff
üst
02a72b30
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
41 deletions
+22
-41
testdoctok.cxx
writerfilter/qa/cppunittests/doctok/testdoctok.cxx
+1
-2
WW8DocumentImpl.cxx
writerfilter/source/doctok/WW8DocumentImpl.cxx
+6
-12
WW8StreamImpl.cxx
writerfilter/source/doctok/WW8StreamImpl.cxx
+1
-2
Handler.cxx
writerfilter/source/ooxml/Handler.cxx
+8
-8
OOXMLFastContextHandler.cxx
writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+1
-3
OOXMLPropertySetImpl.cxx
writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
+5
-14
No files found.
writerfilter/qa/cppunittests/doctok/testdoctok.cxx
Dosyayı görüntüle @
6d93a746
...
@@ -92,8 +92,7 @@ public:
...
@@ -92,8 +92,7 @@ public:
{
{
uno
::
Reference
<
::
com
::
sun
::
star
::
ucb
::
XSimpleFileAccess
>
uno
::
Reference
<
::
com
::
sun
::
star
::
ucb
::
XSimpleFileAccess
>
xNameContainer
(
xFactory
->
createInstanceWithContext
xNameContainer
(
xFactory
->
createInstanceWithContext
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.ucb.SimpleFileAccess"
,
(
"com.sun.star.ucb.SimpleFileAccess"
)),
xComponentContext
),
uno
::
UNO_QUERY
);
xComponentContext
),
uno
::
UNO_QUERY
);
if
(
xNameContainer
.
is
())
if
(
xNameContainer
.
is
())
...
...
writerfilter/source/doctok/WW8DocumentImpl.cxx
Dosyayı görüntüle @
6d93a746
...
@@ -171,16 +171,13 @@ WW8DocumentImpl::WW8DocumentImpl(WW8Stream::Pointer_t rpStream)
...
@@ -171,16 +171,13 @@ WW8DocumentImpl::WW8DocumentImpl(WW8Stream::Pointer_t rpStream)
:
bSubDocument
(
false
),
mfcPicLoc
(
0
),
mbPicIsData
(
false
),
mpStream
(
rpStream
),
:
bSubDocument
(
false
),
mfcPicLoc
(
0
),
mbPicIsData
(
false
),
mpStream
(
rpStream
),
mbInSection
(
false
),
mbInParagraphGroup
(
false
),
mbInCharacterGroup
(
false
)
mbInSection
(
false
),
mbInParagraphGroup
(
false
),
mbInCharacterGroup
(
false
)
{
{
mpDocStream
=
getSubStream
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
mpDocStream
=
getSubStream
(
"WordDocument"
);
(
"WordDocument"
)));
mpSummaryInformationStream
=
getSubStream
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
mpSummaryInformationStream
=
getSubStream
(
"
\5
SummaryInformation"
);
(
"
\5
SummaryInformation"
)));
try
try
{
{
mpDataStream
=
getSubStream
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
mpDataStream
=
getSubStream
(
"Data"
);
(
"Data"
)));
}
}
catch
(
const
ExceptionNotFound
&
)
catch
(
const
ExceptionNotFound
&
)
{
{
...
@@ -188,8 +185,7 @@ mbInSection(false), mbInParagraphGroup(false), mbInCharacterGroup(false)
...
@@ -188,8 +185,7 @@ mbInSection(false), mbInParagraphGroup(false), mbInCharacterGroup(false)
try
try
{
{
mpCompObjStream
=
getSubStream
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
mpCompObjStream
=
getSubStream
(
"
\1
CompObj"
);
(
"
\1
CompObj"
)));
}
}
catch
(
const
ExceptionNotFound
&
)
catch
(
const
ExceptionNotFound
&
)
{
{
...
@@ -205,14 +201,12 @@ mbInSection(false), mbInParagraphGroup(false), mbInCharacterGroup(false)
...
@@ -205,14 +201,12 @@ mbInSection(false), mbInParagraphGroup(false), mbInCharacterGroup(false)
switch
(
mpFib
->
get_fWhichTblStm
())
switch
(
mpFib
->
get_fWhichTblStm
())
{
{
case
0
:
case
0
:
mpTableStream
=
getSubStream
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
mpTableStream
=
getSubStream
(
"0Table"
);
(
"0Table"
)));
break
;
break
;
case
1
:
case
1
:
mpTableStream
=
getSubStream
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
mpTableStream
=
getSubStream
(
"1Table"
);
(
"1Table"
)));
break
;
break
;
...
...
writerfilter/source/doctok/WW8StreamImpl.cxx
Dosyayı görüntüle @
6d93a746
...
@@ -51,8 +51,7 @@ WW8StreamImpl::WW8StreamImpl(uno::Reference<uno::XComponentContext> rContext,
...
@@ -51,8 +51,7 @@ WW8StreamImpl::WW8StreamImpl(uno::Reference<uno::XComponentContext> rContext,
xOLESimpleStorage
=
uno
::
Reference
<
container
::
XNameContainer
>
xOLESimpleStorage
=
uno
::
Reference
<
container
::
XNameContainer
>
(
xFactory
->
createInstanceWithArgumentsAndContext
(
xFactory
->
createInstanceWithArgumentsAndContext
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.embed.OLESimpleStorage"
,
(
"com.sun.star.embed.OLESimpleStorage"
)),
aArgs
,
mrComponentContext
),
aArgs
,
mrComponentContext
),
uno
::
UNO_QUERY
);
uno
::
UNO_QUERY
);
...
...
writerfilter/source/ooxml/Handler.cxx
Dosyayı görüntüle @
6d93a746
...
@@ -294,10 +294,10 @@ OOXMLHyperlinkHandler::OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext)
...
@@ -294,10 +294,10 @@ OOXMLHyperlinkHandler::OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext)
OOXMLHyperlinkHandler
::~
OOXMLHyperlinkHandler
()
OOXMLHyperlinkHandler
::~
OOXMLHyperlinkHandler
()
{
{
::
rtl
::
OUString
sReturn
(
RTL_CONSTASCII_USTRINGPARAM
(
" HYPERLINK
\"
"
)
);
::
rtl
::
OUString
sReturn
(
" HYPERLINK
\"
"
);
sReturn
+=
mURL
;
sReturn
+=
mURL
;
sReturn
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\"
"
))
;
sReturn
+=
"
\"
"
;
sReturn
+=
mFieldCode
;
sReturn
+=
mFieldCode
;
mpFastContext
->
text
(
sReturn
);
mpFastContext
->
text
(
sReturn
);
...
@@ -308,23 +308,23 @@ void OOXMLHyperlinkHandler::attribute(Id name, Value & val)
...
@@ -308,23 +308,23 @@ void OOXMLHyperlinkHandler::attribute(Id name, Value & val)
switch
(
name
)
switch
(
name
)
{
{
case
NS_ooxml
:
:
LN_CT_Hyperlink_tgtFrame
:
case
NS_ooxml
:
:
LN_CT_Hyperlink_tgtFrame
:
mFieldCode
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\\
t
\"
"
))
;
mFieldCode
+=
"
\\
t
\"
"
;
mFieldCode
+=
val
.
getString
();
mFieldCode
+=
val
.
getString
();
mFieldCode
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\"
"
))
;
mFieldCode
+=
"
\"
"
;
break
;
break
;
case
NS_ooxml
:
:
LN_CT_Hyperlink_tooltip
:
case
NS_ooxml
:
:
LN_CT_Hyperlink_tooltip
:
mFieldCode
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\\
o
\"
"
))
;
mFieldCode
+=
"
\\
o
\"
"
;
mFieldCode
+=
val
.
getString
();
mFieldCode
+=
val
.
getString
();
mFieldCode
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\"
"
))
;
mFieldCode
+=
"
\"
"
;
break
;
break
;
case
NS_ooxml
:
:
LN_CT_Hyperlink_docLocation
:
case
NS_ooxml
:
:
LN_CT_Hyperlink_docLocation
:
break
;
break
;
case
NS_ooxml
:
:
LN_CT_Hyperlink_history
:
case
NS_ooxml
:
:
LN_CT_Hyperlink_history
:
break
;
break
;
case
NS_ooxml
:
:
LN_CT_Hyperlink_anchor
:
case
NS_ooxml
:
:
LN_CT_Hyperlink_anchor
:
mFieldCode
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\\
l
\"
"
))
;
mFieldCode
+=
"
\\
l
\"
"
;
mFieldCode
+=
val
.
getString
();
mFieldCode
+=
val
.
getString
();
mFieldCode
+=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
\"
"
))
;
mFieldCode
+=
"
\"
"
;
break
;
break
;
case
NS_ooxml
:
:
LN_CT_Hyperlink_r_id
:
case
NS_ooxml
:
:
LN_CT_Hyperlink_r_id
:
mURL
=
mpFastContext
->
getTargetForId
(
val
.
getString
());
mURL
=
mpFastContext
->
getTargetForId
(
val
.
getString
());
...
...
writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
Dosyayı görüntüle @
6d93a746
...
@@ -1916,9 +1916,7 @@ OOXMLFastContextHandlerShape::OOXMLFastContextHandlerShape
...
@@ -1916,9 +1916,7 @@ OOXMLFastContextHandlerShape::OOXMLFastContextHandlerShape
mrShapeContext
.
set
mrShapeContext
.
set
(
rServiceManager
->
(
rServiceManager
->
createInstanceWithContext
createInstanceWithContext
(
::
rtl
::
OUString
(
"com.sun.star.xml.sax.FastShapeContextHandler"
,
xContext
),
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.xml.sax.FastShapeContextHandler"
)),
xContext
),
uno
::
UNO_QUERY
);
uno
::
UNO_QUERY
);
getDocument
()
->
setShapeContext
(
mrShapeContext
);
getDocument
()
->
setShapeContext
(
mrShapeContext
);
}
}
...
...
writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
Dosyayı görüntüle @
6d93a746
...
@@ -31,12 +31,6 @@ namespace ooxml
...
@@ -31,12 +31,6 @@ namespace ooxml
{
{
using
namespace
::
std
;
using
namespace
::
std
;
static
::
rtl
::
OUString
strue
(
RTL_CONSTASCII_USTRINGPARAM
(
"true"
));
static
::
rtl
::
OUString
sTrue
(
RTL_CONSTASCII_USTRINGPARAM
(
"True"
));
static
::
rtl
::
OUString
s1
(
RTL_CONSTASCII_USTRINGPARAM
(
"1"
));
static
::
rtl
::
OUString
sOn
(
RTL_CONSTASCII_USTRINGPARAM
(
"On"
));
static
::
rtl
::
OUString
son
(
RTL_CONSTASCII_USTRINGPARAM
(
"on"
));
OOXMLProperty
::~
OOXMLProperty
()
OOXMLProperty
::~
OOXMLProperty
()
{
{
}
}
...
@@ -278,14 +272,11 @@ OOXMLBooleanValue::OOXMLBooleanValue(bool bValue)
...
@@ -278,14 +272,11 @@ OOXMLBooleanValue::OOXMLBooleanValue(bool bValue)
OOXMLBooleanValue
::
OOXMLBooleanValue
(
const
rtl
::
OUString
&
rValue
)
OOXMLBooleanValue
::
OOXMLBooleanValue
(
const
rtl
::
OUString
&
rValue
)
:
mbValue
(
false
)
:
mbValue
(
false
)
{
{
if
(
strue
.
compareTo
(
rValue
)
==
0
mbValue
=
(
rValue
==
"true"
||
sTrue
.
compareTo
(
rValue
)
==
0
||
rValue
==
"True"
||
s1
.
compareTo
(
rValue
)
==
0
||
rValue
==
"1"
||
son
.
compareTo
(
rValue
)
==
0
||
rValue
==
"on"
||
sOn
.
compareTo
(
rValue
)
==
0
)
||
rValue
==
"On"
);
mbValue
=
true
;
else
mbValue
=
false
;
}
}
OOXMLBooleanValue
::~
OOXMLBooleanValue
()
OOXMLBooleanValue
::~
OOXMLBooleanValue
()
...
...
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