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
f27e7582
Kaydet (Commit)
f27e7582
authored
Tem 08, 2014
tarafından
Oliver-Rainer Wittmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
125215: *.docx import: Bookmark ID has to be treated as an Integer
üst
87637364
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+4
-1
DomainMapper_Impl.cxx
writerfilter/source/dmapper/DomainMapper_Impl.cxx
+5
-3
DomainMapper_Impl.hxx
writerfilter/source/dmapper/DomainMapper_Impl.hxx
+4
-2
No files found.
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
f27e7582
...
...
@@ -1413,18 +1413,21 @@ void DomainMapper::lcl_attribute(Id nName, Value & val)
case
NS_rtf
:
:
LN_endnote
:
/* WRITERFILTERSTATUS: done: 0, planned: 0.5, spent: 0 */
break
;
case
NS_rtf
:
:
LN_BOOKMARKNAME
:
/* WRITERFILTERSTATUS: done: 0, planned: 0.5, spent: 0 */
// sStringValue contains the bookmark name
sLocalBookmarkName
=
sStringValue
;
break
;
case
NS_rtf
:
:
LN_IBKL
:
/* WRITERFILTERSTATUS: done: 100, planned: 0.5, spent: 0.5 */
//contains the bookmark identifier - has to be added to the bookmark name imported before
//if it is already available then the bookmark should be inserted
m_pImpl
->
AddBookmark
(
sLocalBookmarkName
,
sString
Value
);
m_pImpl
->
AddBookmark
(
sLocalBookmarkName
,
nInt
Value
);
sLocalBookmarkName
=
::
rtl
::
OUString
();
break
;
case
NS_rtf
:
:
LN_LISTLEVEL
:
/* WRITERFILTERSTATUS: done: 0, planned: 0.5, spent: 0 */
break
;
...
...
writerfilter/source/dmapper/DomainMapper_Impl.cxx
Dosyayı görüntüle @
f27e7582
...
...
@@ -3541,10 +3541,12 @@ void DomainMapper_Impl::PopFieldContext()
/*-- 11.06.2007 16:19:00---------------------------------------------------
-----------------------------------------------------------------------*/
void
DomainMapper_Impl
::
AddBookmark
(
const
::
rtl
::
OUString
&
rBookmarkName
,
const
::
rtl
::
OUString
&
rId
)
void
DomainMapper_Impl
::
AddBookmark
(
const
::
rtl
::
OUString
&
rBookmarkName
,
const
sal_Int32
nId
)
{
uno
::
Reference
<
text
::
XTextAppend
>
xTextAppend
=
m_aTextAppendStack
.
top
().
xTextAppend
;
BookmarkMap_t
::
iterator
aBookmarkIter
=
m_aBookmarkMap
.
find
(
r
Id
);
BookmarkMap_t
::
iterator
aBookmarkIter
=
m_aBookmarkMap
.
find
(
n
Id
);
//is the bookmark name already registered?
try
{
...
...
@@ -3575,7 +3577,7 @@ void DomainMapper_Impl::AddBookmark( const ::rtl::OUString& rBookmarkName, const
uno
::
Reference
<
text
::
XTextCursor
>
xCursor
=
xTextAppend
->
createTextCursorByRange
(
xTextAppend
->
getEnd
()
);
bool
bIsStart
=
!
xCursor
->
goLeft
(
1
,
false
);
uno
::
Reference
<
text
::
XTextRange
>
xCurrent
=
xCursor
->
getStart
();
m_aBookmarkMap
.
insert
(
BookmarkMap_t
::
value_type
(
r
Id
,
BookmarkInsertPosition
(
bIsStart
,
rBookmarkName
,
xCurrent
)
));
m_aBookmarkMap
.
insert
(
BookmarkMap_t
::
value_type
(
n
Id
,
BookmarkInsertPosition
(
bIsStart
,
rBookmarkName
,
xCurrent
)
));
}
}
catch
(
const
uno
::
Exception
&
)
...
...
writerfilter/source/dmapper/DomainMapper_Impl.hxx
Dosyayı görüntüle @
f27e7582
...
...
@@ -289,7 +289,7 @@ class DomainMapper_Impl
public
:
typedef
TableManager
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextRange
>
,
PropertyMapPtr
>
TableManager_t
;
typedef
TableDataHandler
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>
TableDataHandler_t
;
typedef
std
::
map
<
::
rtl
::
OUString
,
BookmarkInsertPosition
>
BookmarkMap_t
;
typedef
std
::
map
<
sal_Int32
,
BookmarkInsertPosition
>
BookmarkMap_t
;
private
:
SourceDocumentType
m_eDocumentType
;
...
...
@@ -554,7 +554,9 @@ public:
//the end of field is reached (0x15 appeared) - the command might still be open
void
PopFieldContext
();
void
AddBookmark
(
const
::
rtl
::
OUString
&
rBookmarkName
,
const
::
rtl
::
OUString
&
rId
);
void
AddBookmark
(
const
::
rtl
::
OUString
&
rBookmarkName
,
const
sal_Int32
nId
);
void
AddAnnotationPosition
(
const
bool
bStart
,
...
...
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