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
f2b815de
Kaydet (Commit)
f2b815de
authored
Nis 14, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: QNameToString is for debugging, avoid using that in real code.
Change-Id: I8462204bb0fe4da8de1d05a42347466e40e54169
üst
6ba9692d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
16 deletions
+47
-16
QNameToString.hxx
writerfilter/inc/resourcemodel/QNameToString.hxx
+2
-0
BorderHandler.cxx
writerfilter/source/dmapper/BorderHandler.cxx
+0
-1
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+33
-12
Handler.cxx
writerfilter/source/ooxml/Handler.cxx
+0
-1
OOXMLPropertySetImpl.cxx
writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
+5
-1
qnametostrcore.cxx
writerfilter/source/resourcemodel/qnametostrcore.cxx
+2
-0
rtfsprm.cxx
writerfilter/source/rtftok/rtfsprm.cxx
+5
-1
No files found.
writerfilter/inc/resourcemodel/QNameToString.hxx
Dosyayı görüntüle @
f2b815de
...
@@ -69,7 +69,9 @@ protected:
...
@@ -69,7 +69,9 @@ protected:
public
:
public
:
static
Pointer_t
Instance
();
static
Pointer_t
Instance
();
#ifdef DEBUG_LOGGING
string
operator
()(
sal_uInt32
nId
);
string
operator
()(
sal_uInt32
nId
);
#endif
};
};
...
...
writerfilter/source/dmapper/BorderHandler.cxx
Dosyayı görüntüle @
f2b815de
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include <BorderHandler.hxx>
#include <BorderHandler.hxx>
#include <TDefTableHandler.hxx>
#include <TDefTableHandler.hxx>
#include <PropertyMap.hxx>
#include <PropertyMap.hxx>
#include <resourcemodel/QNameToString.hxx>
#include <ConversionHelper.hxx>
#include <ConversionHelper.hxx>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <ooxml/resourceids.hxx>
#include <ooxml/resourceids.hxx>
...
...
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
f2b815de
...
@@ -911,13 +911,14 @@ void DomainMapper::lcl_attribute(Id nName, Value & val)
...
@@ -911,13 +911,14 @@ void DomainMapper::lcl_attribute(Id nName, Value & val)
m_pImpl
->
m_bIgnoreNextPara
=
true
;
m_pImpl
->
m_bIgnoreNextPara
=
true
;
break
;
break
;
case
NS_ooxml
:
:
LN_CT_DataBinding_prefixMappings
:
case
NS_ooxml
:
:
LN_CT_DataBinding_prefixMappings
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_DataBinding_prefixMappings"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_DataBinding_xpath
:
case
NS_ooxml
:
:
LN_CT_DataBinding_xpath
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_DataBinding_xpath"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_DataBinding_storeItemID
:
case
NS_ooxml
:
:
LN_CT_DataBinding_storeItemID
:
{
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_DataBinding_storeItemID"
,
sStringValue
);
OUString
sName
=
OUString
::
createFromAscii
((
*
QNameToString
::
Instance
())(
nName
).
c_str
());
break
;
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
sName
,
sStringValue
);
}
break
;
default
:
default
:
{
{
#if OSL_DEBUG_LEVEL > 0
#if OSL_DEBUG_LEVEL > 0
...
@@ -2268,7 +2269,21 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
...
@@ -2268,7 +2269,21 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
case
NS_ooxml
:
:
LN_CT_SdtPr_id
:
case
NS_ooxml
:
:
LN_CT_SdtPr_id
:
{
{
// this is an unsupported SDT property, create a grab bag for it
// this is an unsupported SDT property, create a grab bag for it
OUString
sName
=
OUString
::
createFromAscii
((
*
QNameToString
::
Instance
())(
nSprmId
).
c_str
());
OUString
sName
;
switch
(
nSprmId
)
{
case
NS_ooxml
:
:
LN_CT_SdtPr_dataBinding
:
sName
=
"ooxml:CT_SdtPr_dataBinding"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_equation
:
sName
=
"ooxml:CT_SdtPr_equation"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_checkbox
:
sName
=
"ooxml:CT_SdtPr_checkbox"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_docPartObj
:
sName
=
"ooxml:CT_SdtPr_docPartObj"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_docPartList
:
sName
=
"ooxml:CT_SdtPr_docPartList"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_picture
:
sName
=
"ooxml:CT_SdtPr_picture"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_citation
:
sName
=
"ooxml:CT_SdtPr_citation"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_group
:
sName
=
"ooxml:CT_SdtPr_group"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_text
:
sName
=
"ooxml:CT_SdtPr_text"
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtPr_id
:
sName
=
"ooxml:CT_SdtPr_id"
;
break
;
default
:
assert
(
false
);
};
enableInteropGrabBag
(
sName
);
enableInteropGrabBag
(
sName
);
// process subitems
// process subitems
...
@@ -2281,17 +2296,23 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
...
@@ -2281,17 +2296,23 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
}
}
break
;
break
;
case
NS_ooxml
:
:
LN_CT_SdtCheckbox_checked
:
case
NS_ooxml
:
:
LN_CT_SdtCheckbox_checked
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_SdtCheckbox_checked"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_SdtCheckbox_checkedState
:
case
NS_ooxml
:
:
LN_CT_SdtCheckbox_checkedState
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_SdtCheckbox_checkedState"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_SdtCheckbox_uncheckedState
:
case
NS_ooxml
:
:
LN_CT_SdtCheckbox_uncheckedState
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_SdtCheckbox_uncheckedState"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_SdtDocPart_docPartGallery
:
case
NS_ooxml
:
:
LN_CT_SdtDocPart_docPartGallery
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_SdtDocPart_docPartGallery"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_SdtDocPart_docPartCategory
:
case
NS_ooxml
:
:
LN_CT_SdtDocPart_docPartCategory
:
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_SdtDocPart_docPartCategory"
,
sStringValue
);
break
;
case
NS_ooxml
:
:
LN_CT_SdtDocPart_docPartUnique
:
case
NS_ooxml
:
:
LN_CT_SdtDocPart_docPartUnique
:
{
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
"ooxml:CT_SdtDocPart_docPartUnique"
,
sStringValue
);
// this is a child of an unsupported SDT property, store in the grab bag
break
;
OUString
sName
=
OUString
::
createFromAscii
((
*
QNameToString
::
Instance
())(
nSprmId
).
c_str
());
m_pImpl
->
appendGrabBag
(
m_pImpl
->
m_aInteropGrabBag
,
sName
,
sStringValue
);
}
break
;
case
NS_ooxml
:
:
LN_EG_SectPrContents_pgNumType
:
case
NS_ooxml
:
:
LN_EG_SectPrContents_pgNumType
:
{
{
writerfilter
::
Reference
<
Properties
>::
Pointer_t
pProperties
=
rSprm
.
getProps
();
writerfilter
::
Reference
<
Properties
>::
Pointer_t
pProperties
=
rSprm
.
getProps
();
...
...
writerfilter/source/ooxml/Handler.cxx
Dosyayı görüntüle @
f2b815de
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
*/
*/
#include <ooxml/resourceids.hxx>
#include <ooxml/resourceids.hxx>
#include <resourcemodel/QNameToString.hxx>
#include "Handler.hxx"
#include "Handler.hxx"
namespace
writerfilter
{
namespace
writerfilter
{
...
...
writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
Dosyayı görüntüle @
f2b815de
...
@@ -107,7 +107,11 @@ writerfilter::Reference<Properties>::Pointer_t OOXMLPropertyImpl::getProps()
...
@@ -107,7 +107,11 @@ writerfilter::Reference<Properties>::Pointer_t OOXMLPropertyImpl::getProps()
string
OOXMLPropertyImpl
::
getName
()
const
string
OOXMLPropertyImpl
::
getName
()
const
{
{
string
sResult
=
(
*
QNameToString
::
Instance
())(
mId
);
string
sResult
;
#ifdef DEBUG_LOGGING
sResult
=
(
*
QNameToString
::
Instance
())(
mId
);
#endif
if
(
sResult
.
length
()
==
0
)
if
(
sResult
.
length
()
==
0
)
sResult
=
fastTokenToId
(
mId
);
sResult
=
fastTokenToId
(
mId
);
...
...
writerfilter/source/resourcemodel/qnametostrcore.cxx
Dosyayı görüntüle @
f2b815de
...
@@ -31,6 +31,7 @@ QNameToString::Pointer_t QNameToString::Instance()
...
@@ -31,6 +31,7 @@ QNameToString::Pointer_t QNameToString::Instance()
return
pInstance
;
return
pInstance
;
}
}
#ifdef DEBUG_LOGGING
string
QNameToString
::
operator
()(
Id
qName
)
string
QNameToString
::
operator
()(
Id
qName
)
{
{
Map
::
const_iterator
aIt
=
mMap
.
find
(
qName
);
Map
::
const_iterator
aIt
=
mMap
.
find
(
qName
);
...
@@ -40,6 +41,7 @@ string QNameToString::operator()(Id qName)
...
@@ -40,6 +41,7 @@ string QNameToString::operator()(Id qName)
return
string
();
return
string
();
}
}
#endif
QNameToString
::
QNameToString
()
QNameToString
::
QNameToString
()
{
{
...
...
writerfilter/source/rtftok/rtfsprm.cxx
Dosyayı görüntüle @
f2b815de
...
@@ -61,7 +61,11 @@ std::string RTFSprm::toString() const
...
@@ -61,7 +61,11 @@ std::string RTFSprm::toString() const
{
{
OStringBuffer
aBuf
(
"RTFSprm"
);
OStringBuffer
aBuf
(
"RTFSprm"
);
std
::
string
sResult
=
(
*
QNameToString
::
Instance
())(
m_nKeyword
);
std
::
string
sResult
;
#ifdef DEBUG_LOGGING
sResult
=
(
*
QNameToString
::
Instance
())(
m_nKeyword
);
#endif
aBuf
.
append
(
" ('"
);
aBuf
.
append
(
" ('"
);
if
(
sResult
.
length
()
==
0
)
if
(
sResult
.
length
()
==
0
)
...
...
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