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
0b7ef695
Kaydet (Commit)
0b7ef695
authored
Ara 09, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: handle RDF mark in SwFltControlStack::SetAttrInDoc()
Change-Id: I13e510e305c4aa24c37b1c25b4c3116ef3f06a8a
üst
97824ec9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
+35
-2
rdfhelper.hxx
sw/inc/rdfhelper.hxx
+2
-0
rdfhelper.cxx
sw/source/core/doc/rdfhelper.cxx
+4
-0
fltshell.cxx
sw/source/filter/basflt/fltshell.cxx
+28
-1
ww8par5.cxx
sw/source/filter/ww8/ww8par5.cxx
+1
-1
No files found.
sw/inc/rdfhelper.hxx
Dosyayı görüntüle @
0b7ef695
...
...
@@ -24,6 +24,8 @@ class SW_DLLPUBLIC SwRDFHelper
public
:
/// Gets all (rTextNode, key, value) statements in RDF graphs of type rType.
static
std
::
map
<
OUString
,
OUString
>
getTextNodeStatements
(
const
OUString
&
rType
,
SwTextNode
&
rTextNode
);
/// Add an (rTextNode, key, value) statement in the graph of type rType -- or if it does not exist, create a graph at rPath first.
static
void
addTextNodeStatement
(
const
OUString
&
rType
,
const
OUString
&
rPath
,
SwTextNode
&
rTextNode
,
const
OUString
&
rKey
,
const
OUString
&
rValue
);
};
#endif // INCLUDED_SW_INC_RDFHELPER_HXX
...
...
sw/source/core/doc/rdfhelper.cxx
Dosyayı görüntüle @
0b7ef695
...
...
@@ -48,4 +48,8 @@ std::map<OUString, OUString> SwRDFHelper::getTextNodeStatements(const OUString&
return
aRet
;
}
void
SwRDFHelper
::
addTextNodeStatement
(
const
OUString
&
/*rType*/
,
const
OUString
&
/*rPath*/
,
SwTextNode
&
/*rTextNode*/
,
const
OUString
&
/*rKey*/
,
const
OUString
&
/*rValue*/
)
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/filter/basflt/fltshell.cxx
Dosyayı görüntüle @
0b7ef695
...
...
@@ -64,6 +64,7 @@
#include <fltshell.hxx>
#include <viewsh.hxx>
#include <shellres.hxx>
#include <rdfhelper.hxx>
using
namespace
com
::
sun
::
star
;
...
...
@@ -80,6 +81,14 @@ static SwContentNode* GetContentNode(SwDoc* pDoc, SwNodeIndex& rIdx, bool bNext)
return
pCNd
;
}
static
OUString
lcl_getTypePath
(
const
OUString
&
rType
)
{
OUString
aRet
;
if
(
rType
==
"urn:tscp:names:baf:1.1"
)
aRet
=
"tscp/baf.rdf"
;
return
aRet
;
}
// Stack entry for all text attributes
SwFltStackEntry
::
SwFltStackEntry
(
const
SwPosition
&
rStartPos
,
SfxPoolItem
*
pHt
)
:
m_aMkPos
(
rStartPos
)
...
...
@@ -614,7 +623,25 @@ void SwFltControlStack::SetAttrInDoc(const SwPosition& rTmpPos,
{
if
(
MakeBookRegionOrPoint
(
rEntry
,
pDoc
,
aRegion
,
true
))
{
// TODO handle RDF mark
SwFltRDFMark
*
pMark
=
static_cast
<
SwFltRDFMark
*>
(
rEntry
.
pAttr
);
if
(
aRegion
.
GetNode
().
IsTextNode
())
{
SwTextNode
&
rTextNode
=
*
aRegion
.
GetNode
().
GetTextNode
();
for
(
const
std
::
pair
<
OUString
,
OUString
>&
rAttribute
:
pMark
->
GetAttributes
())
{
sal_Int32
nIndex
=
rAttribute
.
first
.
indexOf
(
'#'
);
if
(
nIndex
==
-
1
)
continue
;
OUString
aTypeNS
=
rAttribute
.
first
.
copy
(
0
,
nIndex
);
OUString
aMetadataFilePath
=
lcl_getTypePath
(
aTypeNS
);
if
(
aMetadataFilePath
.
isEmpty
())
continue
;
SwRDFHelper
::
addTextNodeStatement
(
aTypeNS
,
aMetadataFilePath
,
rTextNode
,
rAttribute
.
first
,
rAttribute
.
second
);
}
}
}
else
SAL_WARN
(
"sw"
,
"failed to make book region or point"
);
...
...
sw/source/filter/ww8/ww8par5.cxx
Dosyayı görüntüle @
0b7ef695
...
...
@@ -253,7 +253,7 @@ long SwWW8ImplReader::Read_FactoidBook(WW8PLCFManResult*)
SwFltRDFMark
aMark
;
aMark
.
SetHandle
(
pFactoidBook
->
getHandle
());
GetSmartTagInfo
(
aMark
);
m_pReffedStck
->
NewAttr
(
*
m_pPaM
->
GetPoint
(),
CntUInt16Item
(
RES_FLTR_RDFMARK
,
pFactoidBook
->
getHandle
())
);
m_pReffedStck
->
NewAttr
(
*
m_pPaM
->
GetPoint
(),
aMark
);
}
}
return
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