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
6b07a6ee
Kaydet (Commit)
6b07a6ee
authored
Şub 01, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Extract SfxUndoManager::dumpAsXml() from sw
Change-Id: Ic031b63641e0fd0fbd1524657082188d9ce78fcf
üst
bfceafa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
undo.hxx
include/svl/undo.hxx
+2
-0
undo.cxx
svl/source/undo/undo.cxx
+11
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+0
-13
UndoManager.hxx
sw/source/core/inc/UndoManager.hxx
+0
-2
No files found.
include/svl/undo.hxx
Dosyayı görüntüle @
6b07a6ee
...
@@ -368,6 +368,8 @@ public:
...
@@ -368,6 +368,8 @@ public:
*/
*/
void
RemoveOldestUndoActions
(
size_t
const
i_count
);
void
RemoveOldestUndoActions
(
size_t
const
i_count
);
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
protected
:
protected
:
bool
UndoWithContext
(
SfxUndoContext
&
i_context
);
bool
UndoWithContext
(
SfxUndoContext
&
i_context
);
bool
RedoWithContext
(
SfxUndoContext
&
i_context
);
bool
RedoWithContext
(
SfxUndoContext
&
i_context
);
...
...
svl/source/undo/undo.cxx
Dosyayı görüntüle @
6b07a6ee
...
@@ -1279,6 +1279,17 @@ void SfxUndoManager::RemoveOldestUndoActions( size_t const i_count )
...
@@ -1279,6 +1279,17 @@ void SfxUndoManager::RemoveOldestUndoActions( size_t const i_count )
}
}
}
}
void
SfxUndoManager
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"sfxUndoManager"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nUndoActionCount"
),
BAD_CAST
(
OString
::
number
(
GetUndoActionCount
()).
getStr
()));
for
(
size_t
i
=
0
;
i
<
GetUndoActionCount
();
++
i
)
GetUndoAction
(
i
)
->
dumpAsXml
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
struct
SfxListUndoAction
::
Impl
struct
SfxListUndoAction
::
Impl
{
{
sal_uInt16
mnId
;
sal_uInt16
mnId
;
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
6b07a6ee
...
@@ -656,17 +656,4 @@ void SwExtraRedlineTbl::dumpAsXml( xmlTextWriterPtr w ) const
...
@@ -656,17 +656,4 @@ void SwExtraRedlineTbl::dumpAsXml( xmlTextWriterPtr w ) const
writer
.
endElement
(
);
// swextraredlinetbl
writer
.
endElement
(
);
// swextraredlinetbl
}
}
void
sw
::
UndoManager
::
dumpAsXml
(
xmlTextWriterPtr
w
)
{
WriterHelper
writer
(
w
);
writer
.
startElement
(
"m_pUndoManager"
);
writer
.
writeFormatAttribute
(
"nUndoActionCount"
,
TMP_FORMAT
,
GetUndoActionCount
());
for
(
size_t
i
=
0
;
i
<
GetUndoActionCount
();
++
i
)
GetUndoAction
(
i
)
->
dumpAsXml
(
w
);
writer
.
endElement
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/inc/UndoManager.hxx
Dosyayı görüntüle @
6b07a6ee
...
@@ -85,8 +85,6 @@ public:
...
@@ -85,8 +85,6 @@ public:
SwNodes
const
&
GetUndoNodes
()
const
;
SwNodes
const
&
GetUndoNodes
()
const
;
SwNodes
&
GetUndoNodes
();
SwNodes
&
GetUndoNodes
();
void
dumpAsXml
(
xmlTextWriterPtr
w
);
private
:
private
:
IDocumentDrawModelAccess
&
m_rDrawModelAccess
;
IDocumentDrawModelAccess
&
m_rDrawModelAccess
;
IDocumentRedlineAccess
&
m_rRedlineAccess
;
IDocumentRedlineAccess
&
m_rRedlineAccess
;
...
...
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