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
4d4022fe
Kaydet (Commit)
4d4022fe
authored
Mar 24, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:constantfunction: xmloff
Change-Id: I0ddcaada71eaa53cd7e6320c6ccaa8d8971f6df0
üst
6618a6d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
41 deletions
+15
-41
DomExport.cxx
xmloff/source/core/DomExport.cxx
+0
-20
formattributes.cxx
xmloff/source/forms/formattributes.cxx
+0
-18
formattributes.hxx
xmloff/source/forms/formattributes.hxx
+15
-3
No files found.
xmloff/source/core/DomExport.cxx
Dosyayı görüntüle @
4d4022fe
...
...
@@ -63,16 +63,6 @@ public:
virtual
~
DomVisitor
()
{}
virtual
void
element
(
const
Reference
<
XElement
>&
)
{}
virtual
void
character
(
const
Reference
<
XCharacterData
>&
)
{}
void
attribute
(
const
Reference
<
XAttr
>&
)
{}
void
cdata
(
const
Reference
<
XCDATASection
>&
)
{}
void
comment
(
const
Reference
<
XComment
>&
)
{}
void
documentFragment
(
const
Reference
<
XDocumentFragment
>&
)
{}
void
document
(
const
Reference
<
XDocument
>&
)
{}
void
documentType
(
const
Reference
<
XDocumentType
>&
)
{}
void
entity
(
const
Reference
<
XEntity
>&
)
{}
void
entityReference
(
const
Reference
<
XEntityReference
>&
)
{}
void
notation
(
const
Reference
<
XNotation
>&
)
{}
void
processingInstruction
(
const
Reference
<
XProcessingInstruction
>&
)
{}
virtual
void
endElement
(
const
Reference
<
XElement
>&
)
{}
};
...
...
@@ -86,37 +76,27 @@ void visitNode( DomVisitor& rVisitor, const Reference<XNode>& xNode )
switch
(
xNode
->
getNodeType
()
)
{
case
NodeType_ATTRIBUTE_NODE
:
rVisitor
.
attribute
(
Reference
<
XAttr
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_CDATA_SECTION_NODE
:
rVisitor
.
cdata
(
Reference
<
XCDATASection
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_COMMENT_NODE
:
rVisitor
.
comment
(
Reference
<
XComment
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_DOCUMENT_FRAGMENT_NODE
:
rVisitor
.
documentFragment
(
Reference
<
XDocumentFragment
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_DOCUMENT_NODE
:
rVisitor
.
document
(
Reference
<
XDocument
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_DOCUMENT_TYPE_NODE
:
rVisitor
.
documentType
(
Reference
<
XDocumentType
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_ELEMENT_NODE
:
rVisitor
.
element
(
Reference
<
XElement
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_ENTITY_NODE
:
rVisitor
.
entity
(
Reference
<
XEntity
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_ENTITY_REFERENCE_NODE
:
rVisitor
.
entityReference
(
Reference
<
XEntityReference
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_NOTATION_NODE
:
rVisitor
.
notation
(
Reference
<
XNotation
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_PROCESSING_INSTRUCTION_NODE
:
rVisitor
.
processingInstruction
(
Reference
<
XProcessingInstruction
>
(
xNode
,
UNO_QUERY_THROW
)
);
break
;
case
NodeType_TEXT_NODE
:
rVisitor
.
character
(
Reference
<
XCharacterData
>
(
xNode
,
UNO_QUERY_THROW
)
);
...
...
xmloff/source/forms/formattributes.cxx
Dosyayı görüntüle @
4d4022fe
...
...
@@ -140,12 +140,6 @@ namespace xmloff
return
""
;
}
sal_uInt16
OAttributeMetaData
::
getDatabaseAttributeNamespace
(
sal_Int32
/*_nId*/
)
{
// nothing special here
return
XML_NAMESPACE_FORM
;
}
const
sal_Char
*
OAttributeMetaData
::
getBindingAttributeName
(
sal_Int32
_nId
)
{
switch
(
_nId
)
...
...
@@ -159,12 +153,6 @@ namespace xmloff
return
""
;
}
sal_uInt16
OAttributeMetaData
::
getBindingAttributeNamespace
(
sal_Int32
)
{
// nothing special here
return
XML_NAMESPACE_FORM
;
}
const
sal_Char
*
OAttributeMetaData
::
getSpecialAttributeName
(
sal_Int32
_nId
)
{
switch
(
_nId
)
...
...
@@ -214,12 +202,6 @@ namespace xmloff
return
""
;
}
sal_uInt16
OAttributeMetaData
::
getOfficeFormsAttributeNamespace
(
OfficeFormsAttributes
/* _eAttrib */
)
{
// nothing special here
return
XML_NAMESPACE_FORM
;
}
//= OAttribute2Property
OAttribute2Property
::
OAttribute2Property
()
{
...
...
xmloff/source/forms/formattributes.hxx
Dosyayı görüntüle @
4d4022fe
...
...
@@ -27,6 +27,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <sal/types.h>
#include <salhelper/simplereferenceobject.hxx>
#include <xmloff/xmlnmspe.hxx>
struct
SvXMLEnumMapEntry
;
...
...
@@ -181,7 +182,11 @@ namespace xmloff
@param _nId
the id of the attribute. Has to be one of the DA_* constants.
*/
static
sal_uInt16
getDatabaseAttributeNamespace
(
sal_Int32
_nId
);
static
inline
sal_uInt16
getDatabaseAttributeNamespace
(
sal_Int32
)
{
// nothing special here
return
XML_NAMESPACE_FORM
;
}
/** calculates the xml attribute representation of a special attribute.
@param _nId
...
...
@@ -199,7 +204,11 @@ namespace xmloff
@param _nId
the id of the attribute. Has to be one of the BA_* constants.
*/
static
sal_uInt16
getBindingAttributeNamespace
(
sal_Int32
_nId
);
static
inline
sal_uInt16
getBindingAttributeNamespace
(
sal_Int32
)
{
// nothing special here
return
XML_NAMESPACE_FORM
;
}
/** calculates the xml namespace key to use for a special attribute.
@param _nId
...
...
@@ -217,7 +226,10 @@ namespace xmloff
@param _nId
the id of the attribute
*/
static
sal_uInt16
getOfficeFormsAttributeNamespace
(
OfficeFormsAttributes
_eAttrib
);
static
inline
sal_uInt16
getOfficeFormsAttributeNamespace
(
OfficeFormsAttributes
)
{
// nothing special here
return
XML_NAMESPACE_FORM
;
}
};
//= OAttribute2Property
...
...
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