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
463cbf54
Kaydet (Commit)
463cbf54
authored
Agu 21, 2013
tarafından
Katarina Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed dead (mostly widget-placing) code
Change-Id: I26f0d7797325d8b907a92dd0b7c46cb8c5c6ac30
üst
16428c96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
198 deletions
+0
-198
SlideTransitionPane.cxx
sd/source/ui/animations/SlideTransitionPane.cxx
+0
-197
SlideTransitionPane.hxx
sd/source/ui/animations/SlideTransitionPane.hxx
+0
-1
No files found.
sd/source/ui/animations/SlideTransitionPane.cxx
Dosyayı görüntüle @
463cbf54
...
@@ -476,7 +476,6 @@ SlideTransitionPane::SlideTransitionPane(
...
@@ -476,7 +476,6 @@ SlideTransitionPane::SlideTransitionPane(
mpCB_AUTO_PREVIEW
->
Check
();
// automatic preview on
mpCB_AUTO_PREVIEW
->
Check
();
// automatic preview on
// update control states before adding handlers
// update control states before adding handlers
//updateLayout();
updateControls
();
updateControls
();
// set handlers
// set handlers
...
@@ -509,13 +508,6 @@ SlideTransitionPane::~SlideTransitionPane()
...
@@ -509,13 +508,6 @@ SlideTransitionPane::~SlideTransitionPane()
removeListener
();
removeListener
();
}
}
void
SlideTransitionPane
::
Resize
()
{
//updateLayout();
}
void
SlideTransitionPane
::
DataChanged
(
const
DataChangedEvent
&
rEvent
)
void
SlideTransitionPane
::
DataChanged
(
const
DataChangedEvent
&
rEvent
)
{
{
...
@@ -570,195 +562,6 @@ void SlideTransitionPane::onChangeCurrentPage()
...
@@ -570,195 +562,6 @@ void SlideTransitionPane::onChangeCurrentPage()
return
pSelection
;
return
pSelection
;
}
}
/*void SlideTransitionPane::updateLayout()
{
::Size aPaneSize( GetSizePixel() );
if( aPaneSize.Width() < maMinSize.Width() )
aPaneSize.Width() = maMinSize.Width();
if( aPaneSize.Height() < maMinSize.Height() )
aPaneSize.Height() = maMinSize.Height();
// start layouting elements from bottom to top. The remaining space is used
// for the topmost list box
::Point aOffset( LogicToPixel( Point( 3, 3 ), MAP_APPFONT ) );
long nOffsetX = aOffset.getX();
long nOffsetY = aOffset.getY();
long nOffsetBtnX = LogicToPixel( Point( 6, 1 ), MAP_APPFONT ).getX();
const long nMinCtrlWidth = LogicToPixel( ::Point( 32, 1 ), MAP_APPFONT ).getX();
const long nTextIndent = LogicToPixel( ::Point( RSC_SP_CHK_TEXTINDENT, 1 ), MAP_APPFONT ).getX();
::Point aUpperLeft( nOffsetX, aPaneSize.getHeight() - nOffsetY );
long nMaxWidth = aPaneSize.getWidth() - 2 * nOffsetX;
// auto preview check-box
::Size aCtrlSize = mpCB_AUTO_PREVIEW.GetSizePixel();
aCtrlSize.setWidth( mpCB_AUTO_PREVIEW.CalcMinimumSize( nMaxWidth ).getWidth());
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
mpCB_AUTO_PREVIEW.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line above check-box
aCtrlSize = maFL_EMPTY2.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
maFL_EMPTY2.SetPosSizePixel( aUpperLeft, aCtrlSize );
// buttons "Play" and "Slide Show"
long nPlayButtonWidth = mpPB_PLAY.CalcMinimumSize().getWidth() + 2 * nOffsetBtnX;
long nSlideShowButtonWidth = mpPB_SLIDE_SHOW.CalcMinimumSize().getWidth() + 2 * nOffsetBtnX;
if( (nPlayButtonWidth + nSlideShowButtonWidth + nOffsetX) <= nMaxWidth )
{
// place buttons side by side
aCtrlSize = mpPB_PLAY.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nPlayButtonWidth );
mpPB_PLAY.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( aUpperLeft.getX() + nPlayButtonWidth + nOffsetX );
aCtrlSize.setWidth( nSlideShowButtonWidth );
mpPB_SLIDE_SHOW.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nOffsetX );
}
else
{
// place buttons on top of each other
aCtrlSize = mpPB_SLIDE_SHOW.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nSlideShowButtonWidth );
mpPB_SLIDE_SHOW.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = mpPB_PLAY.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
aCtrlSize.setWidth( nPlayButtonWidth );
mpPB_PLAY.SetPosSizePixel( aUpperLeft, aCtrlSize );
}
// "Apply to All Slides" button
aCtrlSize = mpPB_APPLY_TO_ALL.GetSizePixel();
aCtrlSize.setWidth( mpPB_APPLY_TO_ALL.CalcMinimumSize( nMaxWidth ).getWidth() + 2 * nOffsetBtnX );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
mpPB_APPLY_TO_ALL.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line above "Apply to All Slides" button
aCtrlSize = maFL_EMPTY1.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
maFL_EMPTY1.SetPosSizePixel( aUpperLeft, aCtrlSize );
// advance automatically after ... seconds
long nItemWidth = mpRB_ADVANCE_AUTO.CalcMinimumSize().getWidth();
if( (nItemWidth + nMinCtrlWidth + nOffsetX) <= nMaxWidth )
{
long nBase = aUpperLeft.getY();
// place controls side by side
aCtrlSize = mpRB_ADVANCE_AUTO.GetSizePixel();
aUpperLeft.setY( nBase - aCtrlSize.getHeight());
aCtrlSize.setWidth( nItemWidth );
mpRB_ADVANCE_AUTO.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = mpMF_ADVANCE_AUTO_AFTER.GetSizePixel();
aUpperLeft.setY( nBase - aCtrlSize.getHeight() );
aUpperLeft.setX( aUpperLeft.getX() + nItemWidth + nOffsetX );
aCtrlSize.setWidth( nMinCtrlWidth );
mpMF_ADVANCE_AUTO_AFTER.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nOffsetX );
}
else
{
// place controls on top of each other
aCtrlSize = mpMF_ADVANCE_AUTO_AFTER.GetSizePixel();
aUpperLeft.setX( nOffsetX + nTextIndent );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nMinCtrlWidth );
mpMF_ADVANCE_AUTO_AFTER.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = mpRB_ADVANCE_AUTO.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
aUpperLeft.setX( nOffsetX );
aCtrlSize.setWidth( nItemWidth );
mpRB_ADVANCE_AUTO.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nOffsetX );
}
// check box "On mouse click"
aCtrlSize = mpRB_ADVANCE_ON_MOUSE.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
mpRB_ADVANCE_ON_MOUSE.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line "Advance slide"
aCtrlSize = maFL_ADVANCE_SLIDE.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maFL_ADVANCE_SLIDE.SetPosSizePixel( aUpperLeft, aCtrlSize );
// check box "Loop until next sound"
long nFTSpeedWidth = mpFT_SPEED->CalcMinimumSize().getWidth() + 2 * nOffsetX;
long nFTSoundWidth = mpFT_SOUND.CalcMinimumSize().getWidth() + 2 * nOffsetX;
long nIndent = ::std::max( nFTSoundWidth, nFTSpeedWidth );
bool bStack = ( (nIndent + nMinCtrlWidth + nOffsetX) > nMaxWidth );
if( bStack )
nIndent = nTextIndent;
aCtrlSize = mpCB_LOOP_SOUND.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth - nIndent );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
aUpperLeft.setX( nIndent );
mpCB_LOOP_SOUND.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = mpLB_SOUND.GetSizePixel();
aCtrlSize.setWidth( ::std::max( nMaxWidth - nIndent, nMinCtrlWidth ) );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
mpLB_SOUND.SetPosSizePixel( aUpperLeft, aCtrlSize );
mpLB_SOUND.SetDropDownLineCount( 8 );
aUpperLeft.setX( nOffsetX );
aCtrlSize = mpFT_SOUND.GetSizePixel();
if( bStack )
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nFTSoundWidth - 2 * nOffsetX );
mpFT_SOUND.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nIndent );
aCtrlSize = mpLB_SPEED.GetSizePixel();
aCtrlSize.setWidth( ::std::max( nMaxWidth - nIndent, nMinCtrlWidth ) );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
mpLB_SPEED.SetPosSizePixel( aUpperLeft, aCtrlSize );
mpLB_SPEED.SetDropDownLineCount( 3 );
aUpperLeft.setX( nOffsetX );
aCtrlSize = mpFT_SPEED.GetSizePixel();
if( bStack )
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nFTSpeedWidth - 2 * nOffsetX );
mpFT_SPEED.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line "Modify Transition"
aCtrlSize = maFL_MODIFY_TRANSITION.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maFL_MODIFY_TRANSITION.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line "Apply to selected slides"
aCtrlSize = maFL_APPLY_TRANSITION.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
::Point aUpperLeftCorner( nOffsetX, nOffsetY );
maFL_APPLY_TRANSITION.SetPosSizePixel( aUpperLeftCorner, aCtrlSize );
aUpperLeftCorner.setY( aUpperLeftCorner.getY() + aCtrlSize.getHeight() + nOffsetY );
aUpperLeft.setY( aUpperLeft.getY() - nOffsetY );
// list box slide transitions
aCtrlSize.setWidth( nMaxWidth );
aCtrlSize.setHeight( aUpperLeft.getY() - aUpperLeftCorner.getY() );
mpLB_SLIDE_TRANSITIONS->SetPosSizePixel( aUpperLeftCorner, aCtrlSize );
}*/
void
SlideTransitionPane
::
updateControls
()
void
SlideTransitionPane
::
updateControls
()
{
{
::
sd
::
slidesorter
::
SharedPageSelection
pSelectedPages
(
getSelectedPages
());
::
sd
::
slidesorter
::
SharedPageSelection
pSelectedPages
(
getSelectedPages
());
...
...
sd/source/ui/animations/SlideTransitionPane.hxx
Dosyayı görüntüle @
463cbf54
...
@@ -60,7 +60,6 @@ public:
...
@@ -60,7 +60,6 @@ public:
virtual
~
SlideTransitionPane
();
virtual
~
SlideTransitionPane
();
// Window
// Window
virtual
void
Resize
();
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEvent
);
virtual
void
DataChanged
(
const
DataChangedEvent
&
rEvent
);
void
onSelectionChanged
();
void
onSelectionChanged
();
...
...
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