diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-09 14:42:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-09 14:42:51 +0200 |
commit | b4fd20fc6b4d7635c607fb2022e6694ed8466022 (patch) | |
tree | bc73765c9d6b6a8f181b562939fd0b364b743988 /editeng | |
parent | a9276a0f2212483001ea8e21756ded3129e50c87 (diff) |
Clean up function declarations and some unused functions
Change-Id: Id9e29dcaab64b0244b5c53abb48ac27253a11917
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 1 | ||||
-rw-r--r-- | editeng/source/items/svxfont.cxx | 1 | ||||
-rw-r--r-- | editeng/source/misc/txtrange.cxx | 1 | ||||
-rw-r--r-- | editeng/source/uno/unoipset.cxx | 9 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 20 | ||||
-rw-r--r-- | editeng/source/uno/unotext2.cxx | 12 | ||||
-rw-r--r-- | editeng/source/xml/xmltxtexp.cxx | 1 | ||||
-rw-r--r-- | editeng/source/xml/xmltxtimp.cxx | 2 |
8 files changed, 3 insertions, 44 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 784548352c66..356975c5c66c 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -54,6 +54,7 @@ #include <editdbg.hxx> #include <editeng/eerdll.hxx> #include <eerdll2.hxx> +#include <impedit.hxx> #include <rtl/ustrbuf.hxx> diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx index ec69a0dd4e1e..19acc72ad310 100644 --- a/editeng/source/items/svxfont.cxx +++ b/editeng/source/items/svxfont.cxx @@ -182,7 +182,6 @@ public: const sal_Int32 nIdx, const sal_Int32 nLen, const sal_Bool bUpper ) = 0; - OutputDevice *GetOut() { return pOut; } const OUString &GetTxt() const { return rTxt; } sal_Int32 GetIdx() const { return nIdx; } sal_Int32 GetLen() const { return nLen; } diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx index 4b6b11a37fe6..29ec0a698015 100644 --- a/editeng/source/misc/txtrange.cxx +++ b/editeng/source/misc/txtrange.cxx @@ -142,7 +142,6 @@ public: sal_Bool IsClosed() const { return bClosed; } void SetConcat( const sal_Bool bNew ){ bConcat = bNew; } sal_Bool IsConcat() const { return bConcat; } - sal_uInt8 GetAct() const { return nAct; } }; SvxBoundArgs::SvxBoundArgs( TextRanger* pRanger, LongDqPtr pLong, diff --git a/editeng/source/uno/unoipset.cxx b/editeng/source/uno/unoipset.cxx index 2222d8e762a1..a051997c328e 100644 --- a/editeng/source/uno/unoipset.cxx +++ b/editeng/source/uno/unoipset.cxx @@ -34,15 +34,6 @@ using namespace ::rtl; using ::std::vector; - - -struct SfxItemPropertyMapEntryHash -{ - size_t operator()(const SfxItemPropertyMapEntry* pMap) const { return (size_t)pMap; } -}; - - - struct SvxIDPropertyCombine { sal_uInt16 nWID; diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 1bbd3b2e111d..f0f239170a9d 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1551,21 +1551,6 @@ sal_Int16 SAL_CALL SvxUnoTextRangeBase::compareRegionEnds( const uno::Reference< } } - -// class SvxUnoTextRange - - -uno::Reference< uno::XInterface > SvxUnoTextRange_NewInstance() -{ - SvxUnoText aText; - uno::Reference< text::XTextRange > xRange( new SvxUnoTextRange( aText ) ); -#ifndef _MSC_VER - return xRange; -#else - return (uno::Reference< uno::XInterface >)xRange; -#endif -} - SvxUnoTextRange::SvxUnoTextRange( const SvxUnoTextBase& rParent, bool bPortion /* = false */ ) throw() :SvxUnoTextRangeBase( rParent.GetEditSource(), bPortion ? ImplGetSvxTextPortionSvxPropertySet() : rParent.getPropertySet() ), mbPortion( bPortion ) @@ -2333,11 +2318,6 @@ SvxUnoText::~SvxUnoText() throw() { } -uno::Sequence< uno::Type > SAL_CALL getStaticTypes() throw() -{ - return SvxUnoTextBase::getStaticTypes(); -} - // uno::XInterface uno::Any SAL_CALL SvxUnoText::queryAggregation( const uno::Type & rType ) throw( uno::RuntimeException, std::exception ) { diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx index e66110241fd8..95201133cd81 100644 --- a/editeng/source/uno/unotext2.cxx +++ b/editeng/source/uno/unotext2.cxx @@ -456,18 +456,6 @@ uno::Any SAL_CALL SvxUnoTextRangeEnumeration::nextElement() return uno::makeAny( xRange ); } - -// class SvxUnoTextCursor - - -uno::Reference< uno::XInterface > SvxUnoTextCursor_NewInstance() -{ - SvxUnoText aText; - uno::Reference< text::XText > xText( (text::XText*)new SvxUnoTextCursor( aText ) ); - uno::Reference< uno::XInterface > xInt( xText, uno::UNO_QUERY ); - return xInt; -} - SvxUnoTextCursor::SvxUnoTextCursor( const SvxUnoTextBase& rText ) throw() : SvxUnoTextRangeBase(rText), mxParentText( const_cast<SvxUnoTextBase*>(&rText) ) diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx index 65debcbb2aad..6e5b01b58460 100644 --- a/editeng/source/xml/xmltxtexp.cxx +++ b/editeng/source/xml/xmltxtexp.cxx @@ -45,6 +45,7 @@ #include <editeng/unofield.hxx> #include <editeng/editeng.hxx> #include "editsource.hxx" +#include "editxml.hxx" #include <editeng/unonrule.hxx> #include <editeng/unoipset.hxx> diff --git a/editeng/source/xml/xmltxtimp.cxx b/editeng/source/xml/xmltxtimp.cxx index 0761c6e26d72..a72f577b2a3e 100644 --- a/editeng/source/xml/xmltxtimp.cxx +++ b/editeng/source/xml/xmltxtimp.cxx @@ -36,6 +36,7 @@ #include <xmloff/xmlnmspe.hxx> #include <xmloff/xmlstyle.hxx> #include "editsource.hxx" +#include "editxml.hxx" #include <editeng/editeng.hxx> #include <editeng/unotext.hxx> #include <editeng/unoprnms.hxx> @@ -114,7 +115,6 @@ public: virtual ~SvxXMLXTextImportComponent() throw (); - static sal_Bool load( const OUString& rUrl, const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer >& xTable ) throw(); protected: virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference< XAttributeList >& xAttrList ); |