loplugin:unusedmethods

Change-Id: I26a0da1ec9cda9030371977596053a45303756a0
Reviewed-on: https://gerrit.libreoffice.org/55609
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2018-06-11 10:11:40 +02:00
parent 807d4382cb
commit d4d0376196
32 changed files with 502 additions and 2025 deletions

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@ connectivity/source/inc/java/lang/Object.hxx:117
int connectivity::java_lang_Object::callIntMethodWithIntArg_ThrowRuntime(const char *,struct _jmethodID *&,int) const
connectivity/source/inc/odbc/OConnection.hxx:78
short connectivity::odbc::OConnection::Construct(const class rtl::OUString &,const class com::sun::star::uno::Sequence<struct com::sun::star::beans::PropertyValue> &)
connectivity/source/inc/odbc/OStatement.hxx:116
connectivity/source/inc/odbc/OStatement.hxx:115
_Bool connectivity::odbc::OStatement_Base::lockIfNecessary(const class rtl::OUString &)
extensions/source/scanner/sane.hxx:97
_Bool Sane::CheckConsistency(const char *,_Bool)
@ -46,7 +46,7 @@ extensions/source/scanner/sanedlg.hxx:90
_Bool SaneDlg::LoadState()
extensions/source/scanner/sanedlg.hxx:104
_Bool SaneDlg::SetAdjustedNumericalValue(const char *,double,int)
filter/source/flash/swfexporter.hxx:84
filter/source/flash/swfexporter.hxx:85
_Bool swf::FlashExporter::exportAll(const class com::sun::star::uno::Reference<class com::sun::star::lang::XComponent> &,const class com::sun::star::uno::Reference<class com::sun::star::io::XOutputStream> &,const class com::sun::star::uno::Reference<class com::sun::star::task::XStatusIndicator> &)
i18nlangtag/source/languagetag/languagetag.cxx:274
const class rtl::OUString & LanguageTagImpl::getBcp47() const
@ -140,9 +140,9 @@ include/oox/dump/oledumper.hxx:326
unsigned int oox::dump::AxPropertyObjectBase::dumpColorProperty(unsigned int)
include/oox/dump/oledumper.hxx:327
char16_t oox::dump::AxPropertyObjectBase::dumpUnicodeProperty()
include/oox/export/shapes.hxx:203
include/oox/export/shapes.hxx:202
class oox::drawingml::ShapeExport & oox::drawingml::ShapeExport::WriteShape(const class com::sun::star::uno::Reference<class com::sun::star::drawing::XShape> &)
include/oox/export/shapes.hxx:204
include/oox/export/shapes.hxx:203
class oox::drawingml::ShapeExport & oox::drawingml::ShapeExport::WriteTextBox(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &,int)
include/oox/helper/binaryoutputstream.hxx:78
class oox::BinaryOutputStream & oox::BinaryOutputStream::WriteInt16(short)
@ -170,10 +170,16 @@ include/svl/macitem.hxx:92
class SvStream & SvxMacroTableDtor::Write(class SvStream &) const
include/svl/poolitem.hxx:173
class SvStream & SfxPoolItem::Store(class SvStream &,unsigned short) const
include/svx/charmap.hxx:87
include/svx/charmap.hxx:84
_Bool SvxShowCharSet::GetFontCharMap(class tools::SvRef<class FontCharMap> &) const
include/svx/dlgctrl.hxx:176
class Point RectCtl::SetActualRPWithoutInvalidate(enum RectPoint)
include/svx/framelink.hxx:195
class svx::frame::Style & svx::frame::Style::MirrorSelf()
include/svx/svdograf.hxx:120
_Bool SdrGrafObj::ImpUpdateGraphicLink(_Bool) const
include/svx/SvxColorValueSet.hxx:55
class Size ColorValueSet::layoutToGivenHeight(unsigned int,unsigned int)
include/test/sheet/xnamedrange.hxx:22
class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> apitest::XNamedRange::init()
include/test/sheet/xsheetannotation.hxx:36
@ -188,13 +194,19 @@ include/tools/color.hxx:151
class SvStream & Color::Read(class SvStream &)
include/tools/color.hxx:152
class SvStream & Color::Write(class SvStream &) const
include/tools/config.hxx:37
_Bool Config::ImplUpdateConfig() const
include/tools/multisel.hxx:93
_Bool StringRangeEnumerator::insertRange(int,int,_Bool)
include/vcl/bitmap.hxx:189
_Bool Bitmap::Dither(enum BmpDitherFlags)
include/vcl/bitmapex.hxx:241
_Bool BitmapEx::Rotate(long,const class Color &)
include/vcl/fontcharmap.hxx:48
class tools::SvRef<class FontCharMap> FontCharMap::GetDefaultMap(_Bool)
include/vcl/gdimtf.hxx:186
class SvStream & GDIMetaFile::Read(class SvStream &)
include/vcl/graphicfilter.hxx:255
include/vcl/graphicfilter.hxx:260
class ErrCode GraphicFilter::ExportGraphic(const class Graphic &,const class INetURLObject &,unsigned short,const class com::sun::star::uno::Sequence<struct com::sun::star::beans::PropertyValue> *)
include/vcl/GraphicNativeTransform.hxx:29
_Bool GraphicNativeTransform::rotateBitmapOnly(unsigned short)
@ -204,16 +216,22 @@ include/vcl/texteng.hxx:285
_Bool TextEngine::Read(class SvStream &,const class TextSelection *)
include/vcl/textview.hxx:192
_Bool TextView::SetCursorAtPoint(const class Point &)
include/vcl/toolbox.hxx:513
_Bool ToolBox::ChangeHighlightUpDn(_Bool,_Bool)
include/vcl/weld.hxx:227
include/vcl/toolbox.hxx:515
_Bool ToolBox::ChangeHighlightUpDn(_Bool)
include/vcl/weld.hxx:271
_Bool weld::ComboBoxText::get_entry_selection_bounds(int &,int &)
include/vcl/weld.hxx:483
_Bool weld::Entry::get_selection_bounds(int &,int &)
include/vcl/weld.hxx:762
_Bool weld::TextView::get_selection_bounds(int &,int &)
lotuswordpro/inc/lwpsvstream.hxx:76
class LwpSvStream & LwpSvStream::ReadUInt8(unsigned char &)
lotuswordpro/inc/lwpsvstream.hxx:77
class LwpSvStream & LwpSvStream::ReadUInt16(unsigned short &)
lotuswordpro/inc/lwpsvstream.hxx:78
class LwpSvStream & LwpSvStream::ReadUInt32(unsigned int &)
reportdesign/source/ui/inc/DateTime.hxx:76
short rptui::ODateTimeDialog::execute()
sc/inc/orcusfilters.hxx:44
_Bool ScOrcusFilters::importODS_Styles(class ScDocument &,class rtl::OUString &) const
sc/source/core/opencl/formulagroupcl.cxx:952
@ -256,25 +274,25 @@ sc/source/ui/vba/vbaformat.hxx:145
class com::sun::star::uno::Any ScVbaFormat::getMergeCells()
sc/source/ui/vba/vbaformat.hxx:151
class com::sun::star::uno::Any ScVbaFormat::getReadingOrder()
sd/source/filter/eppt/pptx-epptooxml.cxx:135
sd/source/filter/eppt/pptx-epptooxml.cxx:140
class oox::drawingml::ShapeExport & oox::core::PowerPointShapeExport::WritePageShape(const class com::sun::star::uno::Reference<class com::sun::star::drawing::XShape> &,enum PageType,_Bool)
sd/source/ui/inc/OutlineViewShell.hxx:114
class ErrCode sd::OutlineViewShell::ReadRtf(class SvStream &)
sd/source/ui/remotecontrol/IBluetoothSocket.hxx:37
int sd::IBluetoothSocket::write(const void *,unsigned int)
sfx2/source/appl/appserv.cxx:324
sfx2/source/appl/appserv.cxx:321
short (anonymous namespace)::LicenseDialog::execute()
sfx2/source/appl/appserv.cxx:342
sfx2/source/appl/appserv.cxx:338
short (anonymous namespace)::SafeModeQueryDialog::execute()
sw/inc/calc.hxx:112
class SwSbxValue & SwSbxValue::MakeDouble()
sw/inc/doc.hxx:1103
sw/inc/doc.hxx:1061
_Bool SwDoc::ReplaceNumRule(const struct SwPosition &,const class rtl::OUString &,const class rtl::OUString &)
sw/inc/doc.hxx:1285
sw/inc/doc.hxx:1243
_Bool SwDoc::SplitTable(const struct SwPosition &,enum SplitTable_HeadlineOption,_Bool)
sw/inc/editsh.hxx:270
sw/inc/editsh.hxx:262
_Bool SwEditShell::GetPaMParAttr(class SwPaM *,class SfxItemSet &) const
sw/inc/editsh.hxx:641
sw/inc/editsh.hxx:633
const class GraphicAttr * SwEditShell::GetGraphicAttr(class GraphicAttr &) const
sw/inc/IDocumentUndoRedo.hxx:180
_Bool IDocumentUndoRedo::Repeat(class sw::RepeatContext &,const unsigned short)
@ -284,6 +302,8 @@ sw/inc/tblafmt.hxx:343
_Bool SwTableAutoFormatTable::Load(class SvStream &)
sw/source/core/inc/laycache.hxx:64
_Bool SwLayoutCache::CompareLayout(const class SwDoc &) const
sw/source/core/inc/scriptinfo.hxx:226
_Bool SwScriptInfo::GetBoundsOfHiddenRange(int,int &,int &) const
sw/source/filter/ww8/ww8toolbar.hxx:339
_Bool Tcg::ImportCustomToolBar(class SfxObjectShell &)
sw/source/ui/frmdlg/cption.cxx:80
@ -306,15 +326,15 @@ vcl/inc/opengl/texture.hxx:112
_Bool OpenGLTexture::CopyData(int,int,int,int,const unsigned char *)
vcl/inc/salframe.hxx:221
_Bool SalFrame::SetPluginParent(struct SystemParentData *)
vcl/inc/salgdi.hxx:393
vcl/inc/salgdi.hxx:392
_Bool SalGraphics::BlendBitmap(const struct SalTwoRect &,const class SalBitmap &,const class OutputDevice *)
vcl/inc/unx/gtk/gtkdata.hxx:164
int GtkSalDisplay::CaptureMouse(class SalFrame *)
vcl/inc/unx/saldisp.hxx:294
_Bool SalDisplay::Dispatch(union _XEvent *)
vcl/source/gdi/pdfwriter_impl.hxx:1262
_Bool vcl::PDFWriterImpl::setCurrentStructureElement(int)
vcl/source/gdi/pdfwriter_impl.hxx:1263
_Bool vcl::PDFWriterImpl::setStructureAttribute(enum vcl::PDFWriter::StructAttribute,enum vcl::PDFWriter::StructAttributeValue)
_Bool vcl::PDFWriterImpl::setCurrentStructureElement(int)
vcl/source/gdi/pdfwriter_impl.hxx:1264
_Bool vcl::PDFWriterImpl::setStructureAttribute(enum vcl::PDFWriter::StructAttribute,enum vcl::PDFWriter::StructAttributeValue)
vcl/source/gdi/pdfwriter_impl.hxx:1265
_Bool vcl::PDFWriterImpl::setStructureAttributeNumerical(enum vcl::PDFWriter::StructAttribute,int)

