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
3c5dbb2f
Kaydet (Commit)
3c5dbb2f
authored
Ock 27, 2012
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove some dead code
üst
0c0fbef7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
47 deletions
+0
-47
keycod.hxx
vcl/inc/vcl/keycod.hxx
+0
-17
menu.cxx
vcl/source/window/menu.cxx
+0
-30
No files found.
vcl/inc/vcl/keycod.hxx
Dosyayı görüntüle @
3c5dbb2f
...
...
@@ -39,23 +39,6 @@
class
Window
;
// -------------
// - Key-Types -
// -------------
// Logische KeyFunktionen
/*
#ifndef ENUM_KEYFUNCTYPE_DECLARED
#define ENUM_KEYFUNCTYPE_DECLARED
enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN,
KEYFUNC_SAVE, KEYFUNC_SAVEAS, KEYFUNC_PRINT,
KEYFUNC_CLOSE, KEYFUNC_QUIT,
KEYFUNC_CUT, KEYFUNC_COPY, KEYFUNC_PASTE, KEYFUNC_UNDO,
KEYFUNC_REDO, KEYFUNC_DELETE, KEYFUNC_REPEAT,
KEYFUNC_FIND, KEYFUNC_FINDBACKWARD, KEYFUNC_PROPERTIES,
KEYFUNC_FRONT };
#endif
*/
// -----------
// - KeyCode -
// -----------
...
...
vcl/source/window/menu.cxx
Dosyayı görüntüle @
3c5dbb2f
...
...
@@ -473,7 +473,6 @@ private:
Timer
aSubmenuCloseTimer
;
Timer
aScrollTimer
;
sal_uLong
nSaveFocusId
;
// long nStartY;
sal_uInt16
nHighlightedItem
;
// highlighted/selected Item
sal_uInt16
nMBDownPos
;
sal_uInt16
nScrollerHeight
;
...
...
@@ -1209,20 +1208,6 @@ void Menu::RemoveEventListener( const Link& rEventListener )
maEventListeners
.
removeListener
(
rEventListener
);
}
// -----------------------------------------------------------------------
//void Menu::AddChildEventListener( const Link& rEventListener )
//{
// mpDummy4_WindowChildEventListeners->push_back( rEventListener );
//}
// -----------------------------------------------------------------------
//void Menu::RemoveChildEventListener( const Link& rEventListener )
//{
// mpDummy4_WindowChildEventListeners->remove( rEventListener );
//}
void
Menu
::
InsertItem
(
sal_uInt16
nItemId
,
const
XubString
&
rStr
,
MenuItemBits
nItemBits
,
sal_uInt16
nPos
)
{
DBG_ASSERT
(
nItemId
,
"Menu::InsertItem(): ItemId == 0"
);
...
...
@@ -1466,7 +1451,6 @@ void ImplCopyItem( Menu* pThis, const Menu& rMenu, sal_uInt16 nPos, sal_uInt16 n
{
PopupMenu
*
pNewMenu
=
new
PopupMenu
(
*
pSubMenu
);
pThis
->
SetPopupMenu
(
nId
,
pNewMenu
);
// SetAutoMenu( pThis, nId, pNewMenu );
}
else
pThis
->
SetPopupMenu
(
nId
,
pSubMenu
);
...
...
@@ -2465,9 +2449,6 @@ Size Menu::ImplCalcSize( Window* pWin )
long
nTextWidth
=
pWin
->
GetCtrlTextWidth
(
pData
->
aText
);
long
nTextHeight
=
pWin
->
GetTextHeight
();
// if ( nTextHeight > pData->aSz.Height() )
// pData->aSz.Height() = nTextHeight;
if
(
bIsMenuBar
)
{
if
(
nTextHeight
>
pData
->
aSz
.
Height
()
)
...
...
@@ -3960,7 +3941,6 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, Window* pParent, WinBits nSt
nMBDownPos
=
ITEMPOS_INVALID
;
nPosInParent
=
ITEMPOS_INVALID
;
nScrollerHeight
=
0
;
// nStartY = 0;
nBorder
=
EXTRASPACEY
;
nFirstEntry
=
0
;
bScrollUp
=
sal_False
;
...
...
@@ -4238,8 +4218,6 @@ IMPL_LINK( MenuFloatingWindow, HighlightChanged, Timer*, pTimer )
}
pData
=
pMenu
->
pItemList
->
GetDataFromPos
(
nHighlightedItem
);
Size
MySize
=
GetOutputSizePixel
();
// Point MyPos = GetPosPixel();
// Point aItemTopLeft( MyPos.X(), MyPos.Y()+nY );
Point
aItemTopLeft
(
0
,
nY
);
Point
aItemBottomRight
(
aItemTopLeft
);
aItemBottomRight
.
X
()
+=
MySize
.
Width
();
...
...
@@ -4320,9 +4298,6 @@ void MenuFloatingWindow::Execute()
Application
::
Yield
();
pSVData
->
maAppData
.
mpActivePopupMenu
=
NULL
;
// while ( bCallingSelect )
// Application::Yield();
}
void
MenuFloatingWindow
::
StopExecute
(
sal_uLong
nFocusId
)
...
...
@@ -4523,8 +4498,6 @@ void MenuFloatingWindow::ImplScroll( sal_Bool bUp )
long
nScrollEntryHeight
=
pMenu
->
GetItemList
()
->
GetDataFromPos
(
nFirstEntry
)
->
aSz
.
Height
();
// nStartY += nEntryHeight;
if
(
!
bScrollDown
)
{
bScrollDown
=
sal_True
;
...
...
@@ -4562,7 +4535,6 @@ void MenuFloatingWindow::ImplScroll( sal_Bool bUp )
ImplDrawScroller
(
sal_False
);
}
// nStartY -= nEntryHeight;
Scroll
(
0
,
-
nScrollEntryHeight
,
ImplCalcClipRegion
(
sal_False
).
GetBoundRect
(),
SCROLL_CLIP
);
}
...
...
@@ -5357,8 +5329,6 @@ void MenuBarWindow::ImplCreatePopup( sal_Bool bPreSelectFirst )
nX
+=
pData
->
aSz
.
Width
();
}
pData
=
pMenu
->
pItemList
->
GetDataFromPos
(
nHighlightedItem
);
// Point MyPos = GetPosPixel();
// Point aItemTopLeft( MyPos.X()+nX, MyPos.Y() );
Point
aItemTopLeft
(
nX
,
0
);
Point
aItemBottomRight
(
aItemTopLeft
);
aItemBottomRight
.
X
()
+=
pData
->
aSz
.
Width
();
...
...
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