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
e3bd10f8
Kaydet (Commit)
e3bd10f8
authored
Ock 24, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
adjust the hide of the zoom so its dynamic on docking/undocking navigators
Change-Id: I525d0abf5618ffc2f614857a29e530f7140c0de7
üst
b37ac489
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
18 deletions
+29
-18
navipi.hxx
sc/source/ui/inc/navipi.hxx
+2
-0
navipi.cxx
sc/source/ui/navipi/navipi.cxx
+12
-7
navipi.hxx
sw/source/uibase/inc/navipi.hxx
+2
-2
navipi.cxx
sw/source/uibase/utlui/navipi.cxx
+13
-9
No files found.
sc/source/ui/inc/navipi.hxx
Dosyayı görüntüle @
e3bd10f8
...
...
@@ -261,6 +261,8 @@ public:
virtual
void
dispose
()
override
;
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
)
override
;
virtual
void
StateChanged
(
StateChangedType
nStateChange
)
override
;
};
class
ScNavigatorDialogWrapper
:
public
SfxChildWindowContext
...
...
sc/source/ui/navipi/navipi.cxx
Dosyayı görüntüle @
e3bd10f8
...
...
@@ -529,13 +529,6 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, vcl::Window* pParent)
aContentIdle
.
SetInvokeHandler
(
LINK
(
this
,
ScNavigatorDlg
,
TimeHdl
)
);
aContentIdle
.
SetPriority
(
TaskPriority
::
LOWEST
);
if
(
!
SfxChildWindowContext
::
GetFloatingWindow
(
GetParent
()))
{
// When the navigator is displayed in the sidebar, or is otherwise
// docked, it has the whole deck to fill. Therefore hide the button that
// hides all controls below the top two rows of buttons.
aTbxCmd
->
RemoveItem
(
aTbxCmd
->
GetItemPos
(
nZoomId
));
}
aLbEntries
->
SetNavigatorDlgFlag
(
true
);
// if scenario was active, switch on
...
...
@@ -549,6 +542,18 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, vcl::Window* pParent)
aExpandedSize
=
GetOptimalSize
();
}
void
ScNavigatorDlg
::
StateChanged
(
StateChangedType
nStateChange
)
{
PanelLayout
::
StateChanged
(
nStateChange
);
if
(
nStateChange
==
StateChangedType
::
InitShow
)
{
// When the navigator is displayed in the sidebar, or is otherwise
// docked, it has the whole deck to fill. Therefore hide the button that
// hides all controls below the top two rows of buttons.
aTbxCmd
->
ShowItem
(
aTbxCmd
->
GetItemId
(
nZoomId
),
SfxChildWindowContext
::
GetFloatingWindow
(
GetParent
()));
}
}
ScNavigatorDlg
::~
ScNavigatorDlg
()
{
disposeOnce
();
...
...
sw/source/uibase/inc/navipi.hxx
Dosyayı görüntüle @
e3bd10f8
...
...
@@ -119,8 +119,6 @@ class SwNavigationPI : public PanelLayout,
void
SetPopupWindow
(
SfxPopupWindow
*
);
using
Window
::
StateChanged
;
protected
:
// release ObjectShellLock early enough for app end
...
...
@@ -142,6 +140,8 @@ public:
virtual
void
StateChanged
(
sal_uInt16
nSID
,
SfxItemState
eState
,
const
SfxPoolItem
*
pState
)
override
;
virtual
void
StateChanged
(
StateChangedType
nStateChange
)
override
;
static
OUString
CreateDropFileName
(
TransferableDataHelper
&
rData
);
static
OUString
CleanEntry
(
const
OUString
&
rEntry
);
...
...
sw/source/uibase/utlui/navipi.cxx
Dosyayı görüntüle @
e3bd10f8
...
...
@@ -728,15 +728,6 @@ SwNavigationPI::SwNavigationPI(SfxBindings* _pBindings,
m_aGlobalTree
->
SetAccessibleName
(
SW_RESSTR
(
STR_ACCESS_TL_GLOBAL
));
m_aDocListBox
->
SetAccessibleName
(
m_aStatusArr
[
3
]);
if
(
!
SfxChildWindowContext
::
GetFloatingWindow
(
GetParent
()))
{
// if the parent isn't a float, then then the navigator is displayed in
// the sidebar or is otherwise docked. While the navigator could change
// its size, the sidebar can not, and the navigator would just waste
// space. Therefore hide this button.
m_aContentToolBox
->
RemoveItem
(
m_aContentToolBox
->
GetItemPos
(
m_aContentToolBox
->
GetItemId
(
"listbox"
)));
}
m_aExpandedSize
=
GetOptimalSize
();
}
...
...
@@ -849,6 +840,19 @@ void SwNavigationPI::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
}
}
void
SwNavigationPI
::
StateChanged
(
StateChangedType
nStateChange
)
{
PanelLayout
::
StateChanged
(
nStateChange
);
if
(
nStateChange
==
StateChangedType
::
InitShow
)
{
// if the parent isn't a float, then then the navigator is displayed in
// the sidebar or is otherwise docked. While the navigator could change
// its size, the sidebar can not, and the navigator would just waste
// space. Therefore hide this button.
m_aContentToolBox
->
ShowItem
(
m_aContentToolBox
->
GetItemId
(
"listbox"
),
SfxChildWindowContext
::
GetFloatingWindow
(
GetParent
()));
}
}
// Get the numeric field from the toolbox.
NumEditAction
&
SwNavigationPI
::
GetPageEdit
()
...
...
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