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
0867207f
Kaydet (Commit)
0867207f
authored
Ock 31, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tell the options dialog to relayout if a pane queue-resizes
Change-Id: I44686ea724873181018bf00253a08afa58c9a10b
üst
b0f4052c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
5 deletions
+38
-5
treeopt.hxx
cui/source/inc/treeopt.hxx
+6
-2
treeopt.cxx
cui/source/options/treeopt.cxx
+31
-1
macropg.hxx
sfx2/inc/sfx2/macropg.hxx
+0
-1
dialog.hxx
vcl/inc/vcl/dialog.hxx
+1
-1
No files found.
cui/source/inc/treeopt.hxx
Dosyayı görüntüle @
0867207f
...
@@ -140,6 +140,11 @@ typedef std::vector< ExtensionsTabPage* > VectorOfPages;
...
@@ -140,6 +140,11 @@ typedef std::vector< ExtensionsTabPage* > VectorOfPages;
class
OfaTreeOptionsDialog
:
public
SfxModalDialog
class
OfaTreeOptionsDialog
:
public
SfxModalDialog
{
{
private
:
private
:
SvTreeListEntry
*
pCurrentPageEntry
;
Timer
maTreeLayoutTimer
;
DECL_DLLPRIVATE_LINK
(
ImplHandleTreeLayoutTimerHdl
,
void
*
);
bool
hasTreePendingLayout
()
const
;
OKButton
aOkPB
;
OKButton
aOkPB
;
CancelButton
aCancelPB
;
CancelButton
aCancelPB
;
HelpButton
aHelpPB
;
HelpButton
aHelpPB
;
...
@@ -152,8 +157,6 @@ private:
...
@@ -152,8 +157,6 @@ private:
String
sTitle
;
String
sTitle
;
String
sNotLoadedError
;
String
sNotLoadedError
;
SvTreeListEntry
*
pCurrentPageEntry
;
// for the ColorTabPage
// for the ColorTabPage
SfxItemSet
*
pColorPageItemSet
;
SfxItemSet
*
pColorPageItemSet
;
SvxColorTabPage
*
mpColorPage
;
SvxColorTabPage
*
mpColorPage
;
...
@@ -183,6 +186,7 @@ private:
...
@@ -183,6 +186,7 @@ private:
VectorOfNodes
LoadNodes
(
Module
*
pModule
,
const
rtl
::
OUString
&
rExtensionId
);
VectorOfNodes
LoadNodes
(
Module
*
pModule
,
const
rtl
::
OUString
&
rExtensionId
);
void
InsertNodes
(
const
VectorOfNodes
&
rNodeList
);
void
InsertNodes
(
const
VectorOfNodes
&
rNodeList
);
virtual
void
queue_layout
();
void
SetPaneSize
(
Window
*
pPane
);
void
SetPaneSize
(
Window
*
pPane
);
protected
:
protected
:
...
...
cui/source/options/treeopt.cxx
Dosyayı görüntüle @
0867207f
...
@@ -484,6 +484,7 @@ struct OptionsGroupInfo
...
@@ -484,6 +484,7 @@ struct OptionsGroupInfo
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
#define INI_LIST() \
#define INI_LIST() \
pCurrentPageEntry ( NULL ),\
aOkPB ( this, CUI_RES( PB_OK ) ),\
aOkPB ( this, CUI_RES( PB_OK ) ),\
aCancelPB ( this, CUI_RES( PB_CANCEL ) ),\
aCancelPB ( this, CUI_RES( PB_CANCEL ) ),\
aHelpPB ( this, CUI_RES( PB_HELP ) ),\
aHelpPB ( this, CUI_RES( PB_HELP ) ),\
...
@@ -492,7 +493,6 @@ struct OptionsGroupInfo
...
@@ -492,7 +493,6 @@ struct OptionsGroupInfo
aTreeLB ( this, CUI_RES( TLB_PAGES ) ),\
aTreeLB ( this, CUI_RES( TLB_PAGES ) ),\
sTitle ( GetText() ),\
sTitle ( GetText() ),\
sNotLoadedError ( CUI_RES( ST_LOAD_ERROR ) ),\
sNotLoadedError ( CUI_RES( ST_LOAD_ERROR ) ),\
pCurrentPageEntry ( NULL ),\
pColorPageItemSet ( NULL ),\
pColorPageItemSet ( NULL ),\
mpColorPage ( NULL ),\
mpColorPage ( NULL ),\
bForgetSelection ( sal_False ),\
bForgetSelection ( sal_False ),\
...
@@ -539,6 +539,8 @@ OfaTreeOptionsDialog::OfaTreeOptionsDialog( Window* pParent, const rtl::OUString
...
@@ -539,6 +539,8 @@ OfaTreeOptionsDialog::OfaTreeOptionsDialog( Window* pParent, const rtl::OUString
OfaTreeOptionsDialog
::~
OfaTreeOptionsDialog
()
OfaTreeOptionsDialog
::~
OfaTreeOptionsDialog
()
{
{
maTreeLayoutTimer
.
Stop
();
pCurrentPageEntry
=
NULL
;
SvTreeListEntry
*
pEntry
=
aTreeLB
.
First
();
SvTreeListEntry
*
pEntry
=
aTreeLB
.
First
();
// first children
// first children
while
(
pEntry
)
while
(
pEntry
)
...
@@ -759,6 +761,9 @@ void OfaTreeOptionsDialog::ApplyItemSets()
...
@@ -759,6 +761,9 @@ void OfaTreeOptionsDialog::ApplyItemSets()
void
OfaTreeOptionsDialog
::
InitTreeAndHandler
()
void
OfaTreeOptionsDialog
::
InitTreeAndHandler
()
{
{
maTreeLayoutTimer
.
SetTimeout
(
50
);
maTreeLayoutTimer
.
SetTimeoutHdl
(
LINK
(
this
,
OfaTreeOptionsDialog
,
ImplHandleTreeLayoutTimerHdl
)
);
aTreeLB
.
SetNodeDefaultImages
();
aTreeLB
.
SetNodeDefaultImages
();
aTreeLB
.
SetHelpId
(
HID_OFADLG_TREELISTBOX
);
aTreeLB
.
SetHelpId
(
HID_OFADLG_TREELISTBOX
);
...
@@ -915,6 +920,31 @@ long OfaTreeOptionsDialog::Notify( NotifyEvent& rNEvt )
...
@@ -915,6 +920,31 @@ long OfaTreeOptionsDialog::Notify( NotifyEvent& rNEvt )
return
SfxModalDialog
::
Notify
(
rNEvt
);
return
SfxModalDialog
::
Notify
(
rNEvt
);
}
}
bool
OfaTreeOptionsDialog
::
hasTreePendingLayout
()
const
{
return
maTreeLayoutTimer
.
IsActive
();
}
void
OfaTreeOptionsDialog
::
queue_layout
()
{
if
(
hasTreePendingLayout
())
return
;
if
(
IsInClose
())
return
;
maTreeLayoutTimer
.
Start
();
}
IMPL_LINK
(
OfaTreeOptionsDialog
,
ImplHandleTreeLayoutTimerHdl
,
void
*
,
EMPTYARG
)
{
if
(
pCurrentPageEntry
&&
aTreeLB
.
GetParent
(
pCurrentPageEntry
))
{
OptionsPageInfo
*
pPageInfo
=
(
OptionsPageInfo
*
)
pCurrentPageEntry
->
GetUserData
();
if
(
pPageInfo
->
m_pPage
&&
pPageInfo
->
m_pPage
->
isLayoutEnabled
())
SetPaneSize
(
pPageInfo
->
m_pPage
);
}
return
0
;
}
// --------------------------------------------------------------------
// --------------------------------------------------------------------
void
OfaTreeOptionsDialog
::
SetPaneSize
(
Window
*
pPane
)
void
OfaTreeOptionsDialog
::
SetPaneSize
(
Window
*
pPane
)
{
{
...
...
sfx2/inc/sfx2/macropg.hxx
Dosyayı görüntüle @
0867207f
...
@@ -34,7 +34,6 @@ class Edit;
...
@@ -34,7 +34,6 @@ class Edit;
class
String
;
class
String
;
class
SfxObjectShell
;
class
SfxObjectShell
;
class
SfxConfigGroupListBox_Impl
;
class
SfxConfigFunctionListBox_Impl
;
class
SfxConfigFunctionListBox_Impl
;
class
_HeaderTabListBox
;
class
_HeaderTabListBox
;
...
...
vcl/inc/vcl/dialog.hxx
Dosyayı görüntüle @
0867207f
...
@@ -95,7 +95,7 @@ public:
...
@@ -95,7 +95,7 @@ public:
virtual
void
Resize
();
virtual
void
Resize
();
bool
isLayoutEnabled
()
const
;
bool
isLayoutEnabled
()
const
;
void
setInitialLayoutSize
();
void
setInitialLayoutSize
();
v
oid
queue_layout
();
v
irtual
void
queue_layout
();
virtual
bool
set_property
(
const
rtl
::
OString
&
rKey
,
const
rtl
::
OString
&
rValue
);
virtual
bool
set_property
(
const
rtl
::
OString
&
rKey
,
const
rtl
::
OString
&
rValue
);
VclButtonBox
*
get_action_area
();
VclButtonBox
*
get_action_area
();
VclBox
*
get_content_area
();
VclBox
*
get_content_area
();
...
...
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