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
cd690d2e
Kaydet (Commit)
cd690d2e
authored
Agu 10, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#39159 don't restore original view settings on temp documents
üst
e16221d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
printdata.hxx
sw/inc/printdata.hxx
+1
-1
unotxdoc.hxx
sw/inc/unotxdoc.hxx
+2
-1
printdata.cxx
sw/source/core/view/printdata.cxx
+2
-2
unotxdoc.cxx
sw/source/ui/uno/unotxdoc.cxx
+10
-4
No files found.
sw/inc/printdata.hxx
Dosyayı görüntüle @
cd690d2e
...
...
@@ -269,7 +269,7 @@ public:
bool
IsViewOptionAdjust
()
const
{
return
m_pViewOptionAdjust
!=
0
;
}
bool
NeedNewViewOptionAdjust
(
const
ViewShell
&
)
const
;
void
ViewOptionAdjustStart
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
);
void
ViewOptionAdjustStart
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
,
bool
bIsTmpSelection
);
void
ViewOptionAdjust
(
SwPrintData
const
*
const
pPrtOptions
);
void
ViewOptionAdjustStop
();
...
...
sw/inc/unotxdoc.hxx
Dosyayı görüntüle @
cd690d2e
...
...
@@ -588,9 +588,10 @@ class SwViewOptionAdjust_Impl
{
ViewShell
&
m_rShell
;
SwViewOption
m_aOldViewOptions
;
bool
m_bIsTmpSelection
;
public
:
SwViewOptionAdjust_Impl
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
);
SwViewOptionAdjust_Impl
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
,
bool
bIsTmpSelection
);
~
SwViewOptionAdjust_Impl
();
void
AdjustViewOptions
(
SwPrintData
const
*
const
pPrtOptions
);
bool
checkShell
(
const
ViewShell
&
rCompare
)
const
...
...
sw/source/core/view/printdata.cxx
Dosyayı görüntüle @
cd690d2e
...
...
@@ -113,13 +113,13 @@ bool SwRenderData::NeedNewViewOptionAdjust( const ViewShell& rCompare ) const
}
void
SwRenderData
::
ViewOptionAdjustStart
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
)
void
SwRenderData
::
ViewOptionAdjustStart
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
,
bool
bIsTmpSelection
)
{
if
(
m_pViewOptionAdjust
)
{
OSL_FAIL
(
"error: there should be no ViewOptionAdjust active when calling this function"
);
}
m_pViewOptionAdjust
=
new
SwViewOptionAdjust_Impl
(
rSh
,
rViewOptions
);
m_pViewOptionAdjust
=
new
SwViewOptionAdjust_Impl
(
rSh
,
rViewOptions
,
bIsTmpSelection
);
}
...
...
sw/source/ui/uno/unotxdoc.cxx
Dosyayı görüntüle @
cd690d2e
...
...
@@ -2551,7 +2551,7 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
if
(
m_pRenderData
&&
m_pRenderData
->
NeedNewViewOptionAdjust
(
*
pViewShell
)
)
m_pRenderData
->
ViewOptionAdjustStop
();
if
(
m_pRenderData
&&
!
m_pRenderData
->
IsViewOptionAdjust
())
m_pRenderData
->
ViewOptionAdjustStart
(
*
pViewShell
,
*
pViewShell
->
GetViewOptions
()
);
m_pRenderData
->
ViewOptionAdjustStart
(
*
pViewShell
,
*
pViewShell
->
GetViewOptions
()
,
rSelection
.
hasValue
()
);
}
m_pRenderData
->
SetSwPrtOptions
(
new
SwPrintData
);
...
...
@@ -3833,15 +3833,21 @@ void SwXDocumentPropertyHelper::onChange()
m_pDoc
->
SetModified
();
}
SwViewOptionAdjust_Impl
::
SwViewOptionAdjust_Impl
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
)
:
SwViewOptionAdjust_Impl
::
SwViewOptionAdjust_Impl
(
ViewShell
&
rSh
,
const
SwViewOption
&
rViewOptions
,
bool
bIsTmpSelection
)
:
m_rShell
(
rSh
),
m_aOldViewOptions
(
rViewOptions
)
m_aOldViewOptions
(
rViewOptions
),
m_bIsTmpSelection
(
bIsTmpSelection
)
{
}
SwViewOptionAdjust_Impl
::~
SwViewOptionAdjust_Impl
()
{
m_rShell
.
ApplyViewOptions
(
m_aOldViewOptions
);
//fdo#39159 don't restore original view options on a temporary document
//selection, it triggers throwing away the current view. Presumably we can
//forget about it in the temporary document case as unimportant to restore
//the original view settings
if
(
!
m_bIsTmpSelection
)
m_rShell
.
ApplyViewOptions
(
m_aOldViewOptions
);
}
void
...
...
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