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
e7737fef
Kaydet (Commit)
e7737fef
authored
Mar 06, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ditch archaic taskbox/taskmisc/taskstat implementations
üst
f9a4af41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1 addition
and
613 deletions
+1
-613
anyrefdg.cxx
sc/source/ui/miscdlgs/anyrefdg.cxx
+0
-1
Library_svt.mk
svtools/Library_svt.mk
+0
-3
Package_inc.mk
svtools/Package_inc.mk
+0
-1
taskbar.hxx
svtools/inc/svtools/taskbar.hxx
+0
-271
taskbox.cxx
svtools/source/control/taskbox.cxx
+0
-277
taskmisc.cxx
svtools/source/control/taskmisc.cxx
+0
-57
taskstat.cxx
svtools/source/control/taskstat.cxx
+0
-0
unusedcode.easy
unusedcode.easy
+1
-3
No files found.
sc/source/ui/miscdlgs/anyrefdg.cxx
Dosyayı görüntüle @
e7737fef
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#include <vcl/wrkwin.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/mnemonic.hxx>
#include <vcl/mnemonic.hxx>
#include <tools/shl.hxx>
#include <tools/shl.hxx>
#include <svtools/taskbar.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/dispatch.hxx>
...
...
svtools/Library_svt.mk
Dosyayı görüntüle @
e7737fef
...
@@ -128,9 +128,6 @@ $(eval $(call gb_Library_add_exception_objects,svt,\
...
@@ -128,9 +128,6 @@ $(eval $(call gb_Library_add_exception_objects,svt,\
svtools/source/control/stdctrl \
svtools/source/control/stdctrl \
svtools/source/control/stdmenu \
svtools/source/control/stdmenu \
svtools/source/control/tabbar \
svtools/source/control/tabbar \
svtools/source/control/taskbox \
svtools/source/control/taskmisc \
svtools/source/control/taskstat \
svtools/source/control/toolbarmenu \
svtools/source/control/toolbarmenu \
svtools/source/control/toolbarmenuacc \
svtools/source/control/toolbarmenuacc \
svtools/source/control/urlcontrol \
svtools/source/control/urlcontrol \
...
...
svtools/Package_inc.mk
Dosyayı görüntüle @
e7737fef
...
@@ -155,7 +155,6 @@ $(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tablemodel.hxx,s
...
@@ -155,7 +155,6 @@ $(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tablemodel.hxx,s
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tablerenderer.hxx,svtools/table/tablerenderer.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tablerenderer.hxx,svtools/table/tablerenderer.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tabletypes.hxx,svtools/table/tabletypes.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tabletypes.hxx,svtools/table/tabletypes.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tablesort.hxx,svtools/table/tablesort.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/table/tablesort.hxx,svtools/table/tablesort.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/taskbar.hxx,svtools/taskbar.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/templatefoldercache.hxx,svtools/templatefoldercache.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/templatefoldercache.hxx,svtools/templatefoldercache.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/templdlg.hxx,svtools/templdlg.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/templdlg.hxx,svtools/templdlg.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/textdata.hxx,svtools/textdata.hxx))
$(eval $(call gb_Package_add_file,svtools_inc,inc/svtools/textdata.hxx,svtools/textdata.hxx))
...
...
svtools/inc/svtools/taskbar.hxx
deleted
100644 → 0
Dosyayı görüntüle @
f9a4af41
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _TASKBAR_HXX
#define _TASKBAR_HXX
#include "svtools/svtdllapi.h"
#include <tools/time.hxx>
#include <vcl/timer.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/status.hxx>
class
TaskStatusFieldItem
;
struct
ImplTaskSBFldItem
;
struct
ImplTaskItem
;
typedef
::
std
::
vector
<
ImplTaskItem
*
>
ImplTaskItemList
;
struct
ImplTaskSBFldItem
;
typedef
::
std
::
vector
<
ImplTaskSBFldItem
*
>
ImplTaskSBItemList
;
// -----------------
// - Dokumentation -
// -----------------
/*
TaskToolBox
===========
ActivateTask()
Handler der gerufen wird, wenn ein Task aktiviert werden muss.
ContextMenu()
Dieser Handler wird gerufen, wenn ein ContextMenu angezeigt werden soll.
Mit GetTaskMode() kann abgefragt werden, ob fuer einen Task oder ein
Item.
GetContextMenuPos()
Liefert die Position zurueck, wo das Contextmenu angezeigt werden soll.
TaskStatusBar
=============
Fuegt ein Statusfeld ein, wo die aktuelle Uhrzeit angezeigt wird. In
dieses Feld koennen dann mit AddStatusFielItem(), ModifyStatusFielItem()
und RemoveStatusFielItem() Status-Items eingefuegt werden. Bei diesen
muss man ein Image angeben, welches dann angezeigt wird. Ausserdem kann
man bei diesen noch Hilfe-Texte angeben oder sagen, ob sie blinken
sollen und ein Notify-Object, worueber man informiert wird, wenn ein
Kontextmenu angezeigt wird oder das Item angeklickt wird. Am
TaskStatusBar kann auch ein Notify-Object gesetzt werden, wenn man
benachrichtigt werden will, wenn die Uhrzeit oder die TaskStatusBar
angeklickt wird. Wenn der Notify fuer die Uhrzeit kommt, ist die
Id TASKSTATUSBAR_CLOCKID, wenn er fuer die TaskStatusBar kommt, ist
die Id 0.
*/
// -----------------
// - TaskButtonBar -
// -----------------
class
TaskButtonBar
:
public
ToolBox
{
private
:
void
*
mpDummy1
;
void
*
mpDummy2
;
void
*
mpDummy3
;
void
*
mpDummy4
;
public
:
TaskButtonBar
(
Window
*
pParent
,
WinBits
nWinStyle
=
0
);
~
TaskButtonBar
();
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
);
void
InsertButton
(
sal_uInt16
nItemId
,
const
Image
&
rImage
,
const
String
&
rText
,
sal_uInt16
nPos
=
TOOLBOX_APPEND
)
{
InsertItem
(
nItemId
,
rImage
,
rText
,
TIB_LEFT
|
TIB_AUTOSIZE
,
nPos
);
}
void
RemoveButton
(
sal_uInt16
nItemId
)
{
RemoveItem
(
nItemId
);
}
};
// ---------------
// - TaskToolBox -
// ---------------
class
SVT_DLLPUBLIC
TaskToolBox
:
public
ToolBox
{
private
:
ImplTaskItemList
*
mpItemList
;
Point
maContextMenuPos
;
size_t
mnOldItemCount
;
long
mnMaxTextWidth
;
long
mnDummy1
;
size_t
mnUpdatePos
;
size_t
mnUpdateNewPos
;
size_t
mnActiveItemId
;
size_t
mnNewActivePos
;
sal_uInt16
mnSmallItem
;
sal_uInt16
mnDummy2
;
sal_Bool
mbMinActivate
;
sal_Bool
mbDummy1
;
Link
maActivateTaskHdl
;
Link
maContextMenuHdl
;
#ifdef _TASKBAR_CXX
SVT_DLLPRIVATE
void
ImplFormatTaskToolBox
();
#endif
// Forbidden and not implemented.
TaskToolBox
(
const
TaskToolBox
&
);
TaskToolBox
&
operator
=
(
const
TaskToolBox
&
);
public
:
TaskToolBox
(
Window
*
pParent
,
WinBits
nWinStyle
=
0
);
~
TaskToolBox
();
void
ActivateTaskItem
(
sal_uInt16
nItemId
,
sal_Bool
bMinActivate
=
sal_False
);
virtual
void
ActivateTask
();
virtual
void
ContextMenu
();
virtual
void
Select
();
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
);
virtual
void
Resize
();
virtual
void
Command
(
const
CommandEvent
&
rCEvt
);
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
);
const
Point
&
GetContextMenuPos
()
const
{
return
maContextMenuPos
;
}
sal_Bool
IsMinActivate
()
const
{
return
mbMinActivate
;
}
void
SetActivateTaskHdl
(
const
Link
&
rLink
)
{
maActivateTaskHdl
=
rLink
;
}
const
Link
&
GetActivateTaskHdl
()
const
{
return
maActivateTaskHdl
;
}
void
SetContextMenuHdl
(
const
Link
&
rLink
)
{
maContextMenuHdl
=
rLink
;
}
const
Link
&
GetContextMenuHdl
()
const
{
return
maContextMenuHdl
;
}
};
// ---------------------
// - ITaskStatusNotify -
// ---------------------
class
ITaskStatusNotify
{
public
:
virtual
sal_Bool
MouseButtonDown
(
sal_uInt16
nItemd
,
const
MouseEvent
&
rMEvt
);
virtual
sal_Bool
MouseButtonUp
(
sal_uInt16
nItemd
,
const
MouseEvent
&
rMEvt
);
virtual
sal_Bool
MouseMove
(
sal_uInt16
nItemd
,
const
MouseEvent
&
rMEvt
);
virtual
sal_Bool
Command
(
sal_uInt16
nItemd
,
const
CommandEvent
&
rCEvt
);
virtual
sal_Bool
UpdateHelp
(
sal_uInt16
nItemd
);
};
// -----------------------
// - TaskStatusFieldItem -
// -----------------------
#define TASKSTATUSFIELDITEM_FLASH ((sal_uInt16)0x0001)
class
TaskStatusFieldItem
{
private
:
ITaskStatusNotify
*
mpNotify
;
Image
maImage
;
XubString
maQuickHelpText
;
XubString
maHelpText
;
rtl
::
OString
maHelpId
;
sal_uInt16
mnFlags
;
public
:
TaskStatusFieldItem
();
TaskStatusFieldItem
(
const
TaskStatusFieldItem
&
rItem
);
~
TaskStatusFieldItem
();
void
SetNotifyObject
(
ITaskStatusNotify
*
pNotify
)
{
mpNotify
=
pNotify
;
}
ITaskStatusNotify
*
GetNotifyObject
()
const
{
return
mpNotify
;
}
void
SetImage
(
const
Image
&
rImage
)
{
maImage
=
rImage
;
}
const
Image
&
GetImage
()
const
{
return
maImage
;
}
void
SetQuickHelpText
(
const
XubString
&
rStr
)
{
maQuickHelpText
=
rStr
;
}
const
XubString
&
GetQuickHelpText
()
const
{
return
maQuickHelpText
;
}
void
SetHelpText
(
const
XubString
&
rStr
)
{
maHelpText
=
rStr
;
}
const
XubString
&
GetHelpText
()
const
{
return
maHelpText
;
}
void
SetHelpId
(
const
rtl
::
OString
&
rHelpId
)
{
maHelpId
=
rHelpId
;
}
const
rtl
::
OString
&
GetHelpId
()
const
{
return
maHelpId
;
}
void
SetFlags
(
sal_uInt16
nFlags
)
{
mnFlags
=
nFlags
;
}
sal_uInt16
GetFlags
()
const
{
return
mnFlags
;
}
const
TaskStatusFieldItem
&
operator
=
(
const
TaskStatusFieldItem
&
rItem
);
};
// -----------------
// - TaskStatusBar -
// -----------------
#define TASKSTATUSBAR_STATUSFIELDID ((sal_uInt16)61000)
#define TASKSTATUSBAR_CLOCKID ((sal_uInt16)61000)
#define TASKSTATUSFIELD_CLOCK ((sal_uInt16)0x0001)
class
SVT_DLLPUBLIC
TaskStatusBar
:
public
StatusBar
{
private
:
ImplTaskSBItemList
*
mpFieldItemList
;
ITaskStatusNotify
*
mpNotify
;
Time
maTime
;
XubString
maTimeText
;
AutoTimer
maTimer
;
long
mnClockWidth
;
long
mnItemWidth
;
long
mnFieldWidth
;
sal_uInt16
mnFieldFlags
;
sal_uInt16
mnDummy1
;
sal_Bool
mbFlashItems
;
sal_Bool
mbOutInterval
;
sal_Bool
mbDummy1
;
sal_Bool
mbDummy2
;
#ifdef _TASKBAR_CXX
SVT_DLLPRIVATE
ImplTaskSBFldItem
*
ImplGetFieldItem
(
const
Point
&
rPos
,
sal_Bool
&
rFieldRect
)
const
;
SVT_DLLPRIVATE
sal_Bool
ImplUpdateClock
();
SVT_DLLPRIVATE
sal_Bool
ImplUpdateFlashItems
();
DECL_DLLPRIVATE_LINK
(
ImplTimerHdl
,
void
*
);
#endif
public
:
TaskStatusBar
(
Window
*
pParent
,
WinBits
nWinStyle
=
WB_LEFT
);
~
TaskStatusBar
();
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
);
virtual
void
MouseButtonUp
(
const
MouseEvent
&
rMEvt
);
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
);
virtual
void
Command
(
const
CommandEvent
&
rCEvt
);
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
);
virtual
void
UserDraw
(
const
UserDrawEvent
&
rUDEvt
);
sal_uInt16
GetFieldFlags
()
const
{
return
mnFieldFlags
;
}
void
SetNotifyObject
(
ITaskStatusNotify
*
pNotify
)
{
mpNotify
=
pNotify
;
}
ITaskStatusNotify
*
GetNotifyObject
()
const
{
return
mpNotify
;
}
};
#endif // _TASKBAR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svtools/source/control/taskbox.cxx
deleted
100644 → 0
Dosyayı görüntüle @
f9a4af41
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#define _TASKBAR_CXX
#include <tools/debug.hxx>
#include <vcl/image.hxx>
#include <vcl/help.hxx>
#include <svtools/taskbar.hxx>
// =======================================================================
#define TASKBOX_TASKOFF 3
// =======================================================================
struct
ImplTaskItem
{
Image
maImage
;
XubString
maText
;
};
// =======================================================================
TaskToolBox
::
TaskToolBox
(
Window
*
pParent
,
WinBits
nWinStyle
)
:
ToolBox
(
pParent
,
nWinStyle
|
WB_SCROLL
|
WB_3DLOOK
)
{
mpItemList
=
new
ImplTaskItemList
;
mnMaxTextWidth
=
0
;
mnActiveItemId
=
0
;
mnSmallItem
=
TOOLBOX_ITEM_NOTFOUND
;
mbMinActivate
=
sal_False
;
SetAlign
(
WINDOWALIGN_BOTTOM
);
SetButtonType
(
BUTTON_SYMBOLTEXT
);
}
// -----------------------------------------------------------------------
TaskToolBox
::~
TaskToolBox
()
{
for
(
size_t
i
=
0
,
n
=
mpItemList
->
size
();
i
<
n
;
++
i
)
{
delete
(
*
mpItemList
)[
i
];
}
mpItemList
->
clear
();
delete
mpItemList
;
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
ActivateTaskItem
(
sal_uInt16
nItemId
,
sal_Bool
bMinActivate
)
{
if
(
nItemId
)
{
if
(
nItemId
!=
mnActiveItemId
)
{
if
(
mnActiveItemId
)
CheckItem
(
mnActiveItemId
,
sal_False
);
CheckItem
(
nItemId
);
mnActiveItemId
=
nItemId
;
}
else
{
if
(
!
bMinActivate
)
return
;
mbMinActivate
=
sal_True
;
}
ActivateTask
();
mbMinActivate
=
sal_False
;
}
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
ActivateTask
()
{
maActivateTaskHdl
.
Call
(
this
);
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
ContextMenu
()
{
maContextMenuHdl
.
Call
(
this
);
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
{
if
(
!
rMEvt
.
IsRight
()
)
ToolBox
::
MouseButtonDown
(
rMEvt
);
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
Resize
()
{
mnOldItemCount
=
mpItemList
->
size
();
mnUpdatePos
=
mnOldItemCount
;
mnUpdateNewPos
=
TOOLBOX_ITEM_NOTFOUND
;
ImplFormatTaskToolBox
();
ToolBox
::
Resize
();
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
Command
(
const
CommandEvent
&
rCEvt
)
{
if
(
rCEvt
.
GetCommand
()
==
COMMAND_CONTEXTMENU
)
{
maContextMenuPos
=
rCEvt
.
GetMousePosPixel
();
ContextMenu
();
maContextMenuPos
=
Point
();
}
else
ToolBox
::
Command
(
rCEvt
);
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
RequestHelp
(
const
HelpEvent
&
rHEvt
)
{
if
(
rHEvt
.
GetMode
()
&
(
HELPMODE_BALLOON
|
HELPMODE_QUICK
)
)
{
size_t
nItemId
=
GetItemId
(
ScreenToOutputPixel
(
rHEvt
.
GetMousePosPixel
()
)
);
if
(
nItemId
)
{
ImplTaskItem
*
pItem
=
(
nItemId
-
1
<
mpItemList
->
size
()
)
?
(
*
mpItemList
)[
nItemId
-
1
]
:
NULL
;
if
(
pItem
)
{
if
(
pItem
->
maText
!=
GetItemText
(
nItemId
)
)
{
Rectangle
aItemRect
=
GetItemRect
(
nItemId
);
if
(
rHEvt
.
GetMode
()
&
HELPMODE_QUICK
)
Help
::
ShowQuickHelp
(
this
,
aItemRect
,
pItem
->
maText
);
else
Help
::
ShowBalloon
(
this
,
aItemRect
.
Center
(),
aItemRect
,
pItem
->
maText
);
}
else
Help
::
ShowQuickHelp
(
this
,
Rectangle
(),
String
()
);
return
;
}
}
}
ToolBox
::
RequestHelp
(
rHEvt
);
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
Select
()
{
sal_uInt16
nItemId
=
GetCurItemId
();
ActivateTaskItem
(
nItemId
,
sal_True
);
}
// -----------------------------------------------------------------------
void
TaskToolBox
::
ImplFormatTaskToolBox
()
{
if
(
mnUpdateNewPos
==
TOOLBOX_ITEM_NOTFOUND
)
{
// Eintraege aus der Liste entfernen
while
(
mpItemList
->
size
()
>
mnUpdatePos
)
{
delete
mpItemList
->
back
();
mpItemList
->
pop_back
();
}
mnUpdateNewPos
=
mnUpdatePos
;
}
// Maximale Itemgroesse berechnen
long
nOldMaxTextWidth
=
mnMaxTextWidth
;
mnMaxTextWidth
=
70
;
if
(
!
mpItemList
->
empty
()
)
{
long
nWinSize
=
GetOutputSizePixel
().
Width
()
-
8
;
long
nItemSize
=
(
*
mpItemList
)[
0
]
->
maImage
.
GetSizePixel
().
Width
()
+
7
+
TASKBOX_TASKOFF
+
2
;
nWinSize
-=
mpItemList
->
size
()
*
nItemSize
;
if
(
nWinSize
>
0
)
nWinSize
/=
mpItemList
->
size
();
else
nWinSize
=
0
;
if
(
nWinSize
<
mnMaxTextWidth
)
mnMaxTextWidth
=
nWinSize
;
if
(
(
mnMaxTextWidth
<
nOldMaxTextWidth
)
||
((
mnMaxTextWidth
-
nOldMaxTextWidth
>
3
)
&&
(
mnSmallItem
!=
TOOLBOX_ITEM_NOTFOUND
))
)
{
mnSmallItem
=
TOOLBOX_ITEM_NOTFOUND
;
mnUpdateNewPos
=
0
;
}
}
// Eintraege aus der ToolBox entfernen, die ersetzt werden
sal_uInt16
nBtnPos
=
(
mnUpdateNewPos
*
2
);
while
(
nBtnPos
<
GetItemCount
()
)
RemoveItem
(
nBtnPos
);
if
(
mnUpdateNewPos
<=
(
mnActiveItemId
-
1
)
)
mnActiveItemId
=
0
;
// Neue Eintrage einfuegen
size_t
i
=
mnUpdateNewPos
;
while
(
i
<
mpItemList
->
size
()
)
{
ImplTaskItem
*
pItem
=
(
*
mpItemList
)[
i
];
// Textlaenge berechnen
XubString
aText
=
pItem
->
maText
;
if
(
!
aText
.
Len
()
)
aText
=
' '
;
long
nTxtWidth
=
GetTextWidth
(
aText
);
if
(
nTxtWidth
>
mnMaxTextWidth
)
{
if
(
mnSmallItem
==
TOOLBOX_ITEM_NOTFOUND
)
mnSmallItem
=
i
;
// 3 == Len of "..."
aText
.
AppendAscii
(
"..."
);
do
{
aText
.
Erase
(
aText
.
Len
()
-
3
-
1
,
1
);
nTxtWidth
=
GetTextWidth
(
aText
);
}
while
(
(
nTxtWidth
>
mnMaxTextWidth
)
&&
(
aText
.
Len
()
>
3
)
);
}
sal_uInt16
nItemId
=
i
+
1
;
if
(
aText
.
EqualsAscii
(
"..."
)
)
InsertItem
(
nItemId
,
pItem
->
maImage
,
TIB_LEFT
);
else
InsertItem
(
nItemId
,
pItem
->
maImage
,
aText
,
TIB_LEFT
);
InsertSeparator
(
TOOLBOX_APPEND
,
TASKBOX_TASKOFF
);
i
++
;
}
if
(
mnUpdateNewPos
!=
0
)
mnMaxTextWidth
=
nOldMaxTextWidth
;
if
(
mnNewActivePos
+
1
!=
mnActiveItemId
)
{
if
(
mnActiveItemId
)
CheckItem
(
mnActiveItemId
,
sal_False
);
mnActiveItemId
=
mnNewActivePos
+
1
;
CheckItem
(
mnActiveItemId
);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svtools/source/control/taskmisc.cxx
deleted
100644 → 0
Dosyayı görüntüle @
f9a4af41
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#define _TASKBAR_CXX
#include <vcl/help.hxx>
#include <svtools/taskbar.hxx>
// =======================================================================
TaskButtonBar
::
TaskButtonBar
(
Window
*
pParent
,
WinBits
nWinStyle
)
:
ToolBox
(
pParent
,
nWinStyle
|
WB_3DLOOK
)
{
SetAlign
(
WINDOWALIGN_BOTTOM
);
SetButtonType
(
BUTTON_SYMBOLTEXT
);
}
// -----------------------------------------------------------------------
TaskButtonBar
::~
TaskButtonBar
()
{
}
// -----------------------------------------------------------------------
void
TaskButtonBar
::
RequestHelp
(
const
HelpEvent
&
rHEvt
)
{
ToolBox
::
RequestHelp
(
rHEvt
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svtools/source/control/taskstat.cxx
deleted
100644 → 0
Dosyayı görüntüle @
f9a4af41
This diff is collapsed.
Click to expand it.
unusedcode.easy
Dosyayı görüntüle @
e7737fef
...
@@ -357,7 +357,6 @@ SwpHtStart::Insert(SwTxtAttr const**, unsigned short)
...
@@ -357,7 +357,6 @@ SwpHtStart::Insert(SwTxtAttr const**, unsigned short)
SwpHtStart::Insert(SwpHtStart const*, unsigned short, unsigned short)
SwpHtStart::Insert(SwpHtStart const*, unsigned short, unsigned short)
SwpHtStart::Remove(SwTxtAttr const*&, unsigned short)
SwpHtStart::Remove(SwTxtAttr const*&, unsigned short)
SystemChildWindow::SystemChildWindow(Window*, ResId const&)
SystemChildWindow::SystemChildWindow(Window*, ResId const&)
TaskStatusFieldItem::TaskStatusFieldItem()
TempFile::IsValid() const
TempFile::IsValid() const
TextEngine::GetLeftMargin() const
TextEngine::GetLeftMargin() const
TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&)
TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&)
...
@@ -479,8 +478,6 @@ _ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short)
...
@@ -479,8 +478,6 @@ _ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short)
_ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short)
_ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short)
_ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&, void*), void*)
_ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&, void*), void*)
basebmp::debugDump(boost::shared_ptr<basebmp::BitmapDevice> const&, std::basic_ostream<char, std::char_traits<char> >&)
basebmp::debugDump(boost::shared_ptr<basebmp::BitmapDevice> const&, std::basic_ostream<char, std::char_traits<char> >&)
basegfx::(anonymous namespace)::impAppendCopy(basegfx::B3DPolygon&, basegfx::B3DPolygon const&, unsigned int)
basegfx::(anonymous namespace)::impAppendInterpolate(basegfx::B3DPolygon&, basegfx::B3DPolygon const&, unsigned int, unsigned int, double)
basegfx::tools::equal(basegfx::B2DPolyPolygon const&, basegfx::B2DPolyPolygon const&, double const&)
basegfx::tools::equal(basegfx::B2DPolyPolygon const&, basegfx::B2DPolyPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&, double const&)
basegfx::tools::getSignedArea(basegfx::B3DPolygon const&)
basegfx::tools::getSignedArea(basegfx::B3DPolygon const&)
...
@@ -918,6 +915,7 @@ drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D::PolyPolygonStrokePrimit
...
@@ -918,6 +915,7 @@ drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D::PolyPolygonStrokePrimit
formula::ArgInput::GetArgSelection()
formula::ArgInput::GetArgSelection()
formula::EditBox::EditBox(Window*, long)
formula::EditBox::EditBox(Window*, long)
formula::FormulaListBox::FormulaListBox(Window*, long)
formula::FormulaListBox::FormulaListBox(Window*, long)
formula::FormulaTokenArray::AddBad(unsigned short const*)
formula::FormulaTokenIterator::First()
formula::FormulaTokenIterator::First()
framework::TabWindow::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
framework::TabWindow::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
jfw_plugin::VendorBase::createInstance()
jfw_plugin::VendorBase::createInstance()
...
...
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