View File

@ -358,11 +358,6 @@ void Outliner::SetDefaultLanguage( LanguageType eLang )
pEditEngine->SetDefaultLanguage( eLang );
}
LanguageType Outliner::GetDefaultLanguage() const
{
return pEditEngine->GetDefaultLanguage();
}
void Outliner::CompleteOnlineSpelling()
{
pEditEngine->CompleteOnlineSpelling();

View File

@ -910,7 +910,6 @@ public:
// Deprecated
void SetDefaultLanguage( LanguageType eLang );
LanguageType GetDefaultLanguage() const;
void CompleteOnlineSpelling();

View File

@ -41,16 +41,6 @@ public:
const OUString& rsPanelId,
const css::uno::Reference<css::frame::XFrame>& rxFrame, bool bFocus = false);
/** Switch to the deck that contains the specified panel and toggle
the visibility of the panel (expanded and scrolled into the
visible area when visible)
Note that most of the work is done asynchronously and that
this function probably returns before the requested panel is visible.
*/
static void TogglePanel (
const OUString& rsPanelId,
const css::uno::Reference<css::frame::XFrame>& rxFrame);
static bool IsPanelVisible(
const OUString& rsPanelId,
const css::uno::Reference<css::frame::XFrame>& rxFrame);

View File

@ -453,16 +453,12 @@ private:
friend class SvtValueSetAcc;
friend class SvtValueItemAcc;
SVT_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
SVT_DLLPRIVATE void ImplInitScrollBar();
SVT_DLLPRIVATE void ImplDeleteItems();
SVT_DLLPRIVATE void ImplFormatItem(vcl::RenderContext const & rRenderContext, SvtValueSetItem* pItem, tools::Rectangle aRect);
SVT_DLLPRIVATE void ImplDrawItemText(vcl::RenderContext& rRenderContext, const OUString& rStr);
SVT_DLLPRIVATE void ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nItemId, const bool bFocus, const bool bDrawSel);
SVT_DLLPRIVATE void ImplDrawSelect(vcl::RenderContext& rRenderContext);
SVT_DLLPRIVATE void ImplDraw(vcl::RenderContext& rRenderContext);
SVT_DLLPRIVATE bool ImplScroll( const Point& rPos );
SVT_DLLPRIVATE size_t ImplGetItem( const Point& rPoint ) const;
SVT_DLLPRIVATE SvtValueSetItem* ImplGetItem( size_t nPos );
SVT_DLLPRIVATE SvtValueSetItem* ImplGetFirstItem();
@ -501,102 +497,52 @@ public:
void SetStyle(WinBits nStyle) { mnStyle = nStyle; }
WinBits GetStyle() const { return mnStyle; }
/// Insert @rImage item.
void InsertItem(sal_uInt16 nItemId, const Image& rImage);
/// Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend.
void InsertItem(sal_uInt16 nItemId, const Image& rImage,
const OUString& rStr, size_t nPos = VALUESET_APPEND, bool bShowLegend = false);
/// Insert an @rColor item with @rStr tooltip.
void InsertItem(sal_uInt16 nItemId, const Color& rColor,
const OUString& rStr);
/// Insert an User Drawn item.
void InsertItem(sal_uInt16 nItemId, size_t nPos = VALUESET_APPEND);
/// Insert an User Drawn item with @rStr tooltip.
void InsertItem(sal_uInt16 nItemId, const OUString& rStr, size_t nPos);
void RemoveItem(sal_uInt16 nItemId);
void Clear();
size_t GetItemCount() const;
size_t GetItemPos( sal_uInt16 nItemId ) const;
sal_uInt16 GetItemId( size_t nPos ) const;
sal_uInt16 GetItemId( const Point& rPos ) const;
tools::Rectangle GetItemRect( sal_uInt16 nItemId ) const;
void EnableFullItemMode( bool bFullMode );
void SetColCount( sal_uInt16 nNewCols = 1 );
sal_uInt16 GetColCount() const
{
return mnUserCols;
}
void SetLineCount( sal_uInt16 nNewLines = 0 );
sal_uInt16 GetLineCount() const
{
return mnUserVisLines;
}
void SetItemWidth( long nItemWidth );
void SetItemHeight( long nLineHeight );
Size GetLargestItemSize();
void RecalculateItemSizes();
void SelectItem( sal_uInt16 nItemId );
sal_uInt16 GetSelectedItemId() const
{
return mnSelItemId;
}
size_t GetSelectItemPos() const
{
return GetItemPos( mnSelItemId );
}
bool IsItemSelected( sal_uInt16 nItemId ) const
{
return !mbNoSelection && (nItemId == mnSelItemId);
}
void SetNoSelection();
bool IsNoSelection() const
{
return mbNoSelection;
}
void SetItemImage( sal_uInt16 nItemId, const Image& rImage );
Image GetItemImage( sal_uInt16 nItemId ) const;
void SetItemColor( sal_uInt16 nItemId, const Color& rColor );
Color GetItemColor( sal_uInt16 nItemId ) const;
void SetItemData( sal_uInt16 nItemId, void* pData );
void* GetItemData( sal_uInt16 nItemId ) const;
void SetItemText( sal_uInt16 nItemId, const OUString& rStr );
OUString GetItemText( sal_uInt16 nItemId ) const;
void SetColor( const Color& rColor );
void SetColor()
{
SetColor(COL_TRANSPARENT);
}
bool IsColor() const
{
return maColor.GetTransparency() == 0;
}
void SetExtraSpacing( sal_uInt16 nNewSpacing );
void Format(vcl::RenderContext const & rRenderContext);
void SetFormat();
Size CalcWindowSizePixel(const Size& rItemSize,
sal_uInt16 nCalcCols = 0,
sal_uInt16 nCalcLines = 0) const;
Size CalcItemSizePixel(const Size& rSize) const;
void SetSelectHdl(const Link<SvtValueSet*,void>& rLink)
{
maSelectHdl = rLink;
}
void SetDoubleClickHdl(const Link<SvtValueSet*,void>& rLink)
{
maDoubleClickHdl = rLink;
}
void SetHighlightHdl(const Link<SvtValueSet*,void>& rLink);
bool GetEdgeBlending() const
{
return mbEdgeBlending;

View File

@ -50,8 +50,6 @@ public:
virtual void Resize() override;
void addEntriesForXColorList(const XColorList& rXColorList, sal_uInt32 nStartIndex = 1);
void addEntriesForColorSet(const std::set<Color>& rColorSet, const OUString& rNamePrefix);
Size layoutAllVisible(sal_uInt32 nEntryCount);
Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount);
};

