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
ed6aceab
Kaydet (Commit)
ed6aceab
authored
Kas 26, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: reduce pointless timer / scheduler / idle includes.
Change-Id: I8bf7f8d6ba1a54f2969e055956fadc52ff6c8673
üst
bc8dcb2b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
22 deletions
+31
-22
objsh.hxx
include/sfx2/objsh.hxx
+0
-12
dialog.hxx
include/vcl/dialog.hxx
+0
-1
edit.hxx
include/vcl/edit.hxx
+3
-3
toolbox.hxx
include/vcl/toolbox.hxx
+3
-4
objshimp.hxx
sfx2/source/inc/objshimp.hxx
+12
-0
edit.cxx
vcl/source/control/edit.cxx
+6
-0
toolbox.cxx
vcl/source/window/toolbox.cxx
+7
-2
No files found.
include/sfx2/objsh.hxx
Dosyayı görüntüle @
ed6aceab
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/document/CmisVersion.hpp>
#include <com/sun/star/document/CmisVersion.hpp>
#include <vcl/timer.hxx>
#include <vcl/vclptr.hxx>
#include <vcl/vclptr.hxx>
#include <svl/poolitem.hxx>
#include <svl/poolitem.hxx>
#include <vcl/bitmap.hxx>
#include <vcl/bitmap.hxx>
...
@@ -805,17 +804,6 @@ inline SfxObjectShellLock & SfxObjectShellLock::
...
@@ -805,17 +804,6 @@ inline SfxObjectShellLock & SfxObjectShellLock::
inline
SfxObjectShellLock
&
SfxObjectShellLock
::
operator
=
(
SfxObjectShell
*
pObjP
)
inline
SfxObjectShellLock
&
SfxObjectShellLock
::
operator
=
(
SfxObjectShell
*
pObjP
)
{
return
*
this
=
SfxObjectShellLock
(
pObjP
);
}
{
return
*
this
=
SfxObjectShellLock
(
pObjP
);
}
class
AutoReloadTimer_Impl
:
public
Timer
{
OUString
aUrl
;
SfxObjectShell
*
pObjSh
;
public
:
AutoReloadTimer_Impl
(
const
OUString
&
rURL
,
sal_uInt32
nTime
,
SfxObjectShell
*
pSh
);
virtual
void
Invoke
()
override
;
};
class
SFX2_DLLPUBLIC
SfxObjectShellItem
:
public
SfxPoolItem
class
SFX2_DLLPUBLIC
SfxObjectShellItem
:
public
SfxPoolItem
{
{
SfxObjectShell
*
pObjSh
;
SfxObjectShell
*
pObjSh
;
...
...
include/vcl/dialog.hxx
Dosyayı görüntüle @
ed6aceab
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include <tools/solar.h>
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <vcl/dllapi.h>
#include <vcl/syswin.hxx>
#include <vcl/syswin.hxx>
#include <vcl/timer.hxx>
#include <vcl/vclptr.hxx>
#include <vcl/vclptr.hxx>
// - Dialog -
// - Dialog -
...
...
include/vcl/edit.hxx
Dosyayı görüntüle @
ed6aceab
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
#include <tools/solar.h>
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <vcl/dllapi.h>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <vcl/menu.hxx>
#include <vcl/menu.hxx>
#include <vcl/dndhelp.hxx>
#include <vcl/dndhelp.hxx>
#include <vcl/vclptr.hxx>
#include <vcl/vclptr.hxx>
...
@@ -70,6 +68,8 @@ public:
...
@@ -70,6 +68,8 @@ public:
enum
AutocompleteAction
{
AUTOCOMPLETE_KEYINPUT
,
AUTOCOMPLETE_TABFORWARD
,
AUTOCOMPLETE_TABBACKWARD
};
enum
AutocompleteAction
{
AUTOCOMPLETE_KEYINPUT
,
AUTOCOMPLETE_TABFORWARD
,
AUTOCOMPLETE_TABBACKWARD
};
class
Timer
;
// - Edit -
// - Edit -
class
VCL_DLLPUBLIC
Edit
:
public
Control
,
public
vcl
::
unohelper
::
DragAndDropClient
class
VCL_DLLPUBLIC
Edit
:
public
Control
,
public
vcl
::
unohelper
::
DragAndDropClient
{
{
...
@@ -205,7 +205,7 @@ public:
...
@@ -205,7 +205,7 @@ public:
virtual
bool
IsModified
()
const
{
return
mpSubEdit
?
mpSubEdit
->
mbModified
:
mbModified
;
}
virtual
bool
IsModified
()
const
{
return
mpSubEdit
?
mpSubEdit
->
mbModified
:
mbModified
;
}
virtual
void
EnableUpdateData
(
sal_uLong
nTimeout
=
EDIT_UPDATEDATA_TIMEOUT
);
virtual
void
EnableUpdateData
(
sal_uLong
nTimeout
=
EDIT_UPDATEDATA_TIMEOUT
);
virtual
void
DisableUpdateData
()
{
delete
mpUpdateDataTimer
;
mpUpdateDataTimer
=
nullptr
;
}
virtual
void
DisableUpdateData
()
;
void
SetEchoChar
(
sal_Unicode
c
);
void
SetEchoChar
(
sal_Unicode
c
);
sal_Unicode
GetEchoChar
()
const
{
return
mcEchoChar
;
}
sal_Unicode
GetEchoChar
()
const
{
return
mcEchoChar
;
}
...
...
include/vcl/toolbox.hxx
Dosyayı görüntüle @
ed6aceab
...
@@ -25,12 +25,10 @@
...
@@ -25,12 +25,10 @@
#include <vcl/dllapi.h>
#include <vcl/dllapi.h>
#include <vcl/dockwin.hxx>
#include <vcl/dockwin.hxx>
#include <vcl/image.hxx>
#include <vcl/image.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <vector>
#include <vector>
class
Timer
;
class
UserDrawEvent
;
class
UserDrawEvent
;
struct
ImplToolItem
;
struct
ImplToolItem
;
struct
ImplToolSize
;
struct
ImplToolSize
;
struct
ImplToolBoxPrivateData
;
struct
ImplToolBoxPrivateData
;
...
@@ -67,6 +65,7 @@ struct ImplToolSize
...
@@ -67,6 +65,7 @@ struct ImplToolSize
sal_uInt16
mnLines
;
sal_uInt16
mnLines
;
};
};
class
Idle
;
class
VCL_DLLPUBLIC
ToolBox
:
public
DockingWindow
class
VCL_DLLPUBLIC
ToolBox
:
public
DockingWindow
{
{
friend
class
FloatingWindow
;
friend
class
FloatingWindow
;
...
@@ -76,7 +75,7 @@ private:
...
@@ -76,7 +75,7 @@ private:
ImplToolBoxPrivateData
*
mpData
;
ImplToolBoxPrivateData
*
mpData
;
std
::
vector
<
ImplToolSize
>
maFloatSizes
;
std
::
vector
<
ImplToolSize
>
maFloatSizes
;
ImageList
maImageList
;
ImageList
maImageList
;
Idle
ma
Idle
;
Idle
*
mp
Idle
;
Rectangle
maUpperRect
;
Rectangle
maUpperRect
;
Rectangle
maLowerRect
;
Rectangle
maLowerRect
;
Rectangle
maOutDockRect
;
Rectangle
maOutDockRect
;
...
...
sfx2/source/inc/objshimp.hxx
Dosyayı görüntüle @
ed6aceab
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <sfx2/objsh.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/docmacromode.hxx>
#include <sfx2/docmacromode.hxx>
#include "bitset.hxx"
#include "bitset.hxx"
#include <vcl/timer.hxx>
#include <appbaslib.hxx>
#include <appbaslib.hxx>
...
@@ -45,6 +46,17 @@ struct MarkData_Impl
...
@@ -45,6 +46,17 @@ struct MarkData_Impl
class
SfxBasicManagerHolder
;
class
SfxBasicManagerHolder
;
class
AutoReloadTimer_Impl
:
public
Timer
{
OUString
aUrl
;
SfxObjectShell
*
pObjSh
;
public
:
AutoReloadTimer_Impl
(
const
OUString
&
rURL
,
sal_uInt32
nTime
,
SfxObjectShell
*
pSh
);
virtual
void
Invoke
()
override
;
};
struct
SfxObjectShell_Impl
:
public
::
sfx2
::
IMacroDocumentAccess
struct
SfxObjectShell_Impl
:
public
::
sfx2
::
IMacroDocumentAccess
{
{
::
comphelper
::
EmbeddedObjectContainer
*
mpObjectContainer
;
::
comphelper
::
EmbeddedObjectContainer
*
mpObjectContainer
;
...
...
vcl/source/control/edit.cxx
Dosyayı görüntüle @
ed6aceab
...
@@ -2463,6 +2463,12 @@ void Edit::EnableUpdateData( sal_uLong nTimeout )
...
@@ -2463,6 +2463,12 @@ void Edit::EnableUpdateData( sal_uLong nTimeout )
}
}
}
}
void
Edit
::
DisableUpdateData
()
{
delete
mpUpdateDataTimer
;
mpUpdateDataTimer
=
nullptr
;
}
void
Edit
::
SetEchoChar
(
sal_Unicode
c
)
void
Edit
::
SetEchoChar
(
sal_Unicode
c
)
{
{
mcEchoChar
=
c
;
mcEchoChar
=
c
;
...
...
vcl/source/window/toolbox.cxx
Dosyayı görüntüle @
ed6aceab
...
@@ -1398,8 +1398,9 @@ void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
...
@@ -1398,8 +1398,9 @@ void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
mnKeyModifier
=
0
;
mnKeyModifier
=
0
;
mnActivateCount
=
0
;
mnActivateCount
=
0
;
maIdle
.
SetPriority
(
SchedulerPriority
::
RESIZE
);
mpIdle
=
new
Idle
(
"toolbox update"
);
maIdle
.
SetIdleHdl
(
LINK
(
this
,
ToolBox
,
ImplUpdateHdl
)
);
mpIdle
->
SetPriority
(
SchedulerPriority
::
RESIZE
);
mpIdle
->
SetIdleHdl
(
LINK
(
this
,
ToolBox
,
ImplUpdateHdl
)
);
// set timeout and handler for dropdown items
// set timeout and handler for dropdown items
mpData
->
maDropdownTimer
.
SetTimeout
(
250
);
mpData
->
maDropdownTimer
.
SetTimeout
(
250
);
...
@@ -1657,6 +1658,10 @@ void ToolBox::dispose()
...
@@ -1657,6 +1658,10 @@ void ToolBox::dispose()
}
}
}
}
mpFloatWin
.
clear
();
mpFloatWin
.
clear
();
delete
mpIdle
;
mpIdle
=
nullptr
;
DockingWindow
::
dispose
();
DockingWindow
::
dispose
();
}
}
...
...
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