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
132e7c45
Kaydet (Commit)
132e7c45
authored
May 19, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: remove using namespace from headers
Change-Id: Ibbb234a15de9ddb71552ef083ade72d2ac724ee0
üst
4f6e3433
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
76 additions
and
73 deletions
+76
-73
TableManager.hxx
writerfilter/inc/resourcemodel/TableManager.hxx
+1
-1
util.hxx
writerfilter/inc/resourcemodel/util.hxx
+4
-5
DomainMapperTableHandler.hxx
writerfilter/source/dmapper/DomainMapperTableHandler.hxx
+1
-1
DomainMapper_Impl.hxx
writerfilter/source/dmapper/DomainMapper_Impl.hxx
+38
-38
StyleSheetTable.hxx
writerfilter/source/dmapper/StyleSheetTable.hxx
+6
-6
TablePropertiesHandler.hxx
writerfilter/source/dmapper/TablePropertiesHandler.hxx
+3
-3
TblStylePrHandler.cxx
writerfilter/source/dmapper/TblStylePrHandler.cxx
+2
-0
TblStylePrHandler.hxx
writerfilter/source/dmapper/TblStylePrHandler.hxx
+2
-2
TagLogger.cxx
writerfilter/source/resourcemodel/TagLogger.cxx
+19
-17
No files found.
writerfilter/inc/resourcemodel/TableManager.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -1045,7 +1045,7 @@ void TableManager<T, PropertiesPointer>::resolveCurrentTable()
...
@@ -1045,7 +1045,7 @@ void TableManager<T, PropertiesPointer>::resolveCurrentTable()
mpTableDataHandler
->
endTable
(
mTableDataStack
.
size
()
-
1
);
mpTableDataHandler
->
endTable
(
mTableDataStack
.
size
()
-
1
);
}
}
catch
(
uno
::
Exception
const
&
e
)
catch
(
css
::
uno
::
Exception
const
&
e
)
{
{
(
void
)
e
;
(
void
)
e
;
#if OSL_DEBUG_LEVEL > 0
#if OSL_DEBUG_LEVEL > 0
...
...
writerfilter/inc/resourcemodel/util.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -19,21 +19,20 @@
...
@@ -19,21 +19,20 @@
#ifndef INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#ifndef INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#define INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#define INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <string>
#include <string>
namespace
writerfilter
namespace
writerfilter
{
{
using
namespace
::
std
;
std
::
string
xmlify
(
const
std
::
string
&
str
);
using
namespace
::
com
::
sun
::
star
;
string
xmlify
(
const
string
&
str
);
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
st
ring
toString
(
uno
::
Reference
<
text
::
XTextRange
>
textRange
);
st
d
::
string
toString
(
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
textRange
);
#endif
#endif
}
}
#endif // INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
#endif // INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_UTIL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerfilter/source/dmapper/DomainMapperTableHandler.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -83,7 +83,7 @@ class DomainMapperTableHandler : public TableDataHandler<Handle_t , TablePropert
...
@@ -83,7 +83,7 @@ class DomainMapperTableHandler : public TableDataHandler<Handle_t , TablePropert
sal_Int32
m_nCellIndex
;
sal_Int32
m_nCellIndex
;
sal_Int32
m_nRowIndex
;
sal_Int32
m_nRowIndex
;
TableStyleSheetEntry
*
endTableGetTableStyle
(
TableInfo
&
rInfo
,
uno
::
Sequence
<
beans
::
PropertyValue
>&
rFrameProperties
);
TableStyleSheetEntry
*
endTableGetTableStyle
(
TableInfo
&
rInfo
,
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
rFrameProperties
);
CellPropertyValuesSeq_t
endTableGetCellProperties
(
TableInfo
&
rInfo
,
std
::
vector
<
HorizontallyMergedCell
>&
rMerges
);
CellPropertyValuesSeq_t
endTableGetCellProperties
(
TableInfo
&
rInfo
,
std
::
vector
<
HorizontallyMergedCell
>&
rMerges
);
RowPropertyValuesSeq_t
endTableGetRowProperties
();
RowPropertyValuesSeq_t
endTableGetRowProperties
();
...
...
writerfilter/source/dmapper/DomainMapper_Impl.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -181,8 +181,8 @@ struct TextAppendContext
...
@@ -181,8 +181,8 @@ struct TextAppendContext
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextCursor
>&
xCur
)
:
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextCursor
>&
xCur
)
:
xTextAppend
(
xAppend
)
xTextAppend
(
xAppend
)
{
{
xCursor
.
set
(
xCur
,
uno
::
UNO_QUERY
);
xCursor
.
set
(
xCur
,
css
::
uno
::
UNO_QUERY
);
xInsertPosition
.
set
(
xCursor
,
uno
::
UNO_QUERY
);
xInsertPosition
.
set
(
xCursor
,
css
::
uno
::
UNO_QUERY
);
}
}
};
};
...
@@ -246,7 +246,7 @@ struct RedlineParams
...
@@ -246,7 +246,7 @@ struct RedlineParams
sal_Int32
m_nToken
;
sal_Int32
m_nToken
;
/// This can hold properties of runs that had formatted 'track changes' properties
/// This can hold properties of runs that had formatted 'track changes' properties
uno
::
Sequence
<
beans
::
PropertyValue
>
m_aRevertProperties
;
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
m_aRevertProperties
;
};
};
typedef
boost
::
shared_ptr
<
RedlineParams
>
RedlineParamsPtr
;
typedef
boost
::
shared_ptr
<
RedlineParams
>
RedlineParamsPtr
;
...
@@ -272,19 +272,19 @@ struct LineNumberSettings
...
@@ -272,19 +272,19 @@ struct LineNumberSettings
/// Contains information about a table that will be potentially converted to a floating one at the section end.
/// Contains information about a table that will be potentially converted to a floating one at the section end.
struct
FloatingTableInfo
struct
FloatingTableInfo
{
{
uno
::
Reference
<
text
::
XTextRange
>
m_xStart
;
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
m_xStart
;
uno
::
Reference
<
text
::
XTextRange
>
m_xEnd
;
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
m_xEnd
;
uno
::
Sequence
<
beans
::
PropertyValue
>
m_aFrameProperties
;
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
m_aFrameProperties
;
sal_Int32
m_nTableWidth
;
sal_Int32
m_nTableWidth
;
FloatingTableInfo
(
uno
::
Reference
<
text
::
XTextRange
>
xStart
,
uno
::
Reference
<
text
::
XTextRange
>
xEnd
,
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
aFrameProperties
,
sal_Int32
nTableWidth
)
FloatingTableInfo
(
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
xStart
,
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
xEnd
,
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
aFrameProperties
,
sal_Int32
nTableWidth
)
:
m_xStart
(
xStart
),
:
m_xStart
(
xStart
),
m_xEnd
(
xEnd
),
m_xEnd
(
xEnd
),
m_aFrameProperties
(
aFrameProperties
),
m_aFrameProperties
(
aFrameProperties
),
m_nTableWidth
(
nTableWidth
)
m_nTableWidth
(
nTableWidth
)
{
{
}
}
uno
::
Any
getPropertyValue
(
const
OUString
&
propertyName
);
css
::
uno
::
Any
getPropertyValue
(
const
OUString
&
propertyName
);
};
};
class
DomainMapper
;
class
DomainMapper
;
...
@@ -304,7 +304,7 @@ private:
...
@@ -304,7 +304,7 @@ private:
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xComponentContext
;
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xComponentContext
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
m_xPageStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
m_xPageStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XText
>
m_xBodyText
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XText
>
m_xBodyText
;
::
com
::
sun
::
star
::
uno
::
Reference
<
text
::
XTextContent
>
m_xEmbedded
;
::
com
::
sun
::
star
::
uno
::
Reference
<
css
::
text
::
XTextContent
>
m_xEmbedded
;
TextAppendStack
m_aTextAppendStack
;
TextAppendStack
m_aTextAppendStack
;
...
@@ -365,9 +365,9 @@ private:
...
@@ -365,9 +365,9 @@ private:
bool
m_bIsCustomFtnMark
;
bool
m_bIsCustomFtnMark
;
//registered frame properties
//registered frame properties
::
com
::
sun
::
star
::
uno
::
Sequence
<
beans
::
PropertyValue
>
m_aFrameProperties
;
::
com
::
sun
::
star
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
m_aFrameProperties
;
::
com
::
sun
::
star
::
uno
::
Reference
<
text
::
XTextRange
>
m_xFrameStartRange
;
::
com
::
sun
::
star
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
m_xFrameStartRange
;
::
com
::
sun
::
star
::
uno
::
Reference
<
text
::
XTextRange
>
m_xFrameEndRange
;
::
com
::
sun
::
star
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
m_xFrameEndRange
;
// Redline stack
// Redline stack
std
::
stack
<
std
::
vector
<
RedlineParamsPtr
>
>
m_aRedlines
;
std
::
stack
<
std
::
vector
<
RedlineParamsPtr
>
>
m_aRedlines
;
...
@@ -388,11 +388,11 @@ private:
...
@@ -388,11 +388,11 @@ private:
bool
m_bSdt
;
bool
m_bSdt
;
bool
m_bIsFirstRun
;
bool
m_bIsFirstRun
;
uno
::
Reference
<
text
::
XTextCursor
>
xTOCMarkerCursor
;
css
::
uno
::
Reference
<
css
::
text
::
XTextCursor
>
xTOCMarkerCursor
;
uno
::
Reference
<
text
::
XTextCursor
>
mxTOCTextCursor
;
css
::
uno
::
Reference
<
css
::
text
::
XTextCursor
>
mxTOCTextCursor
;
//annotation import
//annotation import
uno
::
Reference
<
beans
::
XPropertySet
>
m_xAnnotationField
;
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
m_xAnnotationField
;
sal_Int32
m_nAnnotationId
;
sal_Int32
m_nAnnotationId
;
AnnotationPositions_t
m_aAnnotationPositions
;
AnnotationPositions_t
m_aAnnotationPositions
;
...
@@ -414,10 +414,10 @@ private:
...
@@ -414,10 +414,10 @@ private:
public
:
public
:
DomainMapper_Impl
(
DomainMapper_Impl
(
DomainMapper
&
rDMapper
,
DomainMapper
&
rDMapper
,
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
,
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
,
uno
::
Reference
<
lang
::
XComponent
>
xModel
,
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
xModel
,
SourceDocumentType
eDocumentType
,
SourceDocumentType
eDocumentType
,
uno
::
Reference
<
text
::
XTextRange
>
xInsertTextRange
,
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
xInsertTextRange
,
bool
bIsNewDoc
);
bool
bIsNewDoc
);
virtual
~
DomainMapper_Impl
();
virtual
~
DomainMapper_Impl
();
...
@@ -440,7 +440,7 @@ public:
...
@@ -440,7 +440,7 @@ public:
{
{
return
m_xTextDocument
;
return
m_xTextDocument
;
}
}
void
SetDocumentSettingsProperty
(
const
OUString
&
rPropName
,
const
uno
::
Any
&
rValue
);
void
SetDocumentSettingsProperty
(
const
OUString
&
rPropName
,
const
css
::
uno
::
Any
&
rValue
);
void
CreateRedline
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextRange
>
xRange
,
RedlineParamsPtr
&
pRedline
);
void
CreateRedline
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextRange
>
xRange
,
RedlineParamsPtr
&
pRedline
);
...
@@ -481,7 +481,7 @@ public:
...
@@ -481,7 +481,7 @@ public:
void
finishParagraph
(
PropertyMapPtr
pPropertyMap
);
void
finishParagraph
(
PropertyMapPtr
pPropertyMap
);
void
appendTextPortion
(
const
OUString
&
rString
,
PropertyMapPtr
pPropertyMap
);
void
appendTextPortion
(
const
OUString
&
rString
,
PropertyMapPtr
pPropertyMap
);
void
appendTextContent
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextContent
>
,
void
appendTextContent
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextContent
>
,
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
);
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
);
void
appendOLE
(
const
OUString
&
rStreamName
,
OLEHandlerPtr
pOleHandler
);
void
appendOLE
(
const
OUString
&
rStreamName
,
OLEHandlerPtr
pOleHandler
);
void
appendStarMath
(
const
Value
&
v
);
void
appendStarMath
(
const
Value
&
v
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
appendTextSectionAfter
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
appendTextSectionAfter
(
...
@@ -580,36 +580,36 @@ public:
...
@@ -580,36 +580,36 @@ public:
void
handleFieldAsk
void
handleFieldAsk
(
FieldContextPtr
pContext
,
(
FieldContextPtr
pContext
,
PropertyNameSupplier
&
rPropNameSupplier
,
PropertyNameSupplier
&
rPropNameSupplier
,
uno
::
Reference
<
uno
::
XInterface
>
&
xFieldInterface
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
xFieldInterface
,
uno
::
Reference
<
beans
::
XPropertySet
>
xFieldProperties
);
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xFieldProperties
);
void
handleAutoNum
void
handleAutoNum
(
FieldContextPtr
pContext
,
(
FieldContextPtr
pContext
,
PropertyNameSupplier
&
rPropNameSupplier
,
PropertyNameSupplier
&
rPropNameSupplier
,
uno
::
Reference
<
uno
::
XInterface
>
&
xFieldInterface
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
xFieldInterface
,
uno
::
Reference
<
beans
::
XPropertySet
>
xFieldProperties
);
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xFieldProperties
);
void
handleAuthor
void
handleAuthor
(
OUString
const
&
rFirstParam
,
(
OUString
const
&
rFirstParam
,
PropertyNameSupplier
&
rPropNameSupplier
,
PropertyNameSupplier
&
rPropNameSupplier
,
uno
::
Reference
<
uno
::
XInterface
>
&
xFieldInterface
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
xFieldInterface
,
uno
::
Reference
<
beans
::
XPropertySet
>
xFieldProperties
,
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xFieldProperties
,
FieldId
eFieldId
);
FieldId
eFieldId
);
void
handleDocProperty
void
handleDocProperty
(
FieldContextPtr
pContext
,
(
FieldContextPtr
pContext
,
OUString
const
&
rFirstParam
,
OUString
const
&
rFirstParam
,
PropertyNameSupplier
&
rPropNameSupplier
,
PropertyNameSupplier
&
rPropNameSupplier
,
uno
::
Reference
<
uno
::
XInterface
>
&
xFieldInterface
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
xFieldInterface
,
uno
::
Reference
<
beans
::
XPropertySet
>
xFieldProperties
);
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xFieldProperties
);
void
handleToc
void
handleToc
(
FieldContextPtr
pContext
,
(
FieldContextPtr
pContext
,
PropertyNameSupplier
&
rPropNameSupplier
,
PropertyNameSupplier
&
rPropNameSupplier
,
uno
::
Reference
<
uno
::
XInterface
>
&
xFieldInterface
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
xFieldInterface
,
uno
::
Reference
<
beans
::
XPropertySet
>
xFieldProperties
,
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xFieldProperties
,
const
OUString
&
sTOCServiceName
);
const
OUString
&
sTOCServiceName
);
void
handleIndex
void
handleIndex
(
FieldContextPtr
pContext
,
(
FieldContextPtr
pContext
,
PropertyNameSupplier
&
rPropNameSupplier
,
PropertyNameSupplier
&
rPropNameSupplier
,
uno
::
Reference
<
uno
::
XInterface
>
&
xFieldInterface
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
xFieldInterface
,
uno
::
Reference
<
beans
::
XPropertySet
>
xFieldProperties
,
css
::
uno
::
Reference
<
css
::
beans
::
XPropertySet
>
xFieldProperties
,
const
OUString
&
sTOCServiceName
);
const
OUString
&
sTOCServiceName
);
void
handleBibliography
void
handleBibliography
...
@@ -701,7 +701,7 @@ public:
...
@@ -701,7 +701,7 @@ public:
void
SetCurrentRedlineDate
(
const
OUString
&
sDate
);
void
SetCurrentRedlineDate
(
const
OUString
&
sDate
);
void
SetCurrentRedlineId
(
sal_Int32
nId
);
void
SetCurrentRedlineId
(
sal_Int32
nId
);
void
SetCurrentRedlineToken
(
sal_Int32
nToken
);
void
SetCurrentRedlineToken
(
sal_Int32
nToken
);
void
SetCurrentRedlineRevertProperties
(
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
aProperties
);
void
SetCurrentRedlineRevertProperties
(
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
aProperties
);
void
RemoveCurrentRedline
(
);
void
RemoveCurrentRedline
(
);
void
ResetParaMarkerRedline
(
);
void
ResetParaMarkerRedline
(
);
void
SetCurrentRedlineInitials
(
const
OUString
&
sInitials
);
void
SetCurrentRedlineInitials
(
const
OUString
&
sInitials
);
...
@@ -762,8 +762,8 @@ public:
...
@@ -762,8 +762,8 @@ public:
std
::
vector
<
FloatingTableInfo
>
m_aPendingFloatingTables
;
std
::
vector
<
FloatingTableInfo
>
m_aPendingFloatingTables
;
/// Append a property to a sub-grabbag if necessary (e.g. 'lineRule', 'auto')
/// Append a property to a sub-grabbag if necessary (e.g. 'lineRule', 'auto')
void
appendGrabBag
(
std
::
vector
<
beans
::
PropertyValue
>&
rInteropGrabBag
,
const
OUString
&
aKey
,
const
OUString
&
aValue
);
void
appendGrabBag
(
std
::
vector
<
css
::
beans
::
PropertyValue
>&
rInteropGrabBag
,
const
OUString
&
aKey
,
const
OUString
&
aValue
);
void
appendGrabBag
(
std
::
vector
<
beans
::
PropertyValue
>&
rInteropGrabBag
,
const
OUString
&
aKey
,
std
::
vector
<
beans
::
PropertyValue
>&
rValue
);
void
appendGrabBag
(
std
::
vector
<
css
::
beans
::
PropertyValue
>&
rInteropGrabBag
,
const
OUString
&
aKey
,
std
::
vector
<
css
::
beans
::
PropertyValue
>&
rValue
);
/// Enable, disable an check status of grabbags
/// Enable, disable an check status of grabbags
void
enableInteropGrabBag
(
const
OUString
&
aName
);
void
enableInteropGrabBag
(
const
OUString
&
aName
);
...
@@ -774,10 +774,10 @@ public:
...
@@ -774,10 +774,10 @@ public:
OUString
m_aInteropGrabBagName
;
OUString
m_aInteropGrabBagName
;
/// A toplevel dmapper grabbag, like 'pPr'.
/// A toplevel dmapper grabbag, like 'pPr'.
std
::
vector
<
beans
::
PropertyValue
>
m_aInteropGrabBag
;
std
::
vector
<
css
::
beans
::
PropertyValue
>
m_aInteropGrabBag
;
/// A sub-grabbag of m_aInteropGrabBag, like 'spacing'.
/// A sub-grabbag of m_aInteropGrabBag, like 'spacing'.
std
::
vector
<
beans
::
PropertyValue
>
m_aSubInteropGrabBag
;
std
::
vector
<
css
::
beans
::
PropertyValue
>
m_aSubInteropGrabBag
;
/// ST_PositivePercentage values we received
/// ST_PositivePercentage values we received
std
::
queue
<
OUString
>
m_aPositivePercentages
;
std
::
queue
<
OUString
>
m_aPositivePercentages
;
...
@@ -791,7 +791,7 @@ public:
...
@@ -791,7 +791,7 @@ public:
private
:
private
:
void
PushPageHeaderFooter
(
bool
bHeader
,
SectionPropertyMap
::
PageType
eType
);
void
PushPageHeaderFooter
(
bool
bHeader
,
SectionPropertyMap
::
PageType
eType
);
std
::
vector
<
uno
::
Reference
<
drawing
::
XShape
>
>
m_vTextFramesForChaining
;
std
::
vector
<
css
::
uno
::
Reference
<
css
::
drawing
::
XShape
>
>
m_vTextFramesForChaining
;
};
};
}
//namespace dmapper
}
//namespace dmapper
}
//namespace writerfilter
}
//namespace writerfilter
...
...
writerfilter/source/dmapper/StyleSheetTable.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -50,7 +50,7 @@ enum StyleType
...
@@ -50,7 +50,7 @@ enum StyleType
struct
StyleSheetTable_Impl
;
struct
StyleSheetTable_Impl
;
class
StyleSheetEntry
class
StyleSheetEntry
{
{
std
::
vector
<
beans
::
PropertyValue
>
m_aInteropGrabBag
;
std
::
vector
<
css
::
beans
::
PropertyValue
>
m_aInteropGrabBag
;
public
:
public
:
OUString
sStyleIdentifierI
;
OUString
sStyleIdentifierI
;
OUString
sStyleIdentifierD
;
OUString
sStyleIdentifierD
;
...
@@ -64,13 +64,13 @@ public:
...
@@ -64,13 +64,13 @@ public:
OUString
sStyleName1
;
OUString
sStyleName1
;
PropertyMapPtr
pProperties
;
PropertyMapPtr
pProperties
;
OUString
sConvertedStyleName
;
OUString
sConvertedStyleName
;
std
::
vector
<
beans
::
PropertyValue
>
aLatentStyles
;
///< Attributes of latentStyles
std
::
vector
<
css
::
beans
::
PropertyValue
>
aLatentStyles
;
///< Attributes of latentStyles
std
::
vector
<
beans
::
PropertyValue
>
aLsdExceptions
;
///< List of lsdException attribute lists
std
::
vector
<
css
::
beans
::
PropertyValue
>
aLsdExceptions
;
///< List of lsdException attribute lists
bool
bAutoRedefine
;
///< Writer calls this auto-update.
bool
bAutoRedefine
;
///< Writer calls this auto-update.
void
AppendInteropGrabBag
(
beans
::
PropertyValue
aValue
);
void
AppendInteropGrabBag
(
css
::
beans
::
PropertyValue
aValue
);
beans
::
PropertyValue
GetInteropGrabBag
();
///< Used for table styles, has a name.
css
::
beans
::
PropertyValue
GetInteropGrabBag
();
///< Used for table styles, has a name.
beans
::
PropertyValues
GetInteropGrabBagSeq
();
///< Used for existing styles, just a list of properties.
css
::
beans
::
PropertyValues
GetInteropGrabBagSeq
();
///< Used for existing styles, just a list of properties.
StyleSheetEntry
();
StyleSheetEntry
();
virtual
~
StyleSheetEntry
();
virtual
~
StyleSheetEntry
();
...
...
writerfilter/source/dmapper/TablePropertiesHandler.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -39,9 +39,9 @@ typedef TableManager<Handle_t , TablePropertyMapPtr > DomainMapperTableManager_B
...
@@ -39,9 +39,9 @@ typedef TableManager<Handle_t , TablePropertyMapPtr > DomainMapperTableManager_B
class
TablePropertiesHandler
class
TablePropertiesHandler
{
{
private
:
private
:
vector
<
PropertyMapPtr
>
m_rPropertiesStack
;
std
::
vector
<
PropertyMapPtr
>
m_rPropertiesStack
;
PropertyMapPtr
m_pCurrentProperties
;
PropertyMapPtr
m_pCurrentProperties
;
std
::
vector
<
beans
::
PropertyValue
>*
m_pCurrentInteropGrabBag
;
std
::
vector
<
css
::
beans
::
PropertyValue
>*
m_pCurrentInteropGrabBag
;
DomainMapperTableManager_Base_t
*
m_pTableManager
;
DomainMapperTableManager_Base_t
*
m_pTableManager
;
bool
m_bOOXML
;
bool
m_bOOXML
;
...
@@ -61,7 +61,7 @@ public:
...
@@ -61,7 +61,7 @@ public:
m_pCurrentProperties
=
pProperties
;
m_pCurrentProperties
=
pProperties
;
};
};
void
SetInteropGrabBag
(
std
::
vector
<
beans
::
PropertyValue
>&
rValue
);
void
SetInteropGrabBag
(
std
::
vector
<
css
::
beans
::
PropertyValue
>&
rValue
);
private
:
private
:
...
...
writerfilter/source/dmapper/TblStylePrHandler.cxx
Dosyayı görüntüle @
132e7c45
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#include "dmapperLoggers.hxx"
#include "dmapperLoggers.hxx"
using
namespace
css
;
namespace
writerfilter
{
namespace
writerfilter
{
namespace
dmapper
{
namespace
dmapper
{
...
...
writerfilter/source/dmapper/TblStylePrHandler.hxx
Dosyayı görüntüle @
132e7c45
...
@@ -57,7 +57,7 @@ private:
...
@@ -57,7 +57,7 @@ private:
TblStyleType
m_nType
;
TblStyleType
m_nType
;
PropertyMapPtr
m_pProperties
;
PropertyMapPtr
m_pProperties
;
std
::
vector
<
beans
::
PropertyValue
>
m_aInteropGrabBag
;
std
::
vector
<
css
::
beans
::
PropertyValue
>
m_aInteropGrabBag
;
// Properties
// Properties
virtual
void
lcl_attribute
(
Id
Name
,
Value
&
val
)
SAL_OVERRIDE
;
virtual
void
lcl_attribute
(
Id
Name
,
Value
&
val
)
SAL_OVERRIDE
;
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
inline
TblStyleType
getType
()
{
return
m_nType
;
};
inline
TblStyleType
getType
()
{
return
m_nType
;
};
OUString
getTypeString
();
OUString
getTypeString
();
void
appendInteropGrabBag
(
const
OUString
&
aKey
,
const
OUString
&
aValue
);
void
appendInteropGrabBag
(
const
OUString
&
aKey
,
const
OUString
&
aValue
);
beans
::
PropertyValue
getInteropGrabBag
(
const
OUString
&
aName
);
css
::
beans
::
PropertyValue
getInteropGrabBag
(
const
OUString
&
aName
);
private
:
private
:
...
...
writerfilter/source/resourcemodel/TagLogger.cxx
Dosyayı görüntüle @
132e7c45
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
#include <resourcemodel/QNameToString.hxx>
#include <resourcemodel/QNameToString.hxx>
#include <boost/unordered_map.hpp>
#include <boost/unordered_map.hpp>
using
namespace
css
;
namespace
writerfilter
namespace
writerfilter
{
{
TagLogger
::
TagLogger
(
const
char
*
name
)
TagLogger
::
TagLogger
(
const
char
*
name
)
...
@@ -38,12 +40,12 @@ namespace writerfilter
...
@@ -38,12 +40,12 @@ namespace writerfilter
}
}
#ifdef DEBUG_IMPORT
#ifdef DEBUG_IMPORT
void
TagLogger
::
setFileName
(
const
string
&
filename
)
void
TagLogger
::
setFileName
(
const
st
d
::
st
ring
&
filename
)
{
{
if
(
pWriter
)
if
(
pWriter
)
endDocument
();
endDocument
();
string
fileName
;
st
d
::
st
ring
fileName
;
char
*
temp
=
getenv
(
"TAGLOGGERTMP"
);
char
*
temp
=
getenv
(
"TAGLOGGERTMP"
);
if
(
temp
!=
NULL
)
if
(
temp
!=
NULL
)
...
@@ -51,7 +53,7 @@ namespace writerfilter
...
@@ -51,7 +53,7 @@ namespace writerfilter
else
else
fileName
+=
"/tmp"
;
fileName
+=
"/tmp"
;
string
sPrefix
=
filename
;
st
d
::
st
ring
sPrefix
=
filename
;
size_t
nLastSlash
=
sPrefix
.
find_last_of
(
'/'
);
size_t
nLastSlash
=
sPrefix
.
find_last_of
(
'/'
);
size_t
nLastBackslash
=
sPrefix
.
find_last_of
(
'\\'
);
size_t
nLastBackslash
=
sPrefix
.
find_last_of
(
'\\'
);
size_t
nCutPos
=
nLastSlash
;
size_t
nCutPos
=
nLastSlash
;
...
@@ -87,19 +89,19 @@ namespace writerfilter
...
@@ -87,19 +89,19 @@ namespace writerfilter
TagLogger
::
Pointer_t
TagLogger
::
getInstance
(
const
char
*
name
)
TagLogger
::
Pointer_t
TagLogger
::
getInstance
(
const
char
*
name
)
{
{
typedef
boost
::
unordered_map
<
string
,
TagLogger
::
Pointer_t
>
TagLoggerHashMap_t
;
typedef
boost
::
unordered_map
<
st
d
::
st
ring
,
TagLogger
::
Pointer_t
>
TagLoggerHashMap_t
;
static
TagLoggerHashMap_t
tagLoggers
;
static
TagLoggerHashMap_t
tagLoggers
;
TagLoggerHashMap_t
::
iterator
aIt
=
tagLoggers
.
end
();
TagLoggerHashMap_t
::
iterator
aIt
=
tagLoggers
.
end
();
string
sName
=
name
;
st
d
::
st
ring
sName
=
name
;
if
(
!
tagLoggers
.
empty
())
if
(
!
tagLoggers
.
empty
())
aIt
=
tagLoggers
.
find
(
sName
);
aIt
=
tagLoggers
.
find
(
sName
);
if
(
aIt
==
tagLoggers
.
end
())
if
(
aIt
==
tagLoggers
.
end
())
{
{
TagLogger
::
Pointer_t
pTagLogger
(
new
TagLogger
(
name
));
TagLogger
::
Pointer_t
pTagLogger
(
new
TagLogger
(
name
));
pair
<
string
,
TagLogger
::
Pointer_t
>
entry
(
sName
,
pTagLogger
);
std
::
pair
<
std
::
string
,
TagLogger
::
Pointer_t
>
entry
(
sName
,
pTagLogger
);
aIt
=
tagLoggers
.
insert
(
entry
).
first
;
aIt
=
tagLoggers
.
insert
(
entry
).
first
;
}
}
...
@@ -107,7 +109,7 @@ namespace writerfilter
...
@@ -107,7 +109,7 @@ namespace writerfilter
}
}
#ifdef DEBUG_DOMAINMAPPER
#ifdef DEBUG_DOMAINMAPPER
void
TagLogger
::
element
(
const
string
&
name
)
void
TagLogger
::
element
(
const
st
d
::
st
ring
&
name
)
{
{
startElement
(
name
);
startElement
(
name
);
endElement
();
endElement
();
...
@@ -148,7 +150,7 @@ namespace writerfilter
...
@@ -148,7 +150,7 @@ namespace writerfilter
#endif
#endif
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
void
TagLogger
::
startElement
(
const
string
&
name
)
void
TagLogger
::
startElement
(
const
st
d
::
st
ring
&
name
)
{
{
xmlChar
*
xmlName
=
xmlCharStrdup
(
name
.
c_str
()
);
xmlChar
*
xmlName
=
xmlCharStrdup
(
name
.
c_str
()
);
xmlTextWriterStartElement
(
pWriter
,
xmlName
);
xmlTextWriterStartElement
(
pWriter
,
xmlName
);
...
@@ -156,7 +158,7 @@ namespace writerfilter
...
@@ -156,7 +158,7 @@ namespace writerfilter
}
}
#endif
#endif
void
TagLogger
::
attribute
(
const
st
ring
&
name
,
const
string
&
value
)
void
TagLogger
::
attribute
(
const
st
d
::
string
&
name
,
const
std
::
string
&
value
)
{
{
xmlChar
*
xmlName
=
xmlCharStrdup
(
name
.
c_str
()
);
xmlChar
*
xmlName
=
xmlCharStrdup
(
name
.
c_str
()
);
xmlChar
*
xmlValue
=
xmlCharStrdup
(
value
.
c_str
()
);
xmlChar
*
xmlValue
=
xmlCharStrdup
(
value
.
c_str
()
);
...
@@ -167,12 +169,12 @@ namespace writerfilter
...
@@ -167,12 +169,12 @@ namespace writerfilter
}
}
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
void
TagLogger
::
attribute
(
const
string
&
name
,
const
OUString
&
value
)
void
TagLogger
::
attribute
(
const
st
d
::
st
ring
&
name
,
const
OUString
&
value
)
{
{
attribute
(
name
,
OUStringToOString
(
value
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
attribute
(
name
,
OUStringToOString
(
value
,
RTL_TEXTENCODING_ASCII_US
).
getStr
()
);
}
}
void
TagLogger
::
attribute
(
const
string
&
name
,
sal_uInt32
value
)
void
TagLogger
::
attribute
(
const
st
d
::
st
ring
&
name
,
sal_uInt32
value
)
{
{
xmlChar
*
xmlName
=
xmlCharStrdup
(
name
.
c_str
()
);
xmlChar
*
xmlName
=
xmlCharStrdup
(
name
.
c_str
()
);
xmlTextWriterWriteFormatAttribute
(
pWriter
,
xmlName
,
xmlTextWriterWriteFormatAttribute
(
pWriter
,
xmlName
,
...
@@ -180,11 +182,11 @@ namespace writerfilter
...
@@ -180,11 +182,11 @@ namespace writerfilter
xmlFree
(
xmlName
);
xmlFree
(
xmlName
);
}
}
void
TagLogger
::
attribute
(
const
string
&
name
,
const
uno
::
Any
aAny
)
void
TagLogger
::
attribute
(
const
st
d
::
st
ring
&
name
,
const
uno
::
Any
aAny
)
{
{
string
aTmpStrInt
;
st
d
::
st
ring
aTmpStrInt
;
string
aTmpStrFloat
;
st
d
::
st
ring
aTmpStrFloat
;
string
aTmpStrString
;
st
d
::
st
ring
aTmpStrString
;
sal_Int32
nInt
=
0
;
sal_Int32
nInt
=
0
;
float
nFloat
=
0.0
;
float
nFloat
=
0.0
;
...
@@ -208,7 +210,7 @@ namespace writerfilter
...
@@ -208,7 +210,7 @@ namespace writerfilter
xmlFree
(
xmlName
);
xmlFree
(
xmlName
);
}
}
void
TagLogger
::
chars
(
const
string
&
rChars
)
void
TagLogger
::
chars
(
const
st
d
::
st
ring
&
rChars
)
{
{
xmlChar
*
xmlChars
=
xmlCharStrdup
(
rChars
.
c_str
()
);
xmlChar
*
xmlChars
=
xmlCharStrdup
(
rChars
.
c_str
()
);
xmlTextWriterWriteString
(
pWriter
,
xmlChars
);
xmlTextWriterWriteString
(
pWriter
,
xmlChars
);
...
@@ -277,7 +279,7 @@ namespace writerfilter
...
@@ -277,7 +279,7 @@ namespace writerfilter
{
{
m_pLogger
->
startElement
(
"sprm"
);
m_pLogger
->
startElement
(
"sprm"
);
string
sName
;
st
d
::
st
ring
sName
;
if
(
mpIdToString
!=
IdToString
::
Pointer_t
())
if
(
mpIdToString
!=
IdToString
::
Pointer_t
())
sName
=
mpIdToString
->
toString
(
rSprm
.
getId
());
sName
=
mpIdToString
->
toString
(
rSprm
.
getId
());
...
...
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