Kaydet (Commit) d49d0139 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: update unused code

Change-Id: I2ddda0600ee876e9886ee3221f0ac5ad515fbd22
üst e03223d4
...@@ -27,14 +27,8 @@ class SVL_DLLPUBLIC GridPrinter ...@@ -27,14 +27,8 @@ class SVL_DLLPUBLIC GridPrinter
public: public:
GridPrinter( size_t nRows, size_t nCols, bool bPrint = true ); GridPrinter( size_t nRows, size_t nCols, bool bPrint = true );
~GridPrinter(); ~GridPrinter();
void set( size_t nRow, size_t nCol, const OUString& rStr ); void set( size_t nRow, size_t nCol, const OUString& rStr );
void print( const char* pHeader ) const; void print( const char* pHeader ) const;
void clear();
void resize( size_t nRows, size_t nCols );
}; };
} }
......
...@@ -126,16 +126,6 @@ void GridPrinter::print( const char* pHeader ) const ...@@ -126,16 +126,6 @@ void GridPrinter::print( const char* pHeader ) const
} }
} }
void GridPrinter::clear()
{
mpImpl->maMatrix.clear();
}
void GridPrinter::resize( size_t nRows, size_t nCols )
{
mpImpl->maMatrix.resize(nRows, nCols);
}
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -117,17 +117,8 @@ namespace svt ...@@ -117,17 +117,8 @@ namespace svt
return nMinLength; return nMinLength;
} }
//= RoadmapWizard //= RoadmapWizard
#ifdef DBG_UTIL #ifdef DBG_UTIL
const char* CheckInvariants( const void* pVoid )
{
return static_cast< const RoadmapWizard* >( pVoid )->checkInvariants();
}
const sal_Char* RoadmapWizard::checkInvariants() const const sal_Char* RoadmapWizard::checkInvariants() const
{ {
// all paths have to start with the same state // all paths have to start with the same state
......
...@@ -123,26 +123,10 @@ namespace svt { namespace table ...@@ -123,26 +123,10 @@ namespace svt { namespace table
} }
}; };
//= UnoControlTableModel //= UnoControlTableModel
#ifdef DBG_UTIL
const char* UnoControlTableModel::checkInvariants() const
{
Reference< XGridDataModel > const xDataModel( m_pImpl->m_aDataModel );
if ( !xDataModel.is() )
return "data model anymore";
// TODO: more?
return NULL;
}
#endif
#define DBG_CHECK_ME() \ #define DBG_CHECK_ME() \
DBG_TESTSOLARMUTEX(); \ DBG_TESTSOLARMUTEX(); \
UnoControlTableModel::UnoControlTableModel() UnoControlTableModel::UnoControlTableModel()
:m_pImpl( new UnoControlTableModel_Impl ) :m_pImpl( new UnoControlTableModel_Impl )
{ {
......
...@@ -152,10 +152,6 @@ namespace svt { namespace table ...@@ -152,10 +152,6 @@ namespace svt { namespace table
*/ */
void notifyAllDataChanged() const; void notifyAllDataChanged() const;
#ifdef DBG_UTIL
const char* checkInvariants() const;
#endif
private: private:
void impl_notifyTableMetricsChanged() const; void impl_notifyTableMetricsChanged() const;
}; };
......
...@@ -171,7 +171,6 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\ ...@@ -171,7 +171,6 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/queryshowchangesdialog \ sw/uiconfig/swriter/ui/queryshowchangesdialog \
sw/uiconfig/swriter/ui/mailmerge \ sw/uiconfig/swriter/ui/mailmerge \
sw/uiconfig/swriter/ui/mmaddressblockpage \ sw/uiconfig/swriter/ui/mmaddressblockpage \
sw/uiconfig/swriter/ui/mmcreatingdialog \
sw/uiconfig/swriter/ui/mmlayoutpage \ sw/uiconfig/swriter/ui/mmlayoutpage \
sw/uiconfig/swriter/ui/mmmailbody \ sw/uiconfig/swriter/ui/mmmailbody \
sw/uiconfig/swriter/ui/mmmergepage \ sw/uiconfig/swriter/ui/mmmergepage \
......
...@@ -186,10 +186,6 @@ public: ...@@ -186,10 +186,6 @@ public:
/// Count words in current selection. /// Count words in current selection.
void CountWords( SwDocStat& rStat ) const; void CountWords( SwDocStat& rStat ) const;
/** Delete non-visible content in the document.
E.g. hidden ranges, hidden paragraphs. */
bool RemoveInvisibleContent();
/// Replace fields by text - mailmerge support. /// Replace fields by text - mailmerge support.
bool ConvertFieldsToText(); bool ConvertFieldsToText();
......
...@@ -748,14 +748,6 @@ SvNumberFormatter* SwEditShell::GetNumberFormatter() ...@@ -748,14 +748,6 @@ SvNumberFormatter* SwEditShell::GetNumberFormatter()
return GetDoc()->GetNumberFormatter(); return GetDoc()->GetNumberFormatter();
} }
bool SwEditShell::RemoveInvisibleContent()
{
StartAllAction();
bool bRet = GetDoc()->RemoveInvisibleContent();
EndAllAction();
return bRet;
}
bool SwEditShell::ConvertFieldsToText() bool SwEditShell::ConvertFieldsToText()
{ {
StartAllAction(); StartAllAction();
......
...@@ -270,11 +270,6 @@ bool DocxSdrExport::IsDrawingOpen() ...@@ -270,11 +270,6 @@ bool DocxSdrExport::IsDrawingOpen()
return m_pImpl->m_bDrawingOpen; return m_pImpl->m_bDrawingOpen;
} }
bool DocxSdrExport::isParagraphSdtOpen()
{
return m_pImpl->m_bParagraphSdtOpen;
}
void DocxSdrExport::setParagraphSdtOpen(bool bParagraphSdtOpen) void DocxSdrExport::setParagraphSdtOpen(bool bParagraphSdtOpen)
{ {
m_pImpl->m_bParagraphSdtOpen = bParagraphSdtOpen; m_pImpl->m_bParagraphSdtOpen = bParagraphSdtOpen;
......
...@@ -64,8 +64,6 @@ public: ...@@ -64,8 +64,6 @@ public:
/// Same, as DocxAttributeOutput::m_bBtLr, but for textframe rotation. /// Same, as DocxAttributeOutput::m_bBtLr, but for textframe rotation.
bool getFrameBtLr(); bool getFrameBtLr();
/// Is paragraph sdt open in the current drawing?
bool isParagraphSdtOpen();
/// Set if paragraph sdt open in the current drawing. /// Set if paragraph sdt open in the current drawing.
void setParagraphSdtOpen(bool bParagraphSdtOpen); void setParagraphSdtOpen(bool bParagraphSdtOpen);
......
...@@ -42,41 +42,6 @@ PrintMonitor::PrintMonitor(Window *pParent, PrintMonitorType eType ) ...@@ -42,41 +42,6 @@ PrintMonitor::PrintMonitor(Window *pParent, PrintMonitorType eType )
m_pPrinting->Show(); m_pPrinting->Show();
} }
// Progress Indicator for Creation of personalized Mail Merge documents:
CreateMonitor::CreateMonitor( Window *pParent )
: CancelableModelessDialog(pParent, "MMCreatingDialog",
"modules/swriter/ui/mmcreatingdialog.ui")
, m_sCountingPattern()
, m_sVariable_Total("%Y")
, m_sVariable_Position("%X")
, m_nTotalCount(0)
, m_nCurrentPosition(0)
{
get(m_pCounting, "progress");
m_sCountingPattern = m_pCounting->GetText();
m_pCounting->SetText("...");
}
void CreateMonitor::UpdateCountingText()
{
OUString sText(m_sCountingPattern);
sText = sText.replaceAll( m_sVariable_Total, OUString::number( m_nTotalCount ) );
sText = sText.replaceAll( m_sVariable_Position, OUString::number( m_nCurrentPosition ) );
m_pCounting->SetText(sText);
}
void CreateMonitor::SetTotalCount( sal_Int32 nTotal )
{
m_nTotalCount = nTotal;
UpdateCountingText();
}
void CreateMonitor::SetCurrentPosition( sal_Int32 nCurrent )
{
m_nCurrentPosition = nCurrent;
UpdateCountingText();
}
CancelableModelessDialog::CancelableModelessDialog( Window *pParent, CancelableModelessDialog::CancelableModelessDialog( Window *pParent,
const OString& rID, const OUString& rUIXMLDescription ) const OString& rID, const OUString& rUIXMLDescription )
: ModelessDialog( pParent , rID, rUIXMLDescription ) : ModelessDialog( pParent , rID, rUIXMLDescription )
......
...@@ -1075,24 +1075,6 @@ void SwMailMergeConfigItem::ExcludeRecord(sal_Int32 nRecord, bool bExclude) ...@@ -1075,24 +1075,6 @@ void SwMailMergeConfigItem::ExcludeRecord(sal_Int32 nRecord, bool bExclude)
} }
} }
Sequence< Any > SwMailMergeConfigItem::GetSelection() const
{
Sequence< Any > aRet(m_aSelection.getLength());
sal_Int32 nRetIndex = 0;
sal_Int32 nRet;
for(sal_Int32 nIndex = 0; nIndex < m_aSelection.getLength(); ++nIndex)
{
m_aSelection[nIndex] >>= nRet;
if(nRet > 0)
{
aRet[nRetIndex] <<= nRet;
++nRetIndex;
}
}
aRet.realloc(nRetIndex);
return aRet;
}
const uno::Sequence< OUString>& const uno::Sequence< OUString>&
SwMailMergeConfigItem::GetSavedDocuments() const SwMailMergeConfigItem::GetSavedDocuments() const
{ {
......
...@@ -53,27 +53,6 @@ public: ...@@ -53,27 +53,6 @@ public:
PrintMonitor( Window *pParent, PrintMonitorType eType ); PrintMonitor( Window *pParent, PrintMonitorType eType );
}; };
class CreateMonitor : public CancelableModelessDialog
{
public:
CreateMonitor( Window *pParent );
void SetTotalCount( sal_Int32 nTotal );
void SetCurrentPosition( sal_Int32 nCurrent );
private:
void UpdateCountingText();
private:
FixedText* m_pCounting;
OUString m_sCountingPattern;
OUString m_sVariable_Total;
OUString m_sVariable_Position;
sal_Int32 m_nTotalCount;
sal_Int32 m_nCurrentPosition;
};
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -102,8 +102,6 @@ public: ...@@ -102,8 +102,6 @@ public:
OUString& GetFilter() const; OUString& GetFilter() const;
void SetFilter(OUString&); void SetFilter(OUString&);
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any>
GetSelection()const;
void SetSelection(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection); void SetSelection(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection);
void SetCurrentDBData( const SwDBData& rDBData); void SetCurrentDBData( const SwDBData& rDBData);
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkDialog" id="MMCreatingDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">Mail Merge</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Status:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Progress:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Creating documents...</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="progress">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">%X of %Y</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">cancel</action-widget>
</action-widgets>
</object>
</interface>
BigInt::BigInt(unsigned int) BigInt::BigInt(unsigned int)
CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&) CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&)
DocxSdrExport::isParagraphSdtOpen()
GDriveDocument::GDriveDocument(GDriveSession*) GDriveDocument::GDriveDocument(GDriveSession*)
GDriveFolder::GDriveFolder(GDriveSession*) GDriveFolder::GDriveFolder(GDriveSession*)
GDriveProperty::GDriveProperty() GDriveProperty::GDriveProperty()
...@@ -212,8 +211,4 @@ std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThr ...@@ -212,8 +211,4 @@ std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThr
std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr<formula::FormulaTokenArray>&) std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr<formula::FormulaTokenArray>&)
std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr_ref<formula::FormulaTokenArray>) std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr_ref<formula::FormulaTokenArray>)
svgio::svgreader::SvgDocument::removeSvgStyleAttributesFromMapper(rtl::OUString const&) svgio::svgreader::SvgDocument::removeSvgStyleAttributesFromMapper(rtl::OUString const&)
svl::GridPrinter::clear()
svl::GridPrinter::resize(unsigned long, unsigned long)
svt::CheckInvariants(void const*)
svt::table::UnoControlTableModel::checkInvariants() const
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool) vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)
...@@ -66,11 +66,6 @@ WrapPolygon::Points_t::iterator WrapPolygon::end() ...@@ -66,11 +66,6 @@ WrapPolygon::Points_t::iterator WrapPolygon::end()
return mPoints.end(); return mPoints.end();
} }
size_t WrapPolygon::size() const
{
return mPoints.size();
}
WrapPolygon::Pointer_t WrapPolygon::move(const awt::Point & rPoint) WrapPolygon::Pointer_t WrapPolygon::move(const awt::Point & rPoint)
{ {
WrapPolygon::Pointer_t pResult(new WrapPolygon); WrapPolygon::Pointer_t pResult(new WrapPolygon);
......
...@@ -49,8 +49,6 @@ public: ...@@ -49,8 +49,6 @@ public:
Points_t::iterator begin(); Points_t::iterator begin();
Points_t::iterator end(); Points_t::iterator end();
size_t size() const;
WrapPolygon::Pointer_t move(const css::awt::Point & rMove); WrapPolygon::Pointer_t move(const css::awt::Point & rMove);
WrapPolygon::Pointer_t scale(const Fraction & rFractionX, const Fraction & rFractionY); WrapPolygon::Pointer_t scale(const Fraction & rFractionX, const Fraction & rFractionY);
WrapPolygon::Pointer_t correctWordWrapPolygon(const css::awt::Size & rSrcSize); WrapPolygon::Pointer_t correctWordWrapPolygon(const css::awt::Size & rSrcSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment