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
fd189805
Kaydet (Commit)
fd189805
authored
Ock 05, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removed dead code
üst
54939518
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
157 deletions
+0
-157
tablelayouter.cxx
svx/source/table/tablelayouter.cxx
+0
-100
tablelayouter.hxx
svx/source/table/tablelayouter.hxx
+0
-11
unopage.cxx
svx/source/unodraw/unopage.cxx
+0
-46
No files found.
svx/source/table/tablelayouter.cxx
Dosyayı görüntüle @
fd189805
...
@@ -1075,40 +1075,6 @@ void TableLayouter::UpdateBorderLayout()
...
@@ -1075,40 +1075,6 @@ void TableLayouter::UpdateBorderLayout()
}
}
}
}
// -----------------------------------------------------------------------------
/*
void TableLayouter::SetLayoutToModel()
{
const sal_Int32 nRowCount = getRowCount();
const sal_Int32 nColCount = getColumnCount();
try
{
sal_Int32 nOldSize = 0;
Reference< XIndexAccess > xRows( mxTable->getRows(), UNO_QUERY_THROW );
for( sal_Int32 nRow = 0; nRow < nRowCount; nRow++ )
{
Reference< XPropertySet > xRowSet( xRows->getByIndex( nRow ), UNO_QUERY_THROW );
xRowSet->getPropertyValue( msSize ) >>= nOldSize;
if( maRows[nRow].mnSize != nOldSize )
xRowSet->setPropertyValue( msSize, Any( maRows[nRow].mnSize ) );
}
for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ )
{
Reference< XPropertySet > xColSet( getColumnByIndex( nCol ), UNO_QUERY_THROW );
xColSet->getPropertyValue( msSize ) >>= nOldSize;
if( maColumns[nCol].mnSize != nOldSize )
xColSet->setPropertyValue( msSize, Any( maColumns[nCol].mnSize ) );
}
}
catch( Exception& )
{
OSL_FAIL("sdr::table::TableLayouter::SetLayoutToModel(), exception caught!");
}
}
*/
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
TableLayouter
::
DistributeColumns
(
::
Rectangle
&
rArea
,
sal_Int32
nFirstCol
,
sal_Int32
nLastCol
)
void
TableLayouter
::
DistributeColumns
(
::
Rectangle
&
rArea
,
sal_Int32
nFirstCol
,
sal_Int32
nLastCol
)
...
@@ -1228,72 +1194,6 @@ sal_Int32 TableLayouter::getRowStart( sal_Int32 nRow ) const
...
@@ -1228,72 +1194,6 @@ sal_Int32 TableLayouter::getRowStart( sal_Int32 nRow ) const
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
/*
sal_Int32 TableLayouter::detectInsertedOrRemovedRows()
{
sal_Int32 nHeightChange = 0;
try
{
Reference< XIndexAccess > xRows( mxTable->getRows(), UNO_QUERY_THROW );
std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::iterator oldIter( mxRows.begin() );
sal_Int32 nCount = xRows->getCount();
for( sal_Int32 nRow = 0; nRow < nCount; nRow++ )
{
Reference< XInterface > xRow( xRows->getByIndex(nRow), UNO_QUERY );
std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::iterator searchIter = mxRows.end();
if( oldIter != mxRows.end() )
searchIter = std::find( oldIter,mxRows.end(), xRow );
if( searchIter == mxRows.end() )
{
// new row
Reference< XPropertySet > xSet( xRow, UNO_QUERY_THROW );
sal_Int32 nSize = 0;
xSet->getPropertyValue( msSize ) >>= nSize;
nHeightChange += nSize;
}
else if( searchIter == oldIter )
{
// no change
oldIter++;
}
else
{
// rows removed
do
{
Reference< XPropertySet > xSet( (*oldIter), UNO_QUERY_THROW );
sal_Int32 nSize = 0;
xSet->getPropertyValue( msSize ) >>= nSize;
nHeightChange -= nSize;
}
while( oldIter++ != searchIter );
}
}
while( oldIter != mxRows.end() )
{
// rows removed
Reference< XPropertySet > xSet( (*oldIter++), UNO_QUERY_THROW );
sal_Int32 nSize = 0;
xSet->getPropertyValue( msSize ) >>= nSize;
nHeightChange -= nSize;
}
}
catch( Exception& e )
{
(void)e;
OSL_FAIL("svx::TableLayouter::detectInsertedOrRemovedRows(), exception caught!");
}
return nHeightChange;
}
*/
// -----------------------------------------------------------------------------
}
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/source/table/tablelayouter.hxx
Dosyayı görüntüle @
fd189805
...
@@ -67,13 +67,6 @@ public:
...
@@ -67,13 +67,6 @@ public:
TableLayouter
(
const
TableModelRef
&
xTableModel
);
TableLayouter
(
const
TableModelRef
&
xTableModel
);
virtual
~
TableLayouter
();
virtual
~
TableLayouter
();
/** this checks if new rows are inserted or old rows where removed.
This can be used to grow or shrink the table shape in this case.
@returns
the height difference
sal_Int32 detectInsertedOrRemovedRows();
*/
/** try to fit the table into the given rectangle.
/** try to fit the table into the given rectangle.
If the rectangle is to small, it will be grown to fit the table.
If the rectangle is to small, it will be grown to fit the table.
...
@@ -85,10 +78,6 @@ public:
...
@@ -85,10 +78,6 @@ public:
*/
*/
void
LayoutTable
(
::
Rectangle
&
rRectangle
,
bool
bFitWidth
,
bool
bFitHeight
);
void
LayoutTable
(
::
Rectangle
&
rRectangle
,
bool
bFitWidth
,
bool
bFitHeight
);
/** after a call to LayoutTable, this method can be used to set the new
column and row sizes back to the model. */
// void SetLayoutToModel();
void
UpdateBorderLayout
();
void
UpdateBorderLayout
();
basegfx
::
B2ITuple
getCellSize
(
const
CellPos
&
rPos
)
const
;
basegfx
::
B2ITuple
getCellSize
(
const
CellPos
&
rPos
)
const
;
...
...
svx/source/unodraw/unopage.cxx
Dosyayı görüntüle @
fd189805
...
@@ -123,35 +123,6 @@ SvxDrawPage::~SvxDrawPage() throw()
...
@@ -123,35 +123,6 @@ SvxDrawPage::~SvxDrawPage() throw()
// XInterface
// XInterface
void
SvxDrawPage
::
release
()
throw
()
void
SvxDrawPage
::
release
()
throw
()
{
{
/*
uno::Reference< uno::XInterface > x( xDelegator );
if (! x.is())
{
if (osl_decrementInterlockedCount( &m_refCount ) == 0)
{
if (! mrBHelper.bDisposed)
{
uno::Reference< uno::XInterface > xHoldAlive( (uno::XWeak*)this );
// First dispose
try
{
dispose();
}
catch(::com::sun::star::uno::Exception&)
{
// release should not throw exceptions
}
// only the alive ref holds the object
OSL_ASSERT( m_refCount == 1 );
// destroy the object if xHoldAlive decrement the refcount to 0
return;
}
}
// restore the reference count
osl_incrementInterlockedCount( &m_refCount );
}
*/
OWeakAggObject
::
release
();
OWeakAggObject
::
release
();
}
}
...
@@ -269,23 +240,6 @@ void SAL_CALL SvxDrawPage::removeEventListener( const ::com::sun::star::uno::Ref
...
@@ -269,23 +240,6 @@ void SAL_CALL SvxDrawPage::removeEventListener( const ::com::sun::star::uno::Ref
void
SvxDrawPage
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
/*rHint*/
)
void
SvxDrawPage
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
/*rHint*/
)
{
{
/*
if( mpModel )
{
const SdrHint* pSdrHint = PTR_CAST( SdrHint, &rHint );
if( pSdrHint )
{
switch( pSdrHint->GetKind() )
{
case HINT_MODELCLEARED:
dispose();
break;
default:
break;
}
}
}
*/
}
}
//----------------------------------------------------------------------
//----------------------------------------------------------------------
...
...
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