View File

@ -178,12 +178,6 @@ public:
virtual void Resize() override;
const OUString& GetText() const { return m_aText; }
void SetText(const OUString& rText) { m_aText = rText; }
/** Returns true, if the control is not in "don't care" state. */
bool HasRotation() const;
/** Sets the control to "don't care" state. */
void SetNoRotation();
/** Returns the current rotation angle in 1/100 degrees. */
sal_Int32 GetRotation() const;
@ -198,9 +192,6 @@ public:
*/
void SetLinkedField(weld::SpinButton* pField, sal_Int32 nDecimalPlaces = 0);
/** The passed handler is called whenever the rotation value changes. */
void SetModifyHdl( const Link<SvxDialControl*,void>& rLink );
/** Save value for later comparison */
void SaveValue();

View File

@ -102,10 +102,6 @@ public:
{
aText = rStr;
}
void SetSize( Size aNew )
{
aSize = aNew;
}
OUString GetText() const override
{
return aText;
@ -140,10 +136,6 @@ class SVX_DLLPUBLIC ParaPrevWindow final : public weld::CustomWidgetController
public:
ParaPrevWindow();
void SetFirstLineOfst( short nNew )
{
nFirstLineOfst = nNew;
}
void SetLeftMargin( long nNew )
{
nLeftMargin = nNew;
@ -152,14 +144,6 @@ public:
{
nRightMargin = nNew;
}
void SetUpper( sal_uInt16 nNew )
{
nUpper = nNew;
}
void SetLower( sal_uInt16 nNew )
{
nLower = nNew;
}
void SetAdjust( SvxAdjust eNew )
{
eAdjust = eNew;
@ -168,22 +152,10 @@ public:
{
eLastLine = eNew;
}
void SetLineSpace( SvxPrevLineSpace eNew )
{
eLine = eNew;
}
void SetText( const OUString& rStr )
{
aText = rStr;
}
void SetSize( Size aNew )
{
aSize = aNew;
}
OUString GetText() const
{
return aText;
}
};

View File

@ -135,15 +135,12 @@ public:
virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
void SetWrap(css::text::WrapTextMode nW) { nWrap = nW; }
void SetHAlign(short nH) { nHAlign = nH; }
void SetHoriRel(short nR) { nHRel = nR; }
void SetVAlign(short nV) { nVAlign = nV; }
void SetVertRel(short nR) { nVRel = nR; }
void SetTransparent(bool bT) { bTrans = bT; }
void SetAnchor(RndStdIds nA) { nAnchor = nA; }
void SetRelPos(const Point& rP);

View File

@ -50,28 +50,6 @@ void Sidebar::ShowPanel (
pController->GetFocusManager().GrabFocusPanel();
}
void Sidebar::TogglePanel (
const OUString& rsPanelId,
const css::uno::Reference<frame::XFrame>& rxFrame)
{
SidebarController* pController = SidebarController::GetSidebarControllerForFrame(rxFrame);
if (!pController)
return;
std::shared_ptr<PanelDescriptor> xPanelDescriptor = pController->GetResourceManager()->GetPanelDescriptor(rsPanelId);
if (!xPanelDescriptor)
return;
// This should be a lot more sophisticated:
// - Make the deck switching asynchronous
// - Make sure to use a context that really shows the panel
// All that is not necessary for the current use cases so lets
// keep it simple for the time being.
pController->OpenThenToggleDeck(xPanelDescriptor->msDeckId);
}
bool Sidebar::IsPanelVisible(
const OUString& rsPanelId,
const css::uno::Reference<frame::XFrame>& rxFrame)

View File

@ -1072,32 +1072,6 @@ SvtValueItemAcc::~SvtValueItemAcc()
{
}
void SvtValueItemAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue, const uno::Any& rNewValue )
{
if( !nEventId )
return;
::std::vector< uno::Reference< accessibility::XAccessibleEventListener > > aTmpListeners( mxEventListeners );
accessibility::AccessibleEventObject aEvtObject;
aEvtObject.EventId = nEventId;
aEvtObject.Source = static_cast<uno::XWeak*>(this);
aEvtObject.NewValue = rNewValue;
aEvtObject.OldValue = rOldValue;
for (auto const& tmpListener : aTmpListeners)
{
tmpListener->notifyEvent( aEvtObject );
}
}
void SvtValueItemAcc::ParentDestroyed()
{
const ::osl::MutexGuard aGuard( maMutex );
mpParent = nullptr;
}
namespace
{
class theSvtValueItemAccUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSvtValueItemAccUnoTunnelId > {};

View File

@ -410,10 +410,6 @@ public:
SvtValueItemAcc(SvtValueSetItem* pParent, bool bIsTransientChildrenDisabled);
virtual ~SvtValueItemAcc() override;
void ParentDestroyed();
void FireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue );
static SvtValueItemAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) throw();
public:

View File

@ -2698,11 +2698,6 @@ tools::Rectangle SvtValueSet::GetItemRect( sal_uInt16 nItemId ) const
return tools::Rectangle();
}
void SvtValueSet::EnableFullItemMode( bool bFullMode )
{
mbFullMode = bFullMode;
}
tools::Rectangle SvtValueSet::ImplGetItemRect( size_t nPos ) const
{
const size_t nVisibleBegin = static_cast<size_t>(mnFirstLine)*mnCols;
@ -2723,11 +2718,6 @@ tools::Rectangle SvtValueSet::ImplGetItemRect( size_t nPos ) const
return tools::Rectangle( Point(x, y), Size(mnItemWidth, mnItemHeight) );
}
void SvtValueSet::SetFormat()
{
mbFormat = true;
}
void SvtValueSet::ImplDraw(vcl::RenderContext& rRenderContext)
{
if (mbFormat)
@ -3462,39 +3452,6 @@ void SvtValueSet::ImplDrawItemText(vcl::RenderContext& rRenderContext, const OUS
rRenderContext.DrawText(Point((aWinSize.Width() - nTxtWidth) / 2, nTxtOffset + (NAME_OFFSET / 2)), rText);
}
bool SvtValueSet::ImplScroll(const Point& rPos)
{
if (!mbScroll || !maItemListRect.IsInside(rPos))
return false;
const long nScrollOffset = (mnItemHeight <= 16) ? SCROLL_OFFSET / 2 : SCROLL_OFFSET;
bool bScroll = false;
if (rPos.Y() <= maItemListRect.Top() + nScrollOffset)
{
if (mnFirstLine > 0)
{
--mnFirstLine;
bScroll = true;
}
}
else if (rPos.Y() >= maItemListRect.Bottom() - nScrollOffset)
{
if (mnFirstLine < static_cast<sal_uInt16>(mnLines - mnVisLines))
{
++mnFirstLine;
bScroll = true;
}
}
if (!bScroll)
return false;
mbFormat = true;
Invalidate();
return true;
}
void SvtValueSet::StyleUpdated()
{
mbFormat = true;

View File

@ -621,22 +621,6 @@ void SvxDialControl::LoseFocus()
HandleEscapeEvent();
}
bool SvxDialControl::HasRotation() const
{
return !mpImpl->mbNoRot;
}
void SvxDialControl::SetNoRotation()
{
if( !mpImpl->mbNoRot )
{
mpImpl->mbNoRot = true;
InvalidateControl();
if( mpImpl->mpLinkField )
mpImpl->mpLinkField->set_text("");
}
}
sal_Int32 SvxDialControl::GetRotation() const
{
return mpImpl->mnAngle;
@ -689,11 +673,6 @@ bool SvxDialControl::IsValueModified()
return mpImpl->mnInitialAngle != mpImpl->mnAngle;
}
void SvxDialControl::SetModifyHdl( const Link<SvxDialControl*,void>& rLink )
{
mpImpl->maModifyHdl = rLink;
}
void SvxDialControl::Init( const Size& rWinSize, const vcl::Font& rWinFont )
{
mpImpl->Init( rWinSize, rWinFont );

View File

@ -707,78 +707,6 @@ void ImpSdrPdfImport::InsertObj(SdrObject* pObj, bool bScale)
}
}
bool ImpSdrPdfImport::CheckLastLineMerge(const basegfx::B2DPolygon& rSrcPoly)
{
// #i102706# Do not merge closed polygons
if (rSrcPoly.isClosed())
{
return false;
}
// #i73407# reformulation to use new B2DPolygon classes
if (mbLastObjWasLine && (maOldLineColor == mpVD->GetLineColor()) && rSrcPoly.count())
{
SdrObject* pTmpObj = maTmpList.size() ? maTmpList[maTmpList.size() - 1] : nullptr;
SdrPathObj* pLastPoly = dynamic_cast<SdrPathObj*>(pTmpObj);
if (pLastPoly)
{
if (1 == pLastPoly->GetPathPoly().count())
{
bool bOk(false);
basegfx::B2DPolygon aDstPoly(pLastPoly->GetPathPoly().getB2DPolygon(0));
// #i102706# Do not merge closed polygons
if (aDstPoly.isClosed())
{
return false;
}
if (aDstPoly.count())
{
const sal_uInt32 nMaxDstPnt(aDstPoly.count() - 1);
const sal_uInt32 nMaxSrcPnt(rSrcPoly.count() - 1);
if (aDstPoly.getB2DPoint(nMaxDstPnt) == rSrcPoly.getB2DPoint(0))
{
aDstPoly.append(rSrcPoly, 1, rSrcPoly.count() - 1);
bOk = true;
}
else if (aDstPoly.getB2DPoint(0) == rSrcPoly.getB2DPoint(nMaxSrcPnt))
{
basegfx::B2DPolygon aNew(rSrcPoly);
aNew.append(aDstPoly, 1, aDstPoly.count() - 1);
aDstPoly = aNew;
bOk = true;
}
else if (aDstPoly.getB2DPoint(0) == rSrcPoly.getB2DPoint(0))
{
aDstPoly.flip();
aDstPoly.append(rSrcPoly, 1, rSrcPoly.count() - 1);
bOk = true;
}
else if (aDstPoly.getB2DPoint(nMaxDstPnt) == rSrcPoly.getB2DPoint(nMaxSrcPnt))
{
basegfx::B2DPolygon aNew(rSrcPoly);
aNew.flip();
aDstPoly.append(aNew, 1, aNew.count() - 1);
bOk = true;
}
}
if (bOk)
{
pLastPoly->NbcSetPathPoly(basegfx::B2DPolyPolygon(aDstPoly));
}
return bOk;
}
}
}
return false;
}
bool ImpSdrPdfImport::CheckLastPolyLineAndFillMerge(const basegfx::B2DPolyPolygon& rPolyPolygon)
{
// #i73407# reformulation to use new B2DPolygon classes

View File

@ -222,7 +222,6 @@ class ImpSdrPdfImport final
void MapScaling();
// #i73407# reformulation to use new B2DPolygon classes
bool CheckLastLineMerge(const basegfx::B2DPolygon& rSrcPoly);
bool CheckLastPolyLineAndFillMerge(const basegfx::B2DPolyPolygon& rPolyPolygon);
void DoObjects(SvdProgressInfo* pProgrInfo, sal_uInt32* pActionsToReport, int nPageIndex);

View File

@ -312,7 +312,6 @@ public:
void SetInitDBFields(bool b) { bInitDBFields = b; }
/// Fill listbox with all table names of a database.
bool GetTableNames(ListBox* pListBox, const OUString& rDBName );
bool GetTableNames(weld::ComboBoxText& rBox, const OUString& rDBName);
/// Fill listbox with all column names of a database table.

View File

@ -156,8 +156,6 @@ public:
return *(GetAnchorFormat().GetContentAnchor());
}
const SwIndex& GetContentAnchorIndex() const;
/** get data collection of anchored objects, handled by with contact */
virtual void GetAnchoredObjs( std::vector<SwAnchoredObject*>& _roAnchoredObjs ) const = 0;

View File

@ -104,7 +104,6 @@ public:
bChgTwipSize = b;
}
bool IsGraphicArrived() const { return bGraphicArrived; }
void SetGraphicArrived( bool b ) { bGraphicArrived = b; }
bool IsFrameInPaint() const { return bFrameInPaint; }

View File

@ -347,14 +347,6 @@ void SwContact::MoveObjToLayer( const bool _bToVisible,
}
}
// some virtual helper methods for information
// about the object (Writer fly frame resp. drawing object)
const SwIndex& SwContact::GetContentAnchorIndex() const
{
return GetContentAnchor().nContent;
}
/// get minimum order number of anchored objects handled by with contact
sal_uInt32 SwContact::GetMinOrdNum() const
{

View File

@ -706,54 +706,6 @@ void SwDBManager::ImportDBEntry(SwWrtShell* pSh)
}
}
// fill Listbox with tablelist
bool SwDBManager::GetTableNames(ListBox* pListBox, const OUString& rDBName)
{
bool bRet = false;
OUString sOldTableName(pListBox->GetSelectedEntry());
pListBox->Clear();
SwDSParam* pParam = FindDSConnection(rDBName, false);
uno::Reference< sdbc::XConnection> xConnection;
if(pParam && pParam->xConnection.is())
xConnection = pParam->xConnection;
else
{
if ( !rDBName.isEmpty() )
xConnection = RegisterConnection( rDBName );
}
if(xConnection.is())
{
uno::Reference<sdbcx::XTablesSupplier> xTSupplier(xConnection, uno::UNO_QUERY);
if(xTSupplier.is())
{
uno::Reference<container::XNameAccess> xTables = xTSupplier->getTables();
uno::Sequence<OUString> aTables = xTables->getElementNames();
const OUString* pTables = aTables.getConstArray();
for(long i = 0; i < aTables.getLength(); i++)
{
const sal_Int32 nEntry = pListBox->InsertEntry(pTables[i]);
pListBox->SetEntryData(nEntry, nullptr);
}
}
uno::Reference<sdb::XQueriesSupplier> xQSupplier(xConnection, uno::UNO_QUERY);
if(xQSupplier.is())
{
uno::Reference<container::XNameAccess> xQueries = xQSupplier->getQueries();
uno::Sequence<OUString> aQueries = xQueries->getElementNames();
const OUString* pQueries = aQueries.getConstArray();
for(long i = 0; i < aQueries.getLength(); i++)
{
const sal_Int32 nEntry = pListBox->InsertEntry(pQueries[i]);
pListBox->SetEntryData(nEntry, reinterpret_cast<void*>(1));
}
}
if (!sOldTableName.isEmpty())
pListBox->SelectEntry(sOldTableName);
bRet = true;
}
return bRet;
}
bool SwDBManager::GetTableNames(weld::ComboBoxText& rBox, const OUString& rDBName)
{
bool bRet = false;

View File

@ -47,17 +47,6 @@ class NumberingPreview : public vcl::Window
}
virtual ~NumberingPreview() override;
void SetNumRule(const SwNumRule* pNum)
{pActNum = pNum; Invalidate();};
void SetPageWidth(long nPgWidth)
{nPageWidth = nPgWidth;}
void SetOutlineNames(const OUString* pNames)
{pOutlineNames = pNames;}
void SetPositionMode()
{ bPosition = true;}
void SetLevel(sal_uInt16 nSet) {nActLevel = nSet;}
};
class SwNumberingPreview : public weld::CustomWidgetController

View File

@ -59,17 +59,11 @@ public:
bool HasFocus() const { return m_pField->HasFocus(); }
void SetAccessibleName(const OUString& rName) { m_pField->SetAccessibleName(rName); }
void SetText(const OUString& rStr) { m_pField->SetText(rStr); }
void SaveValue() { m_pField->SaveValue(); }
void ClearModifyFlag() { m_pField->ClearModifyFlag(); }
OUString const & GetSavedValue() const { return m_pField->GetSavedValue(); }
OUString GetText() const { return m_pField->GetText(); }
void SetMetricFieldMin(sal_Int64 nNewMin) { m_pField->SetMin(nNewMin); }
void SetMetricFieldMax(sal_Int64 nNewMax) { m_pField->SetMax(nNewMax); }
void SetValue(sal_Int64 nNewValue) { m_pField->SetValue(nNewValue, FUNIT_NONE); }
void SetLast(sal_Int64 nNewLast) { m_pField->SetLast(nNewLast); }
void SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE);
void SetUserValue(sal_Int64 nNewValue, FieldUnit eInUnit);
@ -128,35 +122,21 @@ public:
void SetMetric(FieldUnit eUnit) { ::SetFieldUnit(*m_pField, eUnit); }
void set_sensitive(bool bEnable) { m_pField->set_sensitive(bEnable); }
bool has_focus() const { return m_pField->has_focus(); }
void set_accessible_name(const OUString& rName) { m_pField->set_accessible_name(rName); }
void set_text(const OUString& rStr) { m_pField->set_text(rStr); }
void save_value() { m_pField->save_value(); }
bool get_value_changed_from_saved() const { return m_pField->get_value_changed_from_saved(); }
OUString get_text() const { return m_pField->get_text(); }
void SetMetricFieldMin(int nNewMin) { m_pField->set_min(nNewMin, FUNIT_NONE); }
void SetMetricFieldMax(int nNewMax) { m_pField->set_max(nNewMax, FUNIT_NONE); }
int GetMetrixFieldMin() const { int nMin, nMax; m_pField->get_range(nMin, nMax, FUNIT_NONE); return nMin; }
void set_value(int nNewValue) { m_pField->set_value(nNewValue, FUNIT_NONE); }
void SetPrcntValue(int nNewValue, FieldUnit eInUnit = FUNIT_NONE);
void SetUserValue(int nNewValue, FieldUnit eInUnit);
void SetBaseValue(int nNewValue, FieldUnit eInUnit);
int get_value(FieldUnit eOutUnit = FUNIT_NONE);
bool IsValueModified();
void set_min(int nNewMin, FieldUnit eInUnit);
void set_max(int nNewMax, FieldUnit eInUnit);
int NormalizePercent(int nValue);
int DenormalizePercent(int nValue);
int normalize(int nValue) const { return m_pField->normalize(nValue); }
void SetRefValue(int nValue);
int GetRealValue(FieldUnit eOutUnit);
@ -164,7 +144,6 @@ public:
void ShowPercent(bool bPercent);
void LockAutoCalculation(bool bLock) {bLockAutoCalculation = bLock;}
};

View File

@ -434,14 +434,6 @@ int SwPercentField::DenormalizePercent(int nValue)
return nValue;
}
bool SwPercentField::IsValueModified()
{
if (m_pField->get_unit() == FUNIT_PERCENT)
return true;
else
return m_pField->get_value_changed_from_saved();
}
int SwPercentField::ImpPower10(sal_uInt16 n)
{
int nValue = 1;

View File

@ -1224,12 +1224,6 @@ void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, const SalBitmap& rSourceB
copySource(rTR, source);
}
void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, BitmapBuffer* pBuffer)
{
cairo_surface_t* source = createCairoSurface( pBuffer );
copySource(rTR, source);
}
void SvpSalGraphics::drawBitmap( const SalTwoRect& rTR,
const SalBitmap& rSourceBitmap,
const SalBitmap& rTransparentBitmap )

View File

@ -224,8 +224,6 @@ public:
SalGraphics* pSrcGraphics ) override;
virtual void drawBitmap( const SalTwoRect& rPosAry,
const SalBitmap& rSalBitmap ) override;
void drawBitmap( const SalTwoRect& rPosAry,
BitmapBuffer* pBuffer );
virtual void drawBitmap( const SalTwoRect& rPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap ) override;

View File

@ -60,11 +60,6 @@ public:
rID.mnID3 == mnID3 && rID.mnID4 == mnID4;
}
bool IsEmpty() const
{
return 0 == mnID4;
}
OString getIDString() const;
};

View File

@ -79,10 +79,6 @@ class VCL_PLUGIN_PUBLIC SVMConverter
{
private:
SAL_DLLPRIVATE static void ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf );
SAL_DLLPRIVATE sal_uLong ImplWriteActions( SvStream& rOStm, GDIMetaFile const & rMtf,
VirtualDevice& rSaveVDev, bool& rRop_0_1,
Color& rLineCol, ::std::stack<Color*>& rLineColStack,
rtl_TextEncoding& rActualCharSet );
public:
SVMConverter( SvStream& rIStm, GDIMetaFile& rMtf );

File diff suppressed because it is too large Load Diff

View File

@ -227,48 +227,6 @@ void SecurityEnvironment_NssImpl::adoptSymKey( PK11SymKey* aSymKey ) {
}
}
PK11SymKey* SecurityEnvironment_NssImpl::getSymKey( unsigned int position ) {
PK11SymKey* symkey ;
std::list< PK11SymKey* >::iterator keyIt ;
unsigned int pos ;
symkey = nullptr ;
for( pos = 0, keyIt = m_tSymKeyList.begin() ; pos < position && keyIt != m_tSymKeyList.end() ; pos ++ , ++keyIt ) ;
if( pos == position && keyIt != m_tSymKeyList.end() )
symkey = *keyIt ;
return symkey ;
}
SECKEYPublicKey* SecurityEnvironment_NssImpl::getPubKey( unsigned int position ) {
SECKEYPublicKey* pubkey ;
std::list< SECKEYPublicKey* >::iterator keyIt ;
unsigned int pos ;
pubkey = nullptr ;
for( pos = 0, keyIt = m_tPubKeyList.begin() ; pos < position && keyIt != m_tPubKeyList.end() ; pos ++ , ++keyIt ) ;
if( pos == position && keyIt != m_tPubKeyList.end() )
pubkey = *keyIt ;
return pubkey ;
}
SECKEYPrivateKey* SecurityEnvironment_NssImpl::getPriKey( unsigned int position ) {
SECKEYPrivateKey* prikey ;
std::list< SECKEYPrivateKey* >::iterator keyIt ;
unsigned int pos ;
prikey = nullptr ;
for( pos = 0, keyIt = m_tPriKeyList.begin() ; pos < position && keyIt != m_tPriKeyList.end() ; pos ++ , ++keyIt ) ;
if( pos == position && keyIt != m_tPriKeyList.end() )
prikey = *keyIt ;
return prikey ;
}
void SecurityEnvironment_NssImpl::updateSlots()
{
//In case new tokens are present then we can obtain the corresponding slot

View File

@ -102,17 +102,6 @@ private:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
void adoptSymKey( PK11SymKey* aSymKey ) ;
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
PK11SymKey* getSymKey( unsigned int position ) ;
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
SECKEYPublicKey* getPubKey( unsigned int position ) ;
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
SECKEYPrivateKey* getPriKey( unsigned int position ) ;
virtual css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > SAL_CALL getPersonalCertificates() override ;
virtual css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > SAL_CALL getAllCertificates() override