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
bc1e32d6
Kaydet (Commit)
bc1e32d6
authored
Mar 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Better only call RestoreInvisibleContent if previously removed
Change-Id: I229db9567771a4967065d81fa99fee2c23dbcb3e
üst
735616a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
docsh.hxx
sw/inc/docsh.hxx
+4
-0
docsh2.cxx
sw/source/uibase/app/docsh2.cxx
+6
-3
docshini.cxx
sw/source/uibase/app/docshini.cxx
+6
-3
No files found.
sw/inc/docsh.hxx
Dosyayı görüntüle @
bc1e32d6
...
@@ -80,6 +80,10 @@ class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
...
@@ -80,6 +80,10 @@ class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
sal_Int16
mnUpdateDocMode
;
///< contains the com::sun::star::document::UpdateDocMode
sal_Int16
mnUpdateDocMode
;
///< contains the com::sun::star::document::UpdateDocMode
bool
bIsATemplate
;
///< prevent nested calls of UpdateFontList
bool
bIsATemplate
;
///< prevent nested calls of UpdateFontList
bool
mbRemovedInvisibleContent
;
///< whether SID_MAIL_PREPAREEXPORT removed content that
///< SID_MAIL_EXPORT_FINISHED needs to restore
/// Methods for access to doc.
/// Methods for access to doc.
SAL_DLLPRIVATE
void
AddLink
();
SAL_DLLPRIVATE
void
AddLink
();
SAL_DLLPRIVATE
void
RemoveLink
();
SAL_DLLPRIVATE
void
RemoveLink
();
...
...
sw/source/uibase/app/docsh2.cxx
Dosyayı görüntüle @
bc1e32d6
...
@@ -837,7 +837,9 @@ void SwDocShell::Execute(SfxRequest& rReq)
...
@@ -837,7 +837,9 @@ void SwDocShell::Execute(SfxRequest& rReq)
mpDoc
->
getIDocumentFieldsAccess
().
UpdateFlds
(
NULL
,
false
);
mpDoc
->
getIDocumentFieldsAccess
().
UpdateFlds
(
NULL
,
false
);
mpDoc
->
getIDocumentLinksAdministration
().
EmbedAllLinks
();
mpDoc
->
getIDocumentLinksAdministration
().
EmbedAllLinks
();
if
(
officecfg
::
Office
::
Common
::
ExternalMailer
::
Hidden
::
get
())
mbRemovedInvisibleContent
=
officecfg
::
Office
::
Common
::
ExternalMailer
::
Hidden
::
get
();
if
(
mbRemovedInvisibleContent
)
mpDoc
->
RemoveInvisibleContent
();
mpDoc
->
RemoveInvisibleContent
();
if
(
mpWrtShell
)
if
(
mpWrtShell
)
mpWrtShell
->
EndAllAction
();
mpWrtShell
->
EndAllAction
();
...
@@ -848,8 +850,9 @@ void SwDocShell::Execute(SfxRequest& rReq)
...
@@ -848,8 +850,9 @@ void SwDocShell::Execute(SfxRequest& rReq)
{
{
if
(
mpWrtShell
)
if
(
mpWrtShell
)
mpWrtShell
->
StartAllAction
();
mpWrtShell
->
StartAllAction
();
//try to undo the removal of invisible content
//try to undo any removal of invisible content
mpDoc
->
RestoreInvisibleContent
();
if
(
mbRemovedInvisibleContent
)
mpDoc
->
RestoreInvisibleContent
();
if
(
mpWrtShell
)
if
(
mpWrtShell
)
mpWrtShell
->
EndAllAction
();
mpWrtShell
->
EndAllAction
();
}
}
...
...
sw/source/uibase/app/docshini.cxx
Dosyayı görüntüle @
bc1e32d6
...
@@ -328,7 +328,8 @@ SwDocShell::SwDocShell( SfxObjectCreateMode eMode ) :
...
@@ -328,7 +328,8 @@ SwDocShell::SwDocShell( SfxObjectCreateMode eMode ) :
mpWrtShell
(
0
),
mpWrtShell
(
0
),
mpOLEChildList
(
0
),
mpOLEChildList
(
0
),
mnUpdateDocMode
(
document
::
UpdateDocMode
::
ACCORDING_TO_CONFIG
),
mnUpdateDocMode
(
document
::
UpdateDocMode
::
ACCORDING_TO_CONFIG
),
bIsATemplate
(
false
)
bIsATemplate
(
false
),
mbRemovedInvisibleContent
(
false
)
{
{
Init_Impl
();
Init_Impl
();
}
}
...
@@ -343,7 +344,8 @@ SwDocShell::SwDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
...
@@ -343,7 +344,8 @@ SwDocShell::SwDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
mpWrtShell
(
0
),
mpWrtShell
(
0
),
mpOLEChildList
(
0
),
mpOLEChildList
(
0
),
mnUpdateDocMode
(
document
::
UpdateDocMode
::
ACCORDING_TO_CONFIG
),
mnUpdateDocMode
(
document
::
UpdateDocMode
::
ACCORDING_TO_CONFIG
),
bIsATemplate
(
false
)
bIsATemplate
(
false
),
mbRemovedInvisibleContent
(
false
)
{
{
Init_Impl
();
Init_Impl
();
}
}
...
@@ -358,7 +360,8 @@ SwDocShell::SwDocShell( SwDoc *pD, SfxObjectCreateMode eMode ):
...
@@ -358,7 +360,8 @@ SwDocShell::SwDocShell( SwDoc *pD, SfxObjectCreateMode eMode ):
mpWrtShell
(
0
),
mpWrtShell
(
0
),
mpOLEChildList
(
0
),
mpOLEChildList
(
0
),
mnUpdateDocMode
(
document
::
UpdateDocMode
::
ACCORDING_TO_CONFIG
),
mnUpdateDocMode
(
document
::
UpdateDocMode
::
ACCORDING_TO_CONFIG
),
bIsATemplate
(
false
)
bIsATemplate
(
false
),
mbRemovedInvisibleContent
(
false
)
{
{
Init_Impl
();
Init_Impl
();
}
}
...
...
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