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
16400db4
Kaydet (Commit)
16400db4
authored
Eyl 09, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Header/Footer: don't show the separator action in readonly mode
üst
052f181d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
2 deletions
+35
-2
viewsh.hxx
sw/inc/viewsh.hxx
+1
-1
HeaderFooterWin.cxx
sw/source/ui/docvw/HeaderFooterWin.cxx
+14
-1
edtwin.cxx
sw/source/ui/docvw/edtwin.cxx
+10
-0
HeaderFooterWin.hxx
sw/source/ui/inc/HeaderFooterWin.hxx
+2
-0
edtwin.hxx
sw/source/ui/inc/edtwin.hxx
+1
-0
wrtsh.hxx
sw/source/ui/inc/wrtsh.hxx
+1
-0
wrtsh1.cxx
sw/source/ui/wrtsh/wrtsh1.cxx
+6
-0
No files found.
sw/inc/viewsh.hxx
Dosyayı görüntüle @
16400db4
...
...
@@ -423,7 +423,7 @@ public:
inline
const
SwViewOption
*
GetViewOptions
()
const
{
return
pOpt
;
}
virtual
void
ApplyViewOptions
(
const
SwViewOption
&
rOpt
);
void
SetUIOptions
(
const
SwViewOption
&
rOpt
);
void
SetReadonlyOption
(
sal_Bool
bSet
);
// Set readonly-bit of ViewOptions.
virtual
void
SetReadonlyOption
(
sal_Bool
bSet
);
// Set readonly-bit of ViewOptions.
void
SetPDFExportOption
(
sal_Bool
bSet
);
// Set/reset PDF export mode.
void
SetPrtFormatOption
(
sal_Bool
bSet
);
// Set PrtFormat-Bit of ViewOptions.
void
SetReadonlySelectionOption
(
sal_Bool
bSet
);
// Change the selection mode in readonly docs.
...
...
sw/source/ui/docvw/HeaderFooterWin.cxx
Dosyayı görüntüle @
16400db4
...
...
@@ -150,9 +150,13 @@ SwHeaderFooterWin::~SwHeaderFooterWin( )
MenuButton
*
SwHeaderFooterWin
::
GetMenuButton
()
{
if
(
!
m_pButton
)
{
m_pButton
=
new
SwHeaderFooterButton
(
this
);
m_pButton
->
Show
();
// Don't blindly show it: check for readonly document
const
SwViewOption
*
pViewOpt
=
m_pEditWin
->
GetView
().
GetWrtShell
().
GetViewOptions
();
m_pButton
->
Show
(
!
pViewOpt
->
IsReadonly
()
);
}
return
m_pButton
;
}
...
...
@@ -274,6 +278,15 @@ void SwHeaderFooterWin::ExecuteCommand( sal_uInt16 nSlot )
}
}
void
SwHeaderFooterWin
::
SetReadonly
(
bool
bReadonly
)
{
if
(
bReadonly
)
m_pButton
->
Hide
();
else
m_pButton
->
Show
();
Update
();
}
SwHeaderFooterButton
::
SwHeaderFooterButton
(
SwHeaderFooterWin
*
pWindow
)
:
MenuButton
(
pWindow
),
m_pWindow
(
pWindow
)
...
...
sw/source/ui/docvw/edtwin.cxx
Dosyayı görüntüle @
16400db4
...
...
@@ -5736,4 +5736,14 @@ void SwEditWin::HideHeaderFooterControls( )
}
}
void
SwEditWin
::
SetReadonlyHeaderFooterControls
(
bool
bReadonly
)
{
std
::
vector
<
boost
::
shared_ptr
<
SwHeaderFooterWin
>
>::
iterator
pIt
=
aHeadFootControls
.
begin
();
while
(
pIt
!=
aHeadFootControls
.
end
()
)
{
(
*
pIt
)
->
SetReadonly
(
bReadonly
);
pIt
++
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/ui/inc/HeaderFooterWin.hxx
Dosyayı görüntüle @
16400db4
...
...
@@ -63,6 +63,8 @@ public:
void
ChangeHeaderOrFooter
(
bool
bAdd
);
void
ExecuteCommand
(
sal_uInt16
nSlot
);
void
SetReadonly
(
bool
bReadonly
);
private
:
MenuButton
*
GetMenuButton
(
);
};
...
...
sw/source/ui/inc/edtwin.hxx
Dosyayı görüntüle @
16400db4
...
...
@@ -315,6 +315,7 @@ public:
void
SetHeaderFooterControl
(
const
SwPageFrm
*
pPageFrm
,
bool
bHeader
,
Point
aOffset
);
void
RemoveHeaderFooterControls
(
const
SwPageFrm
*
pPageFrm
);
void
HideHeaderFooterControls
(
);
void
SetReadonlyHeaderFooterControls
(
bool
bReadonly
);
SwEditWin
(
Window
*
pParent
,
SwView
&
);
virtual
~
SwEditWin
();
...
...
sw/source/ui/inc/wrtsh.hxx
Dosyayı görüntüle @
16400db4
...
...
@@ -450,6 +450,7 @@ typedef sal_Bool (SwWrtShell:: *FNSimpleMove)();
virtual
void
NewCoreSelection
();
virtual
void
ApplyViewOptions
(
const
SwViewOption
&
rOpt
);
virtual
void
SetReadonlyOption
(
sal_Bool
bSet
);
// automatic update of styles
void
AutoUpdateFrame
(
SwFrmFmt
*
pFmt
,
const
SfxItemSet
&
rStyleSet
);
...
...
sw/source/ui/wrtsh/wrtsh1.cxx
Dosyayı görüntüle @
16400db4
...
...
@@ -1808,4 +1808,10 @@ void SwWrtShell::ApplyViewOptions( const SwViewOption &rOpt )
}
void
SwWrtShell
::
SetReadonlyOption
(
sal_Bool
bSet
)
{
GetView
().
GetEditWin
().
SetReadonlyHeaderFooterControls
(
bSet
);
ViewShell
::
SetReadonlyOption
(
bSet
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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