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
fd3ec89f
Kaydet (Commit)
fd3ec89f
authored
Agu 13, 2011
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: Remove unused ImplDockingWindowWrapper's methods.
üst
1fc2490f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
186 deletions
+2
-186
unusedcode.easy
unusedcode.easy
+0
-14
dockwin.hxx
vcl/inc/vcl/dockwin.hxx
+0
-18
dockmgr.cxx
vcl/source/window/dockmgr.cxx
+2
-154
No files found.
unusedcode.easy
Dosyayı görüntüle @
fd3ec89f
...
@@ -344,20 +344,6 @@ ImpSvtData::~ImpSvtData()
...
@@ -344,20 +344,6 @@ ImpSvtData::~ImpSvtData()
ImplBorderWindow::ImplBorderWindow(Window*, long, unsigned short, com::sun::star::uno::Any const&)
ImplBorderWindow::ImplBorderWindow(Window*, long, unsigned short, com::sun::star::uno::Any const&)
ImplBorderWindow::SetHelpButton(unsigned char)
ImplBorderWindow::SetHelpButton(unsigned char)
ImplDevFontList::ImplFindByLocale(com::sun::star::lang::Locale&) const
ImplDevFontList::ImplFindByLocale(com::sun::star::lang::Locale&) const
ImplDockingWindowWrapper::GetFloatingPos() const
ImplDockingWindowWrapper::GetMaxOutputSizePixel() const
ImplDockingWindowWrapper::GetMinOutputSizePixel() const
ImplDockingWindowWrapper::GetOutputSizePixel() const
ImplDockingWindowWrapper::GetRollUpOutputSizePixel() const
ImplDockingWindowWrapper::IsPined() const
ImplDockingWindowWrapper::IsRollUp() const
ImplDockingWindowWrapper::IsTitleButtonVisible(unsigned short) const
ImplDockingWindowWrapper::RollDown()
ImplDockingWindowWrapper::RollUp()
ImplDockingWindowWrapper::SetFloatingPos(Point const&)
ImplDockingWindowWrapper::SetOutputSizePixel(Size const&)
ImplDockingWindowWrapper::SetPin(unsigned char)
ImplDockingWindowWrapper::SetRollUpOutputSizePixel(Size const&)
ImplEntryList::IsEntrySelected(String const&) const
ImplEntryList::IsEntrySelected(String const&) const
ImplFontSelectData::ImplFontSelectData(ImplFontData const&, Size const&, float, int, bool)
ImplFontSelectData::ImplFontSelectData(ImplFontData const&, Size const&, float, int, bool)
ImplImageList::GetImageCount() const
ImplImageList::GetImageCount() const
...
...
vcl/inc/vcl/dockwin.hxx
Dosyayı görüntüle @
fd3ec89f
...
@@ -166,23 +166,10 @@ public:
...
@@ -166,23 +166,10 @@ public:
long
Notify
(
NotifyEvent
&
rNEvt
);
long
Notify
(
NotifyEvent
&
rNEvt
);
void
ShowTitleButton
(
sal_uInt16
nButton
,
sal_Bool
bVisible
=
sal_True
);
void
ShowTitleButton
(
sal_uInt16
nButton
,
sal_Bool
bVisible
=
sal_True
);
sal_Bool
IsTitleButtonVisible
(
sal_uInt16
nButton
)
const
;
void
SetPin
(
sal_Bool
bPin
);
sal_Bool
IsPined
()
const
;
void
RollUp
();
void
RollDown
();
sal_Bool
IsRollUp
()
const
;
void
SetRollUpOutputSizePixel
(
const
Size
&
rSize
);
Size
GetRollUpOutputSizePixel
()
const
;
void
SetMinOutputSizePixel
(
const
Size
&
rSize
);
void
SetMinOutputSizePixel
(
const
Size
&
rSize
);
const
Size
&
GetMinOutputSizePixel
()
const
;
void
SetMaxOutputSizePixel
(
const
Size
&
rSize
);
void
SetMaxOutputSizePixel
(
const
Size
&
rSize
);
const
Size
&
GetMaxOutputSizePixel
()
const
;
sal_Bool
IsDocking
()
const
{
return
mbDocking
;
}
sal_Bool
IsDocking
()
const
{
return
mbDocking
;
}
sal_Bool
IsDockable
()
const
{
return
mbDockable
;
}
sal_Bool
IsDockable
()
const
{
return
mbDockable
;
}
...
@@ -193,9 +180,6 @@ public:
...
@@ -193,9 +180,6 @@ public:
sal_Bool
IsFloatingMode
()
const
;
sal_Bool
IsFloatingMode
()
const
;
FloatingWindow
*
GetFloatingWindow
()
const
{
return
mpFloatWin
;
}
FloatingWindow
*
GetFloatingWindow
()
const
{
return
mpFloatWin
;
}
void
SetFloatingPos
(
const
Point
&
rNewPos
);
Point
GetFloatingPos
()
const
;
void
SetFloatStyle
(
WinBits
nWinStyle
);
void
SetFloatStyle
(
WinBits
nWinStyle
);
WinBits
GetFloatStyle
()
const
;
WinBits
GetFloatStyle
()
const
;
...
@@ -207,8 +191,6 @@ public:
...
@@ -207,8 +191,6 @@ public:
{
mpDockingWindow
->
SetPosSizePixel
(
rNewPos
,
rNewSize
);
}
{
mpDockingWindow
->
SetPosSizePixel
(
rNewPos
,
rNewSize
);
}
Point
GetPosPixel
()
const
;
Point
GetPosPixel
()
const
;
Size
GetSizePixel
()
const
;
Size
GetSizePixel
()
const
;
void
SetOutputSizePixel
(
const
Size
&
rNewSize
);
Size
GetOutputSizePixel
()
const
;
};
};
class
VCL_DLLPUBLIC
DockingManager
class
VCL_DLLPUBLIC
DockingManager
...
...
vcl/source/window/dockmgr.cxx
Dosyayı görüntüle @
fd3ec89f
...
@@ -1026,14 +1026,8 @@ void ImplDockingWindowWrapper::Tracking( const TrackingEvent& rTEvt )
...
@@ -1026,14 +1026,8 @@ void ImplDockingWindowWrapper::Tracking( const TrackingEvent& rTEvt )
nTrackStyle
=
SHOWTRACK_BIG
;
nTrackStyle
=
SHOWTRACK_BIG
;
Rectangle
aShowTrackRect
=
aTrackRect
;
Rectangle
aShowTrackRect
=
aTrackRect
;
aShowTrackRect
.
SetPos
(
GetWindow
()
->
ImplFrameToOutput
(
aShowTrackRect
.
TopLeft
()
)
);
aShowTrackRect
.
SetPos
(
GetWindow
()
->
ImplFrameToOutput
(
aShowTrackRect
.
TopLeft
()
)
);
//if( bFloatMode )
GetWindow
()
->
ShowTracking
(
aShowTrackRect
,
nTrackStyle
);
GetWindow
()
->
ShowTracking
(
aShowTrackRect
,
nTrackStyle
);
/*else
{
GetWindow()->HideTracking();
Point aPt( GetWindow()->GetParent()->ScreenToOutputPixel( aTrackRect.TopLeft() ) );
GetWindow()->SetPosPixel( aPt );
}*/
// Maus-Offset neu berechnen, da Rechteck veraendert werden
// Maus-Offset neu berechnen, da Rechteck veraendert werden
// konnte
// konnte
...
@@ -1125,19 +1119,6 @@ sal_Bool ImplDockingWindowWrapper::PrepareToggleFloatingMode()
...
@@ -1125,19 +1119,6 @@ sal_Bool ImplDockingWindowWrapper::PrepareToggleFloatingMode()
sal_Bool
ImplDockingWindowWrapper
::
Close
()
sal_Bool
ImplDockingWindowWrapper
::
Close
()
{
{
// TODO: send event
// TODO: send event
/*
ImplDelData aDelData;
ImplAddDel( &aDelData );
GetWindow()->ImplCallEventListeners( VCLEVENT_WINDOW_CLOSE );
if ( aDelData.IsDelete() )
return sal_False;
ImplRemoveDel( &aDelData );
if ( mpWindowImpl->mxWindowPeer.is() && IsCreatedWithToolkit() )
return sal_False;
GetWindow()->Show( sal_False, SHOW_NOFOCUSCHANGE );
*/
return
sal_True
;
return
sal_True
;
}
}
...
@@ -1224,21 +1205,6 @@ void ImplDockingWindowWrapper::ShowTitleButton( sal_uInt16 nButton, sal_Bool bVi
...
@@ -1224,21 +1205,6 @@ void ImplDockingWindowWrapper::ShowTitleButton( sal_uInt16 nButton, sal_Bool bVi
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
sal_Bool
ImplDockingWindowWrapper
::
IsTitleButtonVisible
(
sal_uInt16
nButton
)
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
IsTitleButtonVisible
(
nButton
);
else
{
if
(
nButton
==
TITLE_BUTTON_DOCKING
)
return
mbDockBtn
;
else
// if ( nButton == TITLE_BUTTON_HIDE )
return
mbHideBtn
;
}
}
// -----------------------------------------------------------------------
void
ImplDockingWindowWrapper
::
StartPopupMode
(
ToolBox
*
pParentToolBox
,
sal_uLong
nFlags
)
void
ImplDockingWindowWrapper
::
StartPopupMode
(
ToolBox
*
pParentToolBox
,
sal_uLong
nFlags
)
{
{
// do nothing if window is floating
// do nothing if window is floating
...
@@ -1377,17 +1343,6 @@ void ImplDockingWindowWrapper::SetFloatingMode( sal_Bool bFloatMode )
...
@@ -1377,17 +1343,6 @@ void ImplDockingWindowWrapper::SetFloatingMode( sal_Bool bFloatMode )
:
mnFloatBits
,
:
mnFloatBits
,
this
);
this
);
// reduce the border width for seamless NWF painting
// (especially for the toolbar gradient on Windows XP)
/*AllSettings aSettings( pWin->GetSettings() );
StyleSettings aStyleSettings( aSettings.GetStyleSettings() );
aStyleSettings.SetBorderSize( 0 );
aSettings.SetStyleSettings( aStyleSettings );
pWin->SetSettings( aSettings );*/
// mpFloatWin = pWin;
GetWindow
()
->
mpWindowImpl
->
mpBorderWindow
=
NULL
;
GetWindow
()
->
mpWindowImpl
->
mpBorderWindow
=
NULL
;
GetWindow
()
->
mpWindowImpl
->
mnLeftBorder
=
0
;
GetWindow
()
->
mpWindowImpl
->
mnLeftBorder
=
0
;
GetWindow
()
->
mpWindowImpl
->
mnTopBorder
=
0
;
GetWindow
()
->
mpWindowImpl
->
mnTopBorder
=
0
;
...
@@ -1515,95 +1470,10 @@ Size ImplDockingWindowWrapper::GetSizePixel() const
...
@@ -1515,95 +1470,10 @@ Size ImplDockingWindowWrapper::GetSizePixel() const
return
mpDockingWindow
->
GetSizePixel
();
return
mpDockingWindow
->
GetSizePixel
();
}
}
// -----------------------------------------------------------------------
void
ImplDockingWindowWrapper
::
SetOutputSizePixel
(
const
Size
&
rNewSize
)
{
if
(
mpFloatWin
)
mpFloatWin
->
SetOutputSizePixel
(
rNewSize
);
else
GetWindow
()
->
SetOutputSizePixel
(
rNewSize
);
}
// -----------------------------------------------------------------------
Size
ImplDockingWindowWrapper
::
GetOutputSizePixel
()
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
GetOutputSizePixel
();
else
return
mpDockingWindow
->
GetOutputSizePixel
();
}
Point
ImplDockingWindowWrapper
::
GetFloatingPos
()
const
{
if
(
mpFloatWin
)
{
//Rectangle aRect = mpFloatWin->GetWindow( WINDOW_CLIENT)->GetWindowExtentsRelative( mpFloatWin->GetParent() );
WindowStateData
aData
;
aData
.
SetMask
(
WINDOWSTATE_MASK_POS
);
mpFloatWin
->
GetWindowStateData
(
aData
);
Point
aPos
(
aData
.
GetX
(),
aData
.
GetY
()
);
aPos
=
mpFloatWin
->
GetParent
()
->
ImplGetFrameWindow
()
->
AbsoluteScreenToOutputPixel
(
aPos
);
return
aPos
;
}
else
return
maFloatPos
;
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// old inlines from DockingWindow
// old inlines from DockingWindow
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
ImplDockingWindowWrapper
::
SetPin
(
sal_Bool
bPin
)
{
if
(
mpFloatWin
)
mpFloatWin
->
SetPin
(
bPin
);
mbPined
=
bPin
;
}
sal_Bool
ImplDockingWindowWrapper
::
IsPined
()
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
IsPined
();
return
mbPined
;
}
void
ImplDockingWindowWrapper
::
RollUp
()
{
if
(
mpFloatWin
)
mpFloatWin
->
RollUp
();
mbRollUp
=
sal_True
;
}
void
ImplDockingWindowWrapper
::
RollDown
()
{
if
(
mpFloatWin
)
mpFloatWin
->
RollDown
();
mbRollUp
=
sal_False
;
}
sal_Bool
ImplDockingWindowWrapper
::
IsRollUp
()
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
IsRollUp
();
return
mbRollUp
;
}
void
ImplDockingWindowWrapper
::
SetRollUpOutputSizePixel
(
const
Size
&
rSize
)
{
if
(
mpFloatWin
)
mpFloatWin
->
SetRollUpOutputSizePixel
(
rSize
);
maRollUpOutSize
=
rSize
;
}
Size
ImplDockingWindowWrapper
::
GetRollUpOutputSizePixel
()
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
GetRollUpOutputSizePixel
();
return
maRollUpOutSize
;
}
void
ImplDockingWindowWrapper
::
SetMinOutputSizePixel
(
const
Size
&
rSize
)
void
ImplDockingWindowWrapper
::
SetMinOutputSizePixel
(
const
Size
&
rSize
)
{
{
if
(
mpFloatWin
)
if
(
mpFloatWin
)
...
@@ -1618,28 +1488,6 @@ void ImplDockingWindowWrapper::SetMaxOutputSizePixel( const Size& rSize )
...
@@ -1618,28 +1488,6 @@ void ImplDockingWindowWrapper::SetMaxOutputSizePixel( const Size& rSize )
maMaxOutSize
=
rSize
;
maMaxOutSize
=
rSize
;
}
}
const
Size
&
ImplDockingWindowWrapper
::
GetMinOutputSizePixel
()
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
GetMinOutputSizePixel
();
return
maMinOutSize
;
}
const
Size
&
ImplDockingWindowWrapper
::
GetMaxOutputSizePixel
()
const
{
if
(
mpFloatWin
)
return
mpFloatWin
->
GetMaxOutputSizePixel
();
return
maMaxOutSize
;
}
void
ImplDockingWindowWrapper
::
SetFloatingPos
(
const
Point
&
rNewPos
)
{
if
(
mpFloatWin
)
mpFloatWin
->
SetPosPixel
(
rNewPos
);
else
maFloatPos
=
rNewPos
;
}
sal_Bool
ImplDockingWindowWrapper
::
IsFloatingMode
()
const
sal_Bool
ImplDockingWindowWrapper
::
IsFloatingMode
()
const
{
{
return
(
mpFloatWin
!=
NULL
);
return
(
mpFloatWin
!=
NULL
);
...
...
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