loplugin:unusedfields writerfilter,writerperfect
Change-Id: I8863fcdb0751d2f1becea5b2487d4070e4fd4195
This commit is contained in:
@@ -593,7 +593,7 @@ public:
|
|||||||
SettingsTablePtr GetSettingsTable()
|
SettingsTablePtr GetSettingsTable()
|
||||||
{
|
{
|
||||||
if( !m_pSettingsTable )
|
if( !m_pSettingsTable )
|
||||||
m_pSettingsTable.reset( new SettingsTable( m_xTextFactory ) );
|
m_pSettingsTable.reset( new SettingsTable );
|
||||||
return m_pSettingsTable;
|
return m_pSettingsTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -41,8 +41,6 @@ namespace dmapper
|
|||||||
|
|
||||||
struct SettingsTable_Impl
|
struct SettingsTable_Impl
|
||||||
{
|
{
|
||||||
const uno::Reference< lang::XMultiServiceFactory > m_xTextFactory;
|
|
||||||
|
|
||||||
OUString m_sCharacterSpacing;
|
OUString m_sCharacterSpacing;
|
||||||
OUString m_sDecimalSymbol;
|
OUString m_sDecimalSymbol;
|
||||||
OUString m_sListSeparatorForFields; //2.15.1.56 listSeparator (List Separator for Field Code Evaluation)
|
OUString m_sListSeparatorForFields; //2.15.1.56 listSeparator (List Separator for Field Code Evaluation)
|
||||||
@@ -71,9 +69,8 @@ struct SettingsTable_Impl
|
|||||||
std::vector<beans::PropertyValue> m_aCompatSettings;
|
std::vector<beans::PropertyValue> m_aCompatSettings;
|
||||||
uno::Sequence<beans::PropertyValue> m_pCurrentCompatSetting;
|
uno::Sequence<beans::PropertyValue> m_pCurrentCompatSetting;
|
||||||
|
|
||||||
SettingsTable_Impl( const uno::Reference< lang::XMultiServiceFactory > & xTextFactory ) :
|
SettingsTable_Impl() :
|
||||||
m_xTextFactory( xTextFactory )
|
m_nDefaultTabStop( 720 ) //default is 1/2 in
|
||||||
, m_nDefaultTabStop( 720 ) //default is 1/2 in
|
|
||||||
, m_nHyphenationZone(0)
|
, m_nHyphenationZone(0)
|
||||||
, m_bNoPunctuationKerning(false)
|
, m_bNoPunctuationKerning(false)
|
||||||
, m_doNotIncludeSubdocsInStats(false)
|
, m_doNotIncludeSubdocsInStats(false)
|
||||||
@@ -97,10 +94,10 @@ struct SettingsTable_Impl
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
SettingsTable::SettingsTable(const uno::Reference< lang::XMultiServiceFactory > & xTextFactory)
|
SettingsTable::SettingsTable()
|
||||||
: LoggedProperties("SettingsTable")
|
: LoggedProperties("SettingsTable")
|
||||||
, LoggedTable("SettingsTable")
|
, LoggedTable("SettingsTable")
|
||||||
, m_pImpl( new SettingsTable_Impl(xTextFactory) )
|
, m_pImpl( new SettingsTable_Impl )
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -45,7 +45,7 @@ class SettingsTable : public LoggedProperties, public LoggedTable
|
|||||||
std::unique_ptr<SettingsTable_Impl> m_pImpl;
|
std::unique_ptr<SettingsTable_Impl> m_pImpl;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SettingsTable(const css::uno::Reference<css::lang::XMultiServiceFactory>& xTextFactory);
|
SettingsTable();
|
||||||
virtual ~SettingsTable();
|
virtual ~SettingsTable();
|
||||||
|
|
||||||
//returns default TabStop in 1/100th mm
|
//returns default TabStop in 1/100th mm
|
||||||
|
@@ -285,7 +285,6 @@ struct StyleSheetTable_Impl
|
|||||||
std::vector< StyleSheetEntryPtr > m_aStyleSheetEntries;
|
std::vector< StyleSheetEntryPtr > m_aStyleSheetEntries;
|
||||||
StyleSheetEntryPtr m_pCurrentEntry;
|
StyleSheetEntryPtr m_pCurrentEntry;
|
||||||
PropertyMapPtr m_pDefaultParaProps, m_pDefaultCharProps;
|
PropertyMapPtr m_pDefaultParaProps, m_pDefaultCharProps;
|
||||||
PropertyMapPtr m_pCurrentProps;
|
|
||||||
StringPairMap_t m_aStyleNameMap;
|
StringPairMap_t m_aStyleNameMap;
|
||||||
/// Style names which should not be used without a " (user)" suffix.
|
/// Style names which should not be used without a " (user)" suffix.
|
||||||
std::set<OUString> m_aReservedStyleNames;
|
std::set<OUString> m_aReservedStyleNames;
|
||||||
|
@@ -244,11 +244,6 @@ class TableData
|
|||||||
typedef RowData::Pointer_t RowPointer_t;
|
typedef RowData::Pointer_t RowPointer_t;
|
||||||
typedef ::std::vector<RowPointer_t> Rows;
|
typedef ::std::vector<RowPointer_t> Rows;
|
||||||
|
|
||||||
/**
|
|
||||||
the table properties
|
|
||||||
*/
|
|
||||||
TablePropertyMapPtr mpTableProps;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
the data of the rows of the table
|
the data of the rows of the table
|
||||||
*/
|
*/
|
||||||
|
@@ -51,11 +51,6 @@ class TableManager
|
|||||||
{
|
{
|
||||||
class TableManagerState
|
class TableManagerState
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
properties at the current point in document
|
|
||||||
*/
|
|
||||||
TablePropertyMapPtr mpProps;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
properties of the current cell
|
properties of the current cell
|
||||||
*/
|
*/
|
||||||
|
@@ -33,10 +33,8 @@ class WriterFilterDetection : public cppu::WeakImplHelper
|
|||||||
lang::XServiceInfo
|
lang::XServiceInfo
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
uno::Reference<uno::XComponentContext> m_xContext;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit WriterFilterDetection(const uno::Reference<uno::XComponentContext>& rxContext);
|
explicit WriterFilterDetection();
|
||||||
virtual ~WriterFilterDetection();
|
virtual ~WriterFilterDetection();
|
||||||
|
|
||||||
//XExtendedFilterDetection
|
//XExtendedFilterDetection
|
||||||
@@ -50,8 +48,7 @@ public:
|
|||||||
|
|
||||||
uno::Sequence<OUString> SAL_CALL WriterFilterDetection_getSupportedServiceNames() throw (uno::RuntimeException);
|
uno::Sequence<OUString> SAL_CALL WriterFilterDetection_getSupportedServiceNames() throw (uno::RuntimeException);
|
||||||
|
|
||||||
WriterFilterDetection::WriterFilterDetection(const uno::Reference<uno::XComponentContext>& rxContext)
|
WriterFilterDetection::WriterFilterDetection()
|
||||||
: m_xContext(rxContext)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,9 +132,9 @@ uno::Sequence<OUString> WriterFilterDetection::getSupportedServiceNames() throw
|
|||||||
return WriterFilterDetection_getSupportedServiceNames();
|
return WriterFilterDetection_getSupportedServiceNames();
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* SAL_CALL com_sun_star_comp_Writer_WriterFilterDetector_get_implementation(uno::XComponentContext* pComp, uno::Sequence<css::uno::Any> const&)
|
extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* SAL_CALL com_sun_star_comp_Writer_WriterFilterDetector_get_implementation(uno::XComponentContext* /*pComp*/, uno::Sequence<css::uno::Any> const&)
|
||||||
{
|
{
|
||||||
return cppu::acquire(new WriterFilterDetection(pComp));
|
return cppu::acquire(new WriterFilterDetection);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -180,7 +180,6 @@ private:
|
|||||||
css::uno::Reference< css::uno::XComponentContext > mxContext;
|
css::uno::Reference< css::uno::XComponentContext > mxContext;
|
||||||
css::uno::Reference< css::lang::XComponent > mxDoc;
|
css::uno::Reference< css::lang::XComponent > mxDoc;
|
||||||
OUString msFilterName;
|
OUString msFilterName;
|
||||||
css::uno::Reference< css::xml::sax::XDocumentHandler > mxHandler;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -101,7 +101,6 @@ private:
|
|||||||
private:
|
private:
|
||||||
const rtl::OUString m_aFactoryURL;
|
const rtl::OUString m_aFactoryURL;
|
||||||
css::uno::Reference<css::frame::XDesktop2> m_xDesktop;
|
css::uno::Reference<css::frame::XDesktop2> m_xDesktop;
|
||||||
css::uno::Reference<css::ucb::XSimpleFileAccess> m_xFileAccess;
|
|
||||||
css::uno::Reference<css::document::XFilter> m_xFilter;
|
css::uno::Reference<css::document::XFilter> m_xFilter;
|
||||||
css::uno::Reference<css::container::XNameAccess> m_xTypeMap;
|
css::uno::Reference<css::container::XNameAccess> m_xTypeMap;
|
||||||
const WpftOptionalMap_t *m_pOptionalMap;
|
const WpftOptionalMap_t *m_pOptionalMap;
|
||||||
|
@@ -280,8 +280,8 @@ throw (RuntimeException, std::exception)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
WordPerfectImportFilterDialog::WordPerfectImportFilterDialog(const Reference< XComponentContext > &rContext) :
|
WordPerfectImportFilterDialog::WordPerfectImportFilterDialog()
|
||||||
mxContext(rContext) {}
|
{}
|
||||||
|
|
||||||
WordPerfectImportFilterDialog::~WordPerfectImportFilterDialog()
|
WordPerfectImportFilterDialog::~WordPerfectImportFilterDialog()
|
||||||
{
|
{
|
||||||
@@ -385,10 +385,10 @@ throw (RuntimeException)
|
|||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XInterface > SAL_CALL WordPerfectImportFilterDialog_createInstance(const Reference< XComponentContext > &rContext)
|
Reference< XInterface > SAL_CALL WordPerfectImportFilterDialog_createInstance(const Reference< XComponentContext > &)
|
||||||
throw(Exception)
|
throw(Exception)
|
||||||
{
|
{
|
||||||
return static_cast<cppu::OWeakObject *>(new WordPerfectImportFilterDialog(rContext));
|
return static_cast<cppu::OWeakObject *>(new WordPerfectImportFilterDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -38,7 +38,6 @@ protected:
|
|||||||
css::uno::Reference< css::uno::XComponentContext > mxContext;
|
css::uno::Reference< css::uno::XComponentContext > mxContext;
|
||||||
css::uno::Reference< css::lang::XComponent > mxDoc;
|
css::uno::Reference< css::lang::XComponent > mxDoc;
|
||||||
OUString msFilterName;
|
OUString msFilterName;
|
||||||
css::uno::Reference< css::xml::sax::XDocumentHandler > mxHandler;
|
|
||||||
|
|
||||||
bool SAL_CALL importImpl(const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor)
|
bool SAL_CALL importImpl(const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor)
|
||||||
throw (css::uno::RuntimeException, std::exception);
|
throw (css::uno::RuntimeException, std::exception);
|
||||||
@@ -96,7 +95,6 @@ class WordPerfectImportFilterDialog : public cppu::WeakImplHelper <
|
|||||||
css::beans::XPropertyAccess
|
css::beans::XPropertyAccess
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::uno::XComponentContext > mxContext;
|
|
||||||
OUString msPassword;
|
OUString msPassword;
|
||||||
css::uno::Reference< css::io::XInputStream > mxInputStream;
|
css::uno::Reference< css::io::XInputStream > mxInputStream;
|
||||||
|
|
||||||
@@ -128,7 +126,7 @@ class WordPerfectImportFilterDialog : public cppu::WeakImplHelper <
|
|||||||
css::uno::RuntimeException, std::exception) override;
|
css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit WordPerfectImportFilterDialog(const css::uno::Reference< css::uno::XComponentContext > &rContext);
|
explicit WordPerfectImportFilterDialog();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user