loplugin:constantparam

Change-Id: Ibfe70492683ff3ec208cee95d8a11155ec54f690
Reviewed-on: https://gerrit.libreoffice.org/81314
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-10-22 14:14:48 +02:00
parent 61ea11e51c
commit 7fb43031b7
35 changed files with 940 additions and 1082 deletions
@@ -13,20 +13,17 @@ include/basegfx/polygon/b2dpolygontools.hxx:144
include/framework/framelistanalyzer.hxx:184
void framework::FrameListAnalyzer::FrameListAnalyzer(const class com::sun::star::uno::Reference<class com::sun::star::frame::XFramesSupplier> &,const class com::sun::star::uno::Reference<class com::sun::star::frame::XFrame> &,enum FrameAnalyzerFlags)
enum FrameAnalyzerFlags eDetectMode setBits=0x4
include/sfx2/objsh.hxx:451
include/sfx2/objsh.hxx:456
void SfxObjectShell::FinishedLoading(enum SfxLoadedFlags)
enum SfxLoadedFlags nWhich setBits=0x1
include/svtools/brwbox.hxx:431
void BrowseBox::InsertDataColumn(unsigned short,const class rtl::OUString &,long,enum HeaderBarItemBits,unsigned short)
enum HeaderBarItemBits nBits setBits=0x400 clearBits=0x3ec
include/svtools/wizardmachine.hxx:178
void svt::OWizardMachine::OWizardMachine(class vcl::Window *,enum WizardButtonFlags)
include/vcl/wizardmachine.hxx:140
void vcl::WizardMachine::WizardMachine(class weld::Window *,enum WizardButtonFlags)
enum WizardButtonFlags _nButtonFlags setBits=0xf
include/vcl/gdimtf.hxx:194
_Bool GDIMetaFile::CreateThumbnail(class BitmapEx &,enum BmpConversion,enum BmpScaleFlag) const
enum BmpScaleFlag nScaleFlag setBits=0x1
sc/inc/rangelst.hxx:48
void ScRangeList::Format(class rtl::OUString &,enum ScRefFlags,class ScDocument *,enum formula::FormulaGrammar::AddressConvention,char16_t,_Bool) const
void ScRangeList::Format(class rtl::OUString &,enum ScRefFlags,const class ScDocument *,enum formula::FormulaGrammar::AddressConvention,char16_t,_Bool) const
enum ScRefFlags nFlags setBits=0x8000 clearBits=0x7f80
sc/inc/rangeutl.hxx:162
void ScRangeStringConverter::GetStringFromAddress(class rtl::OUString &,const class ScAddress &,const class ScDocument *,enum formula::FormulaGrammar::AddressConvention,char16_t,_Bool,enum ScRefFlags)
@@ -34,13 +31,13 @@ sc/inc/rangeutl.hxx:162
sc/inc/xmlwrap.hxx:89
_Bool ScXMLImportWrapper::Import(enum ImportFlags,class ErrCode &)
enum ImportFlags nMode setBits=0x1
sc/source/ui/view/cellsh1.cxx:115
sc/source/ui/view/cellsh1.cxx:102
enum InsertDeleteFlags FlagsFromString(const class rtl::OUString &,enum InsertDeleteFlags)
enum InsertDeleteFlags nFlagsMask setBits=0x87f clearBits=0x700
sc/source/ui/view/cellsh1.cxx:138
sc/source/ui/view/cellsh1.cxx:125
class rtl::OUString FlagsToString(enum InsertDeleteFlags,enum InsertDeleteFlags)
enum InsertDeleteFlags nFlagsMask setBits=0x87f clearBits=0x700
sw/source/core/view/viewsh.cxx:727
sw/source/core/view/viewsh.cxx:728
void lcl_InvalidateAllContent(class SwViewShell &,enum SwInvalidateFlags)
enum SwInvalidateFlags nInv setBits=0x2
sw/source/filter/html/swhtml.hxx:670
@@ -52,6 +49,6 @@ sw/source/filter/ww8/wrtw8esh.cxx:1557
xmloff/inc/MetaExportComponent.hxx:32
void XMLMetaExportComponent::XMLMetaExportComponent(const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class rtl::OUString &,enum SvXMLExportFlags)
enum SvXMLExportFlags nFlags setBits=0x1
xmloff/source/text/XMLAutoTextEventExport.hxx:53
xmloff/source/text/XMLAutoTextEventExport.hxx:51
void XMLAutoTextEventExport::XMLAutoTextEventExport(const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class rtl::OUString &,enum SvXMLExportFlags)
enum SvXMLExportFlags nFlags setBits=0xdff clearBits=0x200
File diff suppressed because it is too large Load Diff
@@ -114,7 +114,7 @@ dbaccess/source/core/api/RowSetRow.hxx:40
void dbaccess::ORowSetOldRowHelper::ORowSetOldRowHelper(const class rtl::Reference<class connectivity::ORowVector<class connectivity::ORowSetValue> > &)
const class rtl::Reference<class connectivity::ORowVector<class connectivity::ORowSetValue> > & _rRow
ORowSetRow()
dbaccess/source/core/inc/ModelImpl.hxx:333
dbaccess/source/core/inc/ModelImpl.hxx:336
void dbaccess::ODatabaseModelImpl::modelIsDisposing(const _Bool,struct dbaccess::ODatabaseModelImpl::ResetModelAccess)
const _Bool _wasInitialized
impl_isInitialized()
@@ -122,7 +122,7 @@ dbaccess/source/core/inc/View.hxx:41
void dbaccess::View::View(const class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> &,_Bool,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &)
_Bool _bCaseSensitive
isCaseSensitive()
dbaccess/source/ui/inc/adtabdlg.hxx:79
dbaccess/source/ui/inc/adtabdlg.hxx:77
void dbaui::OAddTableDlg::OAddTableDlg(class weld::Window *,class dbaui::IAddTableDialogContext &)
class dbaui::IAddTableDialogContext & _rContext
impl_getDialogContext()
@@ -142,6 +142,10 @@ dbaccess/source/ui/inc/TableWindowData.hxx:66
_Bool dbaui::OTableWindowData::init(const class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> &,_Bool)
_Bool _bAllowQueries
allowQueries()
dbaccess/source/ui/inc/WCPage.hxx:60
void dbaui::OCopyTable::OCopyTable(class weld::Container *,class dbaui::OCopyTableWizard *)
class weld::Container * pParent
CreatePageContainer()
dbaccess/source/ui/uno/copytablewizard.cxx:204
void dbaui::CopyTableWizard::impl_dialogToAttributes_nothrow(const class dbaui::OCopyTableWizard &)
const class dbaui::OCopyTableWizard & _rDialog
@@ -158,6 +162,10 @@ editeng/source/editeng/impedit3.cxx:155
void lcl_DrawRedLines(class OutputDevice *,long,const class Point &,unsigned long,unsigned long,const long *,const class WrongList *,short,const class Point &,_Bool,_Bool)
_Bool bVertical
IsVertical()
editeng/source/misc/svxacorr.cxx:2646
_Bool SvxAutocorrWordList::CompareSvxAutocorrWordList::operator()(const class SvxAutocorrWord &,const class SvxAutocorrWord &) const
const class SvxAutocorrWord & lhs
CompareSvxAutocorrWordList()
emfio/inc/mtftools.hxx:636
void emfio::MtfTools::ExcludeClipRect(const class tools::Rectangle &)
const class tools::Rectangle & rRect
@@ -166,11 +174,11 @@ extensions/source/abpilot/datasourcehandling.hxx:178
void abp::ODataSource::setDataSource(const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,const class rtl::OUString &,struct abp::PackageAccessControl)
struct abp::PackageAccessControl
PackageAccessControl()
extensions/source/dbpilots/controlwizard.hxx:114
extensions/source/dbpilots/controlwizard.hxx:110
_Bool dbp::OControlWizard::updateContext(const struct dbp::OAccessRegulator &)
const struct dbp::OAccessRegulator &
OAccessRegulator()
extensions/source/dbpilots/controlwizard.hxx:115
extensions/source/dbpilots/controlwizard.hxx:111
void dbp::OControlWizard::setFormConnection(const struct dbp::OAccessRegulator &,const class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> &,_Bool)
const struct dbp::OAccessRegulator &
OAccessRegulator()
@@ -214,19 +222,15 @@ extensions/source/propctrlr/usercontrol.hxx:146
void pcr::OTimeDurationControl::OTimeDurationControl(class vcl::Window *)
class vcl::Window * pParent
impl_getDefaultDialogParent_nothrow()
extensions/source/update/check/updateprotocol.hxx:31
_Bool checkForUpdates(struct UpdateInfo &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class com::sun::star::uno::Reference<class com::sun::star::task::XInteractionHandler> &,const class com::sun::star::uno::Reference<class com::sun::star::deployment::XUpdateInformationProvider> &)
const class com::sun::star::uno::Reference<class com::sun::star::deployment::XUpdateInformationProvider> & rxProvider
createProvider()
filter/source/flash/swfwriter.hxx:140
void swf::FlashFont::FlashFont(const class vcl::Font &,unsigned short)
unsigned short nId
createID()
forms/source/component/ListBox.cxx:1550
forms/source/component/ListBox.cxx:1549
class com::sun::star::uno::Any lcl_getSingleSelectedEntryAny(const class com::sun::star::uno::Sequence<short> &,const class std::__debug::vector<class connectivity::ORowSetValue, class std::allocator<class connectivity::ORowSetValue> > &)
const class std::__debug::vector<class connectivity::ORowSetValue, class std::allocator<class connectivity::ORowSetValue> > & _rStringList
impl_getValues()
forms/source/component/ListBox.cxx:1566
forms/source/component/ListBox.cxx:1565
class com::sun::star::uno::Sequence<class com::sun::star::uno::Any> lcl_getMultiSelectedEntriesAny(const class com::sun::star::uno::Sequence<short> &,const class std::__debug::vector<class connectivity::ORowSetValue, class std::allocator<class connectivity::ORowSetValue> > &)
const class std::__debug::vector<class connectivity::ORowSetValue, class std::allocator<class connectivity::ORowSetValue> > & _rStringList
impl_getValues()
@@ -250,19 +254,19 @@ include/comphelper/servicedecl.hxx:221
void comphelper::service_decl::detail::CreateFunc::CreateFunc<type-parameter-?-?, type-parameter-?-?, comphelper::service_decl::with_args<false> >(const type-parameter-?-? &)
const type-parameter-?-? & postProcessFunc
PostProcessDefaultT()
include/connectivity/dbtools.hxx:175
class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> getConnection_withFeedback(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &)
const class rtl::OUString & _rPwd
""
include/connectivity/dbtools.hxx:175
class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> getConnection_withFeedback(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &)
include/connectivity/dbtools.hxx:177
class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> getConnection_withFeedback(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class com::sun::star::uno::Reference<class com::sun::star::awt::XWindow> &)
const class rtl::OUString & _rUser
""
include/connectivity/dbtools.hxx:615
include/connectivity/dbtools.hxx:177
class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> getConnection_withFeedback(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class com::sun::star::uno::Reference<class com::sun::star::awt::XWindow> &)
const class rtl::OUString & _rPwd
""
include/connectivity/dbtools.hxx:619
class rtl::OUString createStandardCreateStatement(const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,const class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> &,class dbtools::ISQLStatementHelper *,const class rtl::OUString &)
const class rtl::OUString & _sCreatePattern
""
include/connectivity/dbtools.hxx:691
include/connectivity/dbtools.hxx:695
class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> createSDBCXColumn(const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,const class com::sun::star::uno::Reference<class com::sun::star::sdbc::XConnection> &,const class rtl::OUString &,_Bool,_Bool,_Bool,_Bool,int)
_Bool _bCase
isCaseSensitive()
@@ -310,7 +314,7 @@ include/editeng/scripttypeitem.hxx:36
const class SfxPoolItem * SvxScriptSetItem::GetItemOfScript(unsigned short,const class SfxItemSet &,enum SvtScriptType)
unsigned short nSlotId
Which()
include/editeng/svxacorr.hxx:45
include/editeng/svxacorr.hxx:46
_Bool CompareSvStringsISortDtor::operator()(const class rtl::OUString &,const class rtl::OUString &) const
const class rtl::OUString & lhs
Compare()
@@ -326,19 +330,19 @@ include/i18nlangtag/languagetagicu.hxx:49
class icu_63::Locale LanguageTagIcu::getIcuLocale(const class LanguageTag &,const class rtl::OUString &,const class rtl::OUString &)
const class rtl::OUString & rVariant
""
include/o3tl/sorted_vector.hxx:290
include/o3tl/sorted_vector.hxx:302
_Bool o3tl::less_ptr_to::operator()(type-parameter-?-? *const &,type-parameter-?-? *const &) const
type-parameter-?-? *const & lhs
Compare()
include/o3tl/sorted_vector.hxx:298
include/o3tl/sorted_vector.hxx:310
_Bool o3tl::less_uniqueptr_to::operator()(const unique_ptr<type-parameter-?-?, default_delete<type-parameter-?-?> > &,const unique_ptr<type-parameter-?-?, default_delete<type-parameter-?-?> > &) const
const unique_ptr<type-parameter-?-?, default_delete<type-parameter-?-?> > & lhs
Compare()
include/o3tl/sorted_vector.hxx:312
include/o3tl/sorted_vector.hxx:324
pair<typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_unique, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator, _Bool> o3tl::find_unique::operator()(typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_unique, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator,typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_unique, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator,const type-parameter-?-? &)
typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_unique, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator first
Find_t()
include/o3tl/sorted_vector.hxx:329
include/o3tl/sorted_vector.hxx:341
pair<typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_partialorder_ptrequals, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator, _Bool> o3tl::find_partialorder_ptrequals::operator()(typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_partialorder_ptrequals, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator,typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_partialorder_ptrequals, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator,const type-parameter-?-? &)
typename sorted_vector<type-parameter-?-?, type-parameter-?-?, find_partialorder_ptrequals, std::is_copy_constructible<type-parameter-?-?>::value>::const_iterator first
Find_t()
@@ -418,7 +422,7 @@ include/sfx2/dinfdlg.hxx:84
void SfxDocumentInfoItem::SfxDocumentInfoItem(const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::document::XDocumentProperties> &,const class com::sun::star::uno::Sequence<struct com::sun::star::document::CmisProperty> &,_Bool,_Bool)
_Bool bUseUserData
IsUseUserData()
include/sfx2/dinfdlg.hxx:391
include/sfx2/dinfdlg.hxx:389
void CustomPropertiesWindow::AddLine(const class rtl::OUString &,const class com::sun::star::uno::Any &)
const class rtl::OUString & sName
""
@@ -430,7 +434,7 @@ include/sfx2/docfile.hxx:276
_Bool SfxMedium::SignDocumentContentUsingCertificate(_Bool,const class com::sun::star::uno::Reference<class com::sun::star::security::XCertificate> &)
_Bool bHasValidDocumentSignature
HasValidSignatures()
include/sfx2/objsh.hxx:624
include/sfx2/objsh.hxx:629
void SfxObjectShell::DoDraw(class OutputDevice *,const class Point &,const class Size &,const class JobSetup &,unsigned short)
const class JobSetup & rSetup
JobSetup()
@@ -458,11 +462,15 @@ include/svx/charmap.hxx:150
void SvxShowCharSet::DrawChars_Impl(class OutputDevice &,int,int)
int n1
FirstInView()
include/svx/DescriptionGenerator.hxx:116
void accessibility::DescriptionGenerator::AddProperty(const class rtl::OUString &,enum accessibility::DescriptionGenerator::PropertyType,const char *)
const char * pResourceId
""
include/svx/svdtrans.hxx:62
void RotateXPoly(class XPolyPolygon &,const class Point &,double,double)
const class Point & rRef
Point()
include/vbahelper/vbahelper.hxx:122
include/vbahelper/vbahelper.hxx:120
class rtl::OUString extractStringFromAny(const class com::sun::star::uno::Any &,const class rtl::OUString &,_Bool)
const class rtl::OUString & rDefault
""
@@ -498,27 +506,27 @@ include/vcl/graphictools.hxx:278
void SvtGraphicFill::SvtGraphicFill(const class tools::PolyPolygon &,class Color,double,enum SvtGraphicFill::FillRule,enum SvtGraphicFill::FillType,const struct SvtGraphicFill::Transform &,_Bool,enum SvtGraphicFill::HatchType,class Color,enum SvtGraphicFill::GradientType,class Color,class Color,int,const class Graphic &)
class Color aFillColor
Color()
include/vcl/outdev.hxx:1562
include/vcl/outdev.hxx:1569
class Bitmap OutputDevice::GetDownsampledBitmap(const class Size &,const class Point &,const class Size &,const class Bitmap &,long,long)
const class Point & rSrcPt
Point()
include/vcl/print.hxx:644
include/vcl/print.hxx:647
class com::sun::star::uno::Any vcl::PrinterOptionsHelper::setSubgroupControlOpt(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const struct vcl::PrinterOptionsHelper::UIControlOptions &)
const class rtl::OUString & i_rHelpId
""
include/vcl/print.hxx:660
include/vcl/print.hxx:663
class com::sun::star::uno::Any vcl::PrinterOptionsHelper::setChoiceRadiosControlOpt(const class com::sun::star::uno::Sequence<class rtl::OUString> &,const class rtl::OUString &,const class com::sun::star::uno::Sequence<class rtl::OUString> &,const class rtl::OUString &,const class com::sun::star::uno::Sequence<class rtl::OUString> &,int,const class com::sun::star::uno::Sequence<unsigned char> &,const struct vcl::PrinterOptionsHelper::UIControlOptions &)
const class rtl::OUString & i_rTitle
""
include/vcl/print.hxx:671
include/vcl/print.hxx:674
class com::sun::star::uno::Any vcl::PrinterOptionsHelper::setRangeControlOpt(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,int,int,int,const struct vcl::PrinterOptionsHelper::UIControlOptions &)
const class rtl::OUString & i_rTitle
""
include/vcl/print.hxx:679
include/vcl/print.hxx:682
class com::sun::star::uno::Any vcl::PrinterOptionsHelper::setEditControlOpt(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const struct vcl::PrinterOptionsHelper::UIControlOptions &)
const class rtl::OUString & i_rTitle
""
include/vcl/toolbox.hxx:423
include/vcl/toolbox.hxx:413
void ToolBox::SetHelpText(unsigned short,const class rtl::OUString &)
const class rtl::OUString & rText
""
@@ -526,15 +534,15 @@ include/vcl/toolkit/unowrap.hxx:70
class com::sun::star::uno::Reference<class com::sun::star::accessibility::XAccessible> UnoWrapperBase::CreateAccessible(class Menu *,_Bool)
_Bool bIsMenuBar
IsMenuBar()
include/vcl/transfer.hxx:311
include/vcl/transfer.hxx:319
class com::sun::star::uno::Any TransferableDataHelper::GetAny(enum SotClipboardFormatId,const class rtl::OUString &) const
const class rtl::OUString & rDestDoc
""
include/vcl/transfer.hxx:349
include/vcl/transfer.hxx:357
class com::sun::star::uno::Sequence<signed char> TransferableDataHelper::GetSequence(enum SotClipboardFormatId,const class rtl::OUString &)
const class rtl::OUString & rDestDoc
""
include/vcl/treelistbox.hxx:729
include/vcl/treelistbox.hxx:716
void SvTreeListBox::ShowFocusRect(const class SvTreeListEntry *)
const class SvTreeListEntry * pEntry
FirstSelected()
@@ -542,7 +550,7 @@ include/vcl/virdev.hxx:157
_Bool VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer(const class Size &,const class Fraction &,const class Point &,unsigned char *)
const class Point & rNewOffset
Point()
include/vcl/weld.hxx:520
include/vcl/weld.hxx:597
void weld::ComboBox::append(const class rtl::OUString &,const class rtl::OUString &,class VirtualDevice &)
const class rtl::OUString & rId
""
@@ -614,15 +622,15 @@ opencl/source/opencl_device.cxx:430
void (anonymous namespace)::LogWriter::text(const class rtl::OString &)
const class rtl::OString & rText
""
opencl/source/openclwrapper.cxx:708
opencl/source/openclwrapper.cxx:707
struct _cl_device_id * findDeviceIdByDeviceString(const class rtl::OUString &,const class std::__debug::vector<struct OpenCLPlatformInfo, class std::allocator<struct OpenCLPlatformInfo> > &)
const class std::__debug::vector<struct OpenCLPlatformInfo, class std::allocator<struct OpenCLPlatformInfo> > & rPlatforms
fillOpenCLInfo()
reportdesign/source/ui/dlg/Condition.hxx:154
reportdesign/source/ui/dlg/Condition.hxx:130
void rptui::Condition::setConditionIndex(unsigned long,unsigned long)
unsigned long _nCondCount
impl_getConditionCount()
sal/qa/osl/file/osl_File.cxx:369
sal/qa/osl/file/osl_File.cxx:368
class rtl::OString outputError(const class rtl::OString &,const class rtl::OString &,const char *)
const char * msg
""
@@ -634,7 +642,7 @@ sc/qa/unit/helper/qahelper.hxx:197
class tools::SvRef<class ScDocShell> ScBootstrapFixture::saveAndReload(class ScDocShell *,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,enum SfxFilterFlags)
const class rtl::OUString & rUserData
""
sc/source/core/tool/token.cxx:4811
sc/source/core/tool/token.cxx:4815
void appendTokenByType(struct sc::TokenStringContext &,class rtl::OUStringBuffer &,const class formula::FormulaToken &,const class ScAddress &,_Bool)
_Bool bFromRangeName
IsFromRangeName()
@@ -658,7 +666,7 @@ sc/source/filter/inc/xechart.hxx:799
void XclExpChChart3d::Convert(const class ScfPropertySet &,_Bool)
_Bool b3dWallChart
Is3dWallChart()
sc/source/filter/inc/xestream.hxx:277
sc/source/filter/inc/xestream.hxx:283
void XclExpXmlStream::XclExpXmlStream(const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,_Bool,_Bool)
_Bool bExportTemplate
isExportTemplate()
@@ -690,11 +698,11 @@ sc/source/filter/oox/formulabuffer.cxx:299
void processSheetFormulaCells(class ScDocumentImport &,struct oox::xls::FormulaBuffer::SheetItem &,class SvNumberFormatter &,const class com::sun::star::uno::Sequence<struct com::sun::star::sheet::ExternalLinkInfo> &,_Bool)
_Bool bGeneratorKnownGood
isGeneratorKnownGood()
sc/source/ui/inc/AccessibleCsvControl.hxx:479
sc/source/ui/inc/AccessibleCsvControl.hxx:446
void ScAccessibleCsvCell::ScAccessibleCsvCell(class ScCsvGrid &,const class rtl::OUString &,int,int)
class ScCsvGrid & rGrid
implGetGrid()
sc/source/ui/vba/vbasheetobject.hxx:171
sc/source/ui/vba/vbasheetobject.hxx:175
void ScVbaButton::ScVbaButton(const class com::sun::star::uno::Reference<class ooo::vba::XHelperInterface> &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> &,const class com::sun::star::uno::Reference<class com::sun::star::container::XIndexContainer> &,const class com::sun::star::uno::Reference<class com::sun::star::drawing::XControlShape> &)
const class com::sun::star::uno::Reference<class com::sun::star::container::XIndexContainer> & rxFormIC
createForm()
@@ -706,11 +714,11 @@ sd/source/filter/eppt/eppt.hxx:177
unsigned int PPTWriter::ImplInsertBookmarkURL(const class rtl::OUString &,const unsigned int,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &)
const class rtl::OUString & rStringVer2
""
sd/source/filter/eppt/pptx-animations.cxx:553
sd/source/filter/eppt/pptx-animations.cxx:552
void (anonymous namespace)::NodeContext::initValid(_Bool,_Bool)
_Bool bHasValidChild
initChildNodes()
sd/source/filter/xml/sdxmlwrp.cxx:144
sd/source/filter/xml/sdxmlwrp.cxx:143
const struct XML_SERVICES * getServices(_Bool,_Bool,unsigned long)
_Bool bDraw
IsDraw()
@@ -806,11 +814,11 @@ svx/source/inc/xmlxtimp.hxx:43
_Bool SvxXMLXTableImport::load(const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::embed::XStorage> &,const class com::sun::star::uno::Reference<class com::sun::star::container::XNameContainer> &,_Bool *)
const class com::sun::star::uno::Reference<class com::sun::star::container::XNameContainer> & xTable
createInstance()
svx/source/svdraw/svdmodel.cxx:1892
svx/source/svdraw/svdmodel.cxx:1891
void addPair(class std::__debug::vector<struct std::pair<class rtl::OUString, class com::sun::star::uno::Any>, class std::allocator<struct std::pair<class rtl::OUString, class com::sun::star::uno::Any> > > &,const class rtl::OUString &,const type-parameter-?-?)
const type-parameter-?-? val
IsAnchoredTextOverflowLegacy()
sw/inc/doc.hxx:915
sw/inc/doc.hxx:917
const class SwTOXMark & SwDoc::GotoTOXMark(const class SwTOXMark &,enum SwTOXSearch,_Bool)
_Bool bInReadOnly
IsReadOnlyAvailable()
@@ -822,19 +830,19 @@ sw/inc/ndarr.hxx:74
_Bool CompareSwOutlineNodes::operator()(class SwNode *const &,class SwNode *const &) const
class SwNode *const & lhs
Compare()
sw/inc/shellio.hxx:163
sw/inc/shellio.hxx:164
void SwReader::SwReader(class SvStream &,const class rtl::OUString &,const class rtl::OUString &,class SwPaM &)
const class rtl::OUString & rFilename
""
sw/inc/shellio.hxx:165
sw/inc/shellio.hxx:166
void SwReader::SwReader(const class com::sun::star::uno::Reference<class com::sun::star::embed::XStorage> &,const class rtl::OUString &,class SwPaM &)
const class rtl::OUString & rFilename
""
sw/inc/shellio.hxx:460
sw/inc/shellio.hxx:459
class SvStream & Writer::OutLong(class SvStream &,long)
class SvStream & rStrm
Strm()
sw/inc/shellio.hxx:461
sw/inc/shellio.hxx:460
class SvStream & Writer::OutULong(class SvStream &,unsigned long)
class SvStream & rStrm
Strm()
@@ -842,7 +850,7 @@ sw/inc/tblsel.hxx:47
_Bool CompareSwSelBoxes::operator()(class SwTableBox *const &,class SwTableBox *const &) const
class SwTableBox *const & lhs
Compare()
sw/source/core/access/acctable.cxx:106
sw/source/core/access/acctable.cxx:101
void SwAccessibleTableData_Impl::SwAccessibleTableData_Impl(class SwAccessibleMap &,const class SwTabFrame *,_Bool,_Bool)
_Bool bIsInPagePreview
IsInPagePreview()
@@ -858,11 +866,11 @@ sw/source/core/inc/anchoredobjectposition.hxx:188
long objectpositioning::SwAnchoredObjectPosition::AdjustVertRelPos(const long,const _Bool,const _Bool,const class SwFrame &,const long,const _Bool,const _Bool) const
const _Bool bFollowTextFlow
DoesObjFollowsTextFlow()
sw/source/core/inc/layact.hxx:210
sw/source/core/inc/layact.hxx:201
void SwLayIdle::SwLayIdle(class SwRootFrame *,class SwViewShellImp *)
class SwViewShellImp * pImp
Imp()
sw/source/core/inc/swfont.hxx:74
sw/source/core/inc/swfont.hxx:77
void SwSubFont::DrawText_(class SwDrawTextInfo &,const _Bool)
const _Bool bGrey
IsGreyWave()
@@ -919,14 +927,14 @@ sw/source/filter/inc/wrtswtbl.hxx:203
const class std::unique_ptr<class SwWriteTableCol, struct std::default_delete<class SwWriteTableCol> > & lhs
Compare()
sw/source/filter/ww8/docxexport.hxx:274
void DocxExport::DocxExport(class DocxExportFilter *,class SwDoc *,class SwPaM *,class SwPaM *,_Bool,_Bool)
void DocxExport::DocxExport(class DocxExportFilter *,class SwDoc *,class std::shared_ptr<class SwUnoCursor> &,class SwPaM *,_Bool,_Bool)
_Bool bTemplate
isExportTemplate()
sw/source/filter/ww8/wrtww8.hxx:273
void WW8_WrPlcSepx::WriteSepx(class SvStream &) const
class SvStream & rStrm
Strm()
sw/source/filter/ww8/ww8scan.hxx:1532
sw/source/filter/ww8/ww8scan.hxx:1531
void WW8Fib::Write(class SvStream &)
class SvStream & rStrm
Strm()
@@ -942,15 +950,15 @@ sw/source/filter/xml/xmltexti.hxx:38
void SwXMLTextImportHelper::SwXMLTextImportHelper(const class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> &,class SvXMLImport &,const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,_Bool,_Bool,_Bool,_Bool)
_Bool bInsertM
IsInsertMode()
sw/source/filter/xml/xmltexti.hxx:38
void SwXMLTextImportHelper::SwXMLTextImportHelper(const class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> &,class SvXMLImport &,const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,_Bool,_Bool,_Bool,_Bool)
_Bool bStylesOnlyM
IsStylesOnlyMode()
sw/source/filter/xml/xmltexti.hxx:38
void SwXMLTextImportHelper::SwXMLTextImportHelper(const class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> &,class SvXMLImport &,const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,_Bool,_Bool,_Bool,_Bool)
_Bool bBlockM
IsBlockMode()
sw/source/ui/vba/vbadocuments.cxx:60
sw/source/filter/xml/xmltexti.hxx:38
void SwXMLTextImportHelper::SwXMLTextImportHelper(const class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> &,class SvXMLImport &,const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet> &,_Bool,_Bool,_Bool,_Bool)
_Bool bStylesOnlyM
IsStylesOnlyMode()
sw/source/ui/vba/vbadocuments.cxx:59
void DocumentEnumImpl::DocumentEnumImpl(const class com::sun::star::uno::Reference<class ooo::vba::XHelperInterface> &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class com::sun::star::uno::Reference<class com::sun::star::container::XEnumeration> &,const class com::sun::star::uno::Any &)
const class com::sun::star::uno::Any & aApplication
Application()
@@ -982,6 +990,10 @@ vcl/inc/WidgetDrawInterface.hxx:87
_Bool vcl::WidgetDrawInterface::getNativeControlRegion(enum ControlType,enum ControlPart,const class tools::Rectangle &,enum ControlState,const class ImplControlValue &,const class rtl::OUString &,class tools::Rectangle &,class tools::Rectangle &)
const class rtl::OUString & aCaption
""
vcl/qa/cppunit/svm/svmtest.cxx:43
class GDIMetaFile SvmTest::writeAndReadStream(class GDIMetaFile &,const class rtl::OUString &)
const class rtl::OUString & rName
""
vcl/source/control/field2.cxx:363
void ImplPatternProcessStrictModify(class Edit *,const class rtl::OString &,const class rtl::OUString &,_Bool)
_Bool bSameMask
@@ -1018,35 +1030,35 @@ vcl/source/control/field2.cxx:1889
_Bool ImplTimeProcessKeyInput(const class KeyEvent &,_Bool,_Bool,enum TimeFieldFormat,const class LocaleDataWrapper &)
_Bool bDuration
IsDuration()
vcl/source/control/field.cxx:955
_Bool ImplMetricProcessKeyInput(const class KeyEvent &,_Bool,const class LocaleDataWrapper &)
const class LocaleDataWrapper & rWrapper
ImplGetLocaleDataWrapper()
vcl/source/control/field.cxx:955
vcl/source/control/field.cxx:1031
_Bool ImplMetricProcessKeyInput(const class KeyEvent &,_Bool,const class LocaleDataWrapper &)
_Bool bUseThousandSep
IsUseThousandSep()
vcl/source/control/field.cxx:1732
vcl/source/control/field.cxx:1031
_Bool ImplMetricProcessKeyInput(const class KeyEvent &,_Bool,const class LocaleDataWrapper &)
const class LocaleDataWrapper & rWrapper
ImplGetLocaleDataWrapper()
vcl/source/control/field.cxx:1855
_Bool ImplCurrencyProcessKeyInput(const class KeyEvent &,_Bool,const class LocaleDataWrapper &)
const class LocaleDataWrapper & rWrapper
ImplGetLocaleDataWrapper()
vcl/source/control/field.cxx:1732
vcl/source/control/field.cxx:1855
_Bool ImplCurrencyProcessKeyInput(const class KeyEvent &,_Bool,const class LocaleDataWrapper &)
_Bool bUseThousandSep
IsUseThousandSep()
vcl/source/control/field.cxx:1739
vcl/source/control/field.cxx:1862
_Bool ImplCurrencyGetValue(const class rtl::OUString &,long &,unsigned short,const class LocaleDataWrapper &)
const class LocaleDataWrapper & rWrapper
ImplGetLocaleDataWrapper()
vcl/source/control/imivctl.hxx:405
vcl/source/control/imivctl.hxx:404
void SvxIconChoiceCtrl_Impl::SetColumn(unsigned short,const class SvxIconChoiceCtrlColumnInfo &)
const class SvxIconChoiceCtrlColumnInfo &
SvxIconChoiceCtrlColumnInfo()
vcl/source/edit/vclmedit.cxx:97
vcl/source/edit/vclmedit.cxx:98
void ImpVclMEdit::Enable(_Bool)
_Bool bEnable
IsEnabled()
writerfilter/source/rtftok/rtflookahead.hxx:32
writerfilter/source/rtftok/rtflookahead.hxx:31
void writerfilter::rtftok::RTFLookahead::RTFLookahead(class SvStream &,unsigned long)
class SvStream & rStream
Strm()
@@ -1054,15 +1066,15 @@ writerperfect/qa/unit/WpftLoader.hxx:71
void writerperfect::test::WpftLoader::WpftLoader(const class com::sun::star::uno::Reference<class com::sun::star::io::XInputStream> &,const class com::sun::star::uno::Reference<class com::sun::star::document::XFilter> &,const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::frame::XDesktop2> &,const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &)
const class com::sun::star::uno::Reference<class com::sun::star::io::XInputStream> & rxInputStream
createDummyInput()
xmlhelp/source/cxxhelp/provider/urlparameter.cxx:299
xmlhelp/source/cxxhelp/provider/urlparameter.cxx:290
void InputStreamTransformer::InputStreamTransformer(class chelp::URLParameter *,class chelp::Databases *,_Bool)
_Bool isRoot
isRoot()
xmlhelp/source/cxxhelp/provider/urlparameter.hxx:216
xmlhelp/source/cxxhelp/provider/urlparameter.hxx:215
_Bool chelp::URLParameter::name(_Bool)
_Bool modulePresent
module()
xmloff/source/style/XMLFontAutoStylePool.cxx:117
xmloff/source/style/XMLFontAutoStylePool.cxx:116
_Bool XMLFontAutoStylePoolEntryCmp_Impl::operator()(const class std::unique_ptr<class XMLFontAutoStylePoolEntry_Impl, struct std::default_delete<class XMLFontAutoStylePoolEntry_Impl> > &,const class std::unique_ptr<class XMLFontAutoStylePoolEntry_Impl, struct std::default_delete<class XMLFontAutoStylePoolEntry_Impl> > &) const
const class std::unique_ptr<class XMLFontAutoStylePoolEntry_Impl, struct std::default_delete<class XMLFontAutoStylePoolEntry_Impl> > & r1
Compare()
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -386,7 +386,7 @@ IMPL_LINK(SvxMenuConfigPage, InsertHdl, const OString&, rIdent, void)
{
SvxConfigEntry* pNewEntryData = new SvxConfigEntry;
pNewEntryData->SetUserDefined();
int nPos = InsertEntry(pNewEntryData, -1);
int nPos = AppendEntry(pNewEntryData, -1);
InsertEntryIntoUI(pNewEntryData, nPos, 0);
}
else if (rIdent == "insertsubmenu")
@@ -407,7 +407,7 @@ IMPL_LINK(SvxMenuConfigPage, InsertHdl, const OString&, rIdent, void)
pNewEntryData->SetName( aNewName );
pNewEntryData->SetUserDefined();
int nPos = InsertEntry(pNewEntryData, -1);
int nPos = AppendEntry(pNewEntryData, -1);
InsertEntryIntoUI(pNewEntryData, nPos, 0);
ReloadTopLevelListBox();
@@ -463,7 +463,7 @@ IMPL_LINK(SvxToolbarConfigPage, InsertHdl, const OString&, rIdent, void)
SvxConfigEntry* pNewEntryData = new SvxConfigEntry;
pNewEntryData->SetUserDefined();
int nPos = InsertEntry(pNewEntryData, -1);
int nPos = AppendEntry(pNewEntryData, -1);
InsertEntryIntoUI(pNewEntryData, nPos, 1);
static_cast<ToolbarSaveInData*>( GetSaveInData())->ApplyToolbar( pToolbar );
+4 -11
View File
@@ -1446,13 +1446,12 @@ int SvxConfigPage::AddFunction(int nTarget, bool bAllowDuplicates)
}
}
return InsertEntry(pNewEntryData, nTarget, /*bFront*/false);
return AppendEntry(pNewEntryData, nTarget);
}
int SvxConfigPage::InsertEntry(
int SvxConfigPage::AppendEntry(
SvxConfigEntry* pNewEntryData,
int nTarget,
bool bFront)
int nTarget)
{
SvxConfigEntry* pTopLevelSelection = GetTopLevelSelection();
@@ -1468,13 +1467,7 @@ int SvxConfigPage::InsertEntry(
OUString sId(OUString::number(reinterpret_cast<sal_Int64>(pNewEntryData)));
if (bFront)
{
pEntries->insert( pEntries->begin(), pNewEntryData );
m_xContentsListBox->insert(0, sId);
nNewEntry = 0;
}
else if (nCurEntry == -1 || nCurEntry == m_xContentsListBox->n_children() - 1)
if (nCurEntry == -1 || nCurEntry == m_xContentsListBox->n_children() - 1)
{
pEntries->push_back( pNewEntryData );
m_xContentsListBox->insert(-1, sId);
+14 -35
View File
@@ -101,7 +101,7 @@ namespace svx
const OUString& getSecondaryText() const { return m_sSecondaryText; }
public:
void Paint( vcl::RenderContext& _rDevice, const ::tools::Rectangle& _rRect, DrawTextFlags _nTextStyle,
void Paint( vcl::RenderContext& _rDevice, const ::tools::Rectangle& _rRect,
::tools::Rectangle* _pPrimaryLocation, ::tools::Rectangle* _pSecondaryLocation );
};
@@ -118,9 +118,14 @@ namespace svx
}
void PseudoRubyText::Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& _rRect, DrawTextFlags _nTextStyle,
void PseudoRubyText::Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& _rRect,
::tools::Rectangle* _pPrimaryLocation, ::tools::Rectangle* _pSecondaryLocation )
{
// calculate the text flags for the painting
constexpr DrawTextFlags nTextStyle = DrawTextFlags::Mnemonic |
DrawTextFlags::Left |
DrawTextFlags::VCenter;
Size aPlaygroundSize(_rRect.GetSize());
// the font for the secondary text:
@@ -129,11 +134,11 @@ namespace svx
aSmallerFont.SetFontHeight( static_cast<long>( 0.8 * aSmallerFont.GetFontHeight() ) );
// let's calculate the size of our two texts
::tools::Rectangle aPrimaryRect = rRenderContext.GetTextRect( _rRect, m_sPrimaryText, _nTextStyle );
::tools::Rectangle aPrimaryRect = rRenderContext.GetTextRect( _rRect, m_sPrimaryText, nTextStyle );
::tools::Rectangle aSecondaryRect;
{
FontSwitch aFontRestore(rRenderContext, aSmallerFont);
aSecondaryRect = rRenderContext.GetTextRect(_rRect, m_sSecondaryText, _nTextStyle);
aSecondaryRect = rRenderContext.GetTextRect(_rRect, m_sSecondaryText, nTextStyle);
}
// position these rectangles properly
@@ -145,36 +150,15 @@ namespace svx
aSecondaryRect.SetLeft( aPrimaryRect.Left() );
aPrimaryRect.SetRight( _rRect.Left() + nCombinedWidth );
aSecondaryRect.SetRight( aPrimaryRect.Right() );
if (DrawTextFlags::Right & _nTextStyle)
{
// move the rectangles to the right
aPrimaryRect.Move( aPlaygroundSize.Width() - nCombinedWidth, 0 );
aSecondaryRect.Move( aPlaygroundSize.Width() - nCombinedWidth, 0 );
}
else if (DrawTextFlags::Center & _nTextStyle)
{
// center the rectangles
aPrimaryRect.Move( ( aPlaygroundSize.Width() - nCombinedWidth ) / 2, 0 );
aSecondaryRect.Move( ( aPlaygroundSize.Width() - nCombinedWidth ) / 2, 0 );
}
// y-axis:
sal_Int32 nCombinedHeight = aPrimaryRect.GetHeight() + aSecondaryRect.GetHeight();
// align to the top, for the moment
aPrimaryRect.Move( 0, _rRect.Top() - aPrimaryRect.Top() );
aSecondaryRect.Move( 0, aPrimaryRect.Top() + aPrimaryRect.GetHeight() - aSecondaryRect.Top() );
if (DrawTextFlags::Bottom & _nTextStyle)
{
// move the rects to the bottom
aPrimaryRect.Move( 0, aPlaygroundSize.Height() - nCombinedHeight );
aSecondaryRect.Move( 0, aPlaygroundSize.Height() - nCombinedHeight );
}
else if (DrawTextFlags::VCenter & _nTextStyle)
{
// move the rects to the bottom
aPrimaryRect.Move( 0, ( aPlaygroundSize.Height() - nCombinedHeight ) / 2 );
aSecondaryRect.Move( 0, ( aPlaygroundSize.Height() - nCombinedHeight ) / 2 );
}
// move the rects to the bottom
aPrimaryRect.Move( 0, ( aPlaygroundSize.Height() - nCombinedHeight ) / 2 );
aSecondaryRect.Move( 0, ( aPlaygroundSize.Height() - nCombinedHeight ) / 2 );
// 'til here, everything we did assumes that the secondary text is painted _below_ the primary
// text. If this isn't the case, we need to correct the rectangles
@@ -188,7 +172,7 @@ namespace svx
// now draw the texts
// as we already calculated the precise rectangles for the texts, we don't want to
// use the alignment flags given - within it's rect, every text is centered
DrawTextFlags nDrawTextStyle( _nTextStyle );
DrawTextFlags nDrawTextStyle( nTextStyle );
nDrawTextStyle &= ~DrawTextFlags( DrawTextFlags::Right | DrawTextFlags::Left | DrawTextFlags::Bottom | DrawTextFlags::Top );
nDrawTextStyle |= DrawTextFlags::Center | DrawTextFlags::VCenter;
@@ -254,16 +238,11 @@ namespace svx
aTextRect.AdjustLeft( 1 ); aTextRect.AdjustRight( -1 );
aTextRect.AdjustTop( 1 ); aTextRect.AdjustBottom( -1 );
// calculate the text flags for the painting
constexpr DrawTextFlags nTextStyle = DrawTextFlags::Mnemonic |
DrawTextFlags::Left |
DrawTextFlags::VCenter;
// paint the ruby text
::tools::Rectangle aPrimaryTextLocation;
::tools::Rectangle aSecondaryTextLocation;
m_aRubyText.Paint(rRenderContext, aTextRect, nTextStyle, &aPrimaryTextLocation, &aSecondaryTextLocation);
m_aRubyText.Paint(rRenderContext, aTextRect, &aPrimaryTextLocation, &aSecondaryTextLocation);
}
Size RubyRadioButton::GetOptimalSize() const
+2 -3
View File
@@ -426,9 +426,8 @@ protected:
virtual void SelectElement() = 0;
int InsertEntry(SvxConfigEntry* pNewEntryData,
int nTarget,
bool bFront = false);
int AppendEntry(SvxConfigEntry* pNewEntryData,
int nTarget);
void AddSubMenusToUI( const OUString& rBaseTitle,
SvxConfigEntry const * pParentData );
@@ -186,15 +186,9 @@ namespace dbaui
return sURL;
}
OpenDocumentListBox::StringPair OpenDocumentListBox::impl_getDocumentAtIndex( sal_uInt16 _nListIndex, bool _bSystemNotation ) const
OpenDocumentListBox::StringPair OpenDocumentListBox::impl_getDocumentAtIndex( sal_uInt16 _nListIndex ) const
{
StringPair aDocumentDescriptor = m_aURLs[_nListIndex];
if ( _bSystemNotation && !aDocumentDescriptor.first.isEmpty() )
{
::svt::OFileNotation aNotation( aDocumentDescriptor.first );
aDocumentDescriptor.first = aNotation.get( ::svt::OFileNotation::N_SYSTEM );
}
return aDocumentDescriptor;
return m_aURLs[_nListIndex];
}
} // namespace dbaui
+1 -1
View File
@@ -73,7 +73,7 @@ namespace dbaui
void connect_changed(const Link<weld::ComboBox&, void>& rLink) { m_xControl->connect_changed(rLink); }
private:
StringPair impl_getDocumentAtIndex( sal_uInt16 _nListIndex, bool _bSystemNotation = false ) const;
StringPair impl_getDocumentAtIndex( sal_uInt16 _nListIndex ) const;
void impl_init( const sal_Char* _pAsciiModuleName );
};
+1 -20
View File
@@ -96,26 +96,7 @@ public:
method to use the property name instead.
*/
void AddProperty (const OUString& sPropertyName,
PropertyType aType,
const OUString& sLocalizedName=OUString());
/** Add the given property name and its associated value to the
description string. If the property value does not differ from the
default value of the shape's style then the description string is
not modified. This method forwards the request to its cousin but
first replaces the id of the localized name by the associated string
from the resource.
@param sPropertyName
The Name of the property to append.
@param aType
Type of the property's value. It controls the transformation
into the value's string representation.
@param pResourceId
Id of the localized name of the property int the resource.
*/
void AddProperty (const OUString& sPropertyName,
PropertyType aType,
const char* pResourceId);
PropertyType aType);
/** Append the given string as is to the current description.
@param sString
+1 -1
View File
@@ -57,7 +57,7 @@ public:
m_aSelectedLink = rLink;
}
void SetSlotId(sal_uInt16 nSlotId, bool bShowNoneButton = false);
void SetSlotId(sal_uInt16 nSlotId);
Color const & GetSelectEntryColor() const { return m_aSelectedColor.first; }
+1 -13
View File
@@ -109,11 +109,6 @@ public:
/** Fill with all known encodings but exclude those matching one or more
given flags as defined in rtl/tencinfo.h
<p> If nButIncludeInfoFlags is given, encodings are included even if they
match nExcludeInfoFlags. Thus it is possible to exclude 16/32-bit
Unicode with RTL_TEXTENCODING_INFO_UNICODE but to include UTF7 and UTF8
with RTL_TEXTENCODING_INFO_MIME </p>
@param bExcludeImportSubsets
If <TRUE/>, some specific encodings are not listed, as they are a
subset of another encoding. This is the case for
@@ -123,18 +118,11 @@ public:
<TRUE/> whenever the box is used in import dialogs. */
void FillFromTextEncodingTable(
bool bExcludeImportSubsets,
sal_uInt32 nExcludeInfoFlags = 0,
sal_uInt32 nButIncludeInfoFlags = 0
);
sal_uInt32 nExcludeInfoFlags = 0);
/** Fill with all encodings known to the dbtools::OCharsetMap but exclude
those matching one or more given flags as defined in rtl/tencinfo.h
<p> If nButIncludeInfoFlags is given, encodings are included even if they
match nExcludeInfoFlags. Thus it is possible to exclude 16/32-bit
Unicode with RTL_TEXTENCODING_INFO_UNICODE but to include UTF7 and UTF8
with RTL_TEXTENCODING_INFO_MIME </p>
@param bExcludeImportSubsets
If <TRUE/>, some specific encodings are not listed, as they are a
subset of another encoding. This is the case for
+1 -2
View File
@@ -321,8 +321,7 @@ public:
void ReplaceTransparency( const Color& rColor );
/** Get contours in image */
tools::Polygon GetContour( bool bContourEdgeDetect, bool bContourVert,
const tools::Rectangle* pWorkRect );
tools::Polygon GetContour( bool bContourEdgeDetect, const tools::Rectangle* pWorkRect );
/** Change various global color characteristics
+1 -1
View File
@@ -285,7 +285,7 @@ public:
const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const;
void RemoveAttribs( sal_uInt32 nPara );
void SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd, bool bIdleFormatAndUpdate = true );
void SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd );
TxtAlign GetTextAlign() const { return meAlign; }
void SetTextAlign( TxtAlign eAlign );
+2 -2
View File
@@ -74,13 +74,13 @@ namespace
const static sal_Int32 gnWidthCloseThreshold (70);
const static sal_Int32 gnWidthOpenThreshold (40);
std::string UnoNameFromDeckId(const OUString& rsDeckId, bool isDraw=false)
std::string UnoNameFromDeckId(const OUString& rsDeckId)
{
if (rsDeckId == "SdCustomAnimationDeck")
return ".uno:CustomAnimation";
if (rsDeckId == "PropertyDeck")
return isDraw ? ".uno:ModifyPage" : ".uno:Sidebar";
return ".uno:Sidebar";
if (rsDeckId == "SdLayoutsDeck")
return ".uno:ModifyPage";
@@ -334,8 +334,8 @@ OUString
if ( sDesc.isEmpty() )
{ // no -> use the default
aDG.Initialize (STR_ObjNameSingulUno);
aDG.AddProperty ("ControlBackground", DescriptionGenerator::PropertyType::Color, "");
aDG.AddProperty ( "ControlBorder", DescriptionGenerator::PropertyType::Integer, "");
aDG.AddProperty ("ControlBackground", DescriptionGenerator::PropertyType::Color);
aDG.AddProperty ( "ControlBorder", DescriptionGenerator::PropertyType::Integer);
}
// ensure that we are listening to the Name property
m_bListeningForDesc = ensureListeningState( m_bListeningForDesc, true, lcl_getDescPropertyName() );
@@ -121,22 +121,8 @@ OUString DescriptionGenerator::operator() ()
}
void DescriptionGenerator::AddProperty (
const OUString& sPropertyName,
PropertyType aType,
const char* pLocalizedNameId)
{
OUString sLocalizedName;
{
SolarMutexGuard aGuard;
sLocalizedName = SvxResId(pLocalizedNameId);
}
AddProperty (sPropertyName, aType, sLocalizedName);
}
void DescriptionGenerator::AddProperty (const OUString& sPropertyName,
PropertyType aType, const OUString& sLocalizedName)
PropertyType aType)
{
uno::Reference<beans::XPropertyState> xState (mxShape, uno::UNO_QUERY);
if (xState.is()
@@ -160,10 +146,10 @@ void DescriptionGenerator::AddProperty (const OUString& sPropertyName,
switch (aType)
{
case PropertyType::Color:
AddColor (sPropertyName, sLocalizedName);
AddColor (sPropertyName, "");
break;
case PropertyType::Integer:
AddInteger (sPropertyName, sLocalizedName);
AddInteger (sPropertyName, "");
break;
}
}
+1 -1
View File
@@ -163,7 +163,7 @@ tools::PolyPolygon SvxContourDlg::CreateAutoContour( const Graphic& rGraphic,
aBmp.SetPrefSize( rGraphic.GetPrefSize() );
aBmp.SetPrefMapMode( rGraphic.GetPrefMapMode() );
return tools::PolyPolygon( BitmapEx(aBmp).GetContour( bContourEdgeDetect, /*bContourVert*/false, pRect ) );
return tools::PolyPolygon( BitmapEx(aBmp).GetContour( bContourEdgeDetect, pRect ) );
}
// Loop through to super class, no virtual Methods to not become incompatible
+2 -3
View File
@@ -200,10 +200,9 @@ void SvxTextEncodingBox::FillFromTextEncodingTable(
}
void SvxTextEncodingTreeView::FillFromTextEncodingTable(
bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags,
sal_uInt32 nButIncludeInfoFlags )
bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags )
{
std::vector<int> aRet(::FillFromTextEncodingTable(bExcludeImportSubsets, nExcludeInfoFlags, nButIncludeInfoFlags));
std::vector<int> aRet(::FillFromTextEncodingTable(bExcludeImportSubsets, nExcludeInfoFlags, /*nButIncludeInfoFlags*/0));
m_xControl->freeze();
for (auto j : aRet)
{
+3 -3
View File
@@ -3867,12 +3867,12 @@ void ColorListBox::EnsurePaletteManager()
}
}
void SvxColorListBox::SetSlotId(sal_uInt16 nSlotId, bool bShowNoneButton)
void SvxColorListBox::SetSlotId(sal_uInt16 nSlotId)
{
m_nSlotId = nSlotId;
m_bShowNoneButton = bShowNoneButton;
m_bShowNoneButton = false;
m_xColorWindow.disposeAndClear();
m_aSelectedColor = bShowNoneButton ? GetNoneColor() : GetAutoColor(m_nSlotId);
m_aSelectedColor = GetAutoColor(m_nSlotId);
ShowPreview(m_aSelectedColor);
createColorWindow();
}
+1 -4
View File
@@ -187,10 +187,7 @@ class SW_DLLPUBLIC SwModify: public SwClient
SwModify &operator =(const SwModify&) = delete;
public:
SwModify()
: SwClient(nullptr), m_pWriterListeners(nullptr), m_bModifyLocked(false), m_bLockClientList(false), m_bInCache(false), m_bInSwFntCache(false)
{}
explicit SwModify( SwModify* pToRegisterIn )
: SwClient(pToRegisterIn), m_pWriterListeners(nullptr), m_bModifyLocked(false), m_bLockClientList(false), m_bInCache(false), m_bInSwFntCache(false)
: SwClient(), m_pWriterListeners(nullptr), m_bModifyLocked(false), m_bLockClientList(false), m_bInCache(false), m_bInSwFntCache(false)
{}
// broadcasting: send notifications to all clients
+2 -2
View File
@@ -2894,7 +2894,7 @@ void SwCursorShell::ParkCursor( const SwNodeIndex &rIdx )
*/
SwCursorShell::SwCursorShell( SwCursorShell& rShell, vcl::Window *pInitWin )
: SwViewShell( rShell, pInitWin )
, SwModify( nullptr )
, SwModify()
, m_pStackCursor( nullptr )
, m_pBlockCursor( nullptr )
, m_pTableCursor( nullptr )
@@ -2930,7 +2930,7 @@ SwCursorShell::SwCursorShell( SwCursorShell& rShell, vcl::Window *pInitWin )
SwCursorShell::SwCursorShell( SwDoc& rDoc, vcl::Window *pInitWin,
const SwViewOption *pInitOpt )
: SwViewShell( rDoc, pInitWin, pInitOpt )
, SwModify( nullptr )
, SwModify()
, m_pStackCursor( nullptr )
, m_pBlockCursor( nullptr )
, m_pTableCursor( nullptr )
@@ -1764,7 +1764,7 @@ DocumentContentOperationsManager::CopyRange( SwPaM& rPam, SwPosition& rPos, cons
if( pDoc != &m_rDoc )
{ // ordinary copy
bRet = CopyImpl( rPam, rPos, true, bCopyAll, pRedlineRange );
bRet = CopyImpl( rPam, rPos, bCopyAll, pRedlineRange );
}
else if( ! ( *pStt <= rPos && rPos < *pEnd &&
( pStt->nNode != pEnd->nNode ||
@@ -1772,7 +1772,7 @@ DocumentContentOperationsManager::CopyRange( SwPaM& rPam, SwPosition& rPos, cons
{
// Copy to a position outside of the area, or copy a single TextNode
// Do an ordinary copy
bRet = CopyImpl( rPam, rPos, true, bCopyAll, pRedlineRange );
bRet = CopyImpl( rPam, rPos, bCopyAll, pRedlineRange );
}
else
{
@@ -4319,7 +4319,7 @@ static void lcl_PopNumruleState(
}
bool DocumentContentOperationsManager::CopyImpl( SwPaM& rPam, SwPosition& rPos,
const bool bMakeNewFrames, const bool bCopyAll,
const bool bCopyAll,
SwPaM *const pCpyRange ) const
{
SwDoc* pDoc = rPos.nNode.GetNode().GetDoc();
@@ -4653,13 +4653,13 @@ bool DocumentContentOperationsManager::CopyImpl( SwPaM& rPam, SwPosition& rPos,
SwNodeIndex aSaveIdx( aInsPos, -1 );
assert(pStt->nNode != pEnd->nNode);
pEnd->nContent = 0; // TODO why this?
CopyWithFlyInFly( aRg, aInsPos, &tmp, bMakeNewFrames, false );
CopyWithFlyInFly( aRg, aInsPos, &tmp, /*bMakeNewFrames*/true, false );
++aSaveIdx;
pEnd->nNode = aSaveIdx;
pEnd->nContent.Assign( aSaveIdx.GetNode().GetTextNode(), 0 );
}
else
CopyWithFlyInFly( aRg, aInsPos, &tmp, bMakeNewFrames, false );
CopyWithFlyInFly( aRg, aInsPos, &tmp, /*bMakeNewFrames*/true, false );
bCopyBookmarks = false;
}
+1 -1
View File
@@ -546,7 +546,7 @@ void SwDoc::SetDefault( const SfxItemSet& rSet )
if( !rSet.Count() )
return;
SwModify aCallMod( nullptr );
SwModify aCallMod;
SwAttrSet aOld( GetAttrPool(), rSet.GetRanges() ),
aNew( GetAttrPool(), rSet.GetRanges() );
SfxItemIter aIter( rSet );
+1 -1
View File
@@ -135,7 +135,7 @@ OUString SwFieldType::GetTypeStr(SwFieldTypesEnum nTypeId)
// each field references a field type that is unique for each document
SwFieldType::SwFieldType( SwFieldIds nWhichId )
: SwModify(nullptr)
: SwModify()
, m_nWhich(nWhichId)
{
}
@@ -168,8 +168,7 @@ private:
SwFrameFormat* );
/* Copy a range within the same or to another document.
Position may not lie within range! */
bool CopyImpl( SwPaM&, SwPosition&, const bool MakeNewFrames /*= true */,
const bool bCopyAll, SwPaM *const pCpyRng /*= 0*/ ) const;
bool CopyImpl( SwPaM&, SwPosition&, bool bCopyAll, SwPaM *const pCpyRng /*= 0*/ ) const;
DocumentContentOperationsManager(DocumentContentOperationsManager const&) = delete;
DocumentContentOperationsManager& operator=(DocumentContentOperationsManager const&) = delete;
+2 -2
View File
@@ -43,7 +43,7 @@
#include <hints.hxx>
SwPageDesc::SwPageDesc(const OUString& rName, SwFrameFormat *pFormat, SwDoc *const pDoc)
: SwModify(nullptr)
: SwModify()
, m_StyleName( rName )
, m_Master( pDoc->GetAttrPool(), rName, pFormat )
, m_Left( pDoc->GetAttrPool(), rName, pFormat )
@@ -63,7 +63,7 @@ SwPageDesc::SwPageDesc(const OUString& rName, SwFrameFormat *pFormat, SwDoc *con
}
SwPageDesc::SwPageDesc( const SwPageDesc &rCpy )
: SwModify(nullptr)
: SwModify()
, BroadcasterMixin()
, m_StyleName( rCpy.GetName() )
, m_NumType( rCpy.GetNumType() )
+1 -1
View File
@@ -120,7 +120,7 @@ namespace {
SwFormatFootnote::SwFormatFootnote( bool bEndNote )
: SfxPoolItem( RES_TXTATR_FTN )
, SwModify(nullptr)
, SwModify()
, m_pTextAttr(nullptr)
, m_nNumber(0)
, m_nNumberRLHidden(0)
+2 -2
View File
@@ -30,7 +30,7 @@ SwFormatRefMark::~SwFormatRefMark( )
SwFormatRefMark::SwFormatRefMark( const OUString& rName )
: SfxPoolItem(RES_TXTATR_REFMARK)
, SwModify(nullptr)
, SwModify()
, m_pTextAttr(nullptr)
, m_aRefName(rName)
{
@@ -38,7 +38,7 @@ SwFormatRefMark::SwFormatRefMark( const OUString& rName )
SwFormatRefMark::SwFormatRefMark( const SwFormatRefMark& rAttr )
: SfxPoolItem(RES_TXTATR_REFMARK)
, SwModify(nullptr)
, SwModify()
, BroadcasterMixin()
, m_pTextAttr(nullptr)
, m_aRefName(rAttr.m_aRefName)
+2 -4
View File
@@ -6160,8 +6160,7 @@ bool SwEditWin::ShowAutoText(const std::vector<OUString>& rChunkCandidates)
}
void SwEditWin::ShowAutoCorrectQuickHelp(
const OUString& rWord, SvxAutoCorrect& rACorr,
bool bFromIME )
const OUString& rWord, SvxAutoCorrect& rACorr )
{
if (rWord.isEmpty())
return;
@@ -6172,8 +6171,7 @@ void SwEditWin::ShowAutoCorrectQuickHelp(
rACorr.GetSwFlags().bAutoCompleteWords )
{
m_pQuickHlpData->m_bIsAutoText = false;
m_pQuickHlpData->m_bIsTip = bFromIME ||
rACorr.GetSwFlags().bAutoCmpltShowAsTip;
m_pQuickHlpData->m_bIsTip = rACorr.GetSwFlags().bAutoCmpltShowAsTip;
// Get the necessary data to show help text.
m_pQuickHlpData->FillStrArr( rSh, rWord );
+1 -2
View File
@@ -189,8 +189,7 @@ class SW_DLLPUBLIC SwEditWin final : public vcl::Window,
virtual OUString GetSurroundingText() const override;
virtual Selection GetSurroundingTextSelection() const override;
void ShowAutoCorrectQuickHelp(const OUString& rWord, SvxAutoCorrect& rACorr,
bool bFromIME = false);
void ShowAutoCorrectQuickHelp(const OUString& rWord, SvxAutoCorrect& rACorr);
bool ShowAutoText(const std::vector<OUString>& rChunkCandidates);
/// Returns true if in header/footer area, or in the header/footer control.
+2 -5
View File
@@ -2457,7 +2457,7 @@ void TextEngine::RemoveAttribs( sal_uInt32 nPara )
}
}
void TextEngine::SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd, bool bIdleFormatAndUpdate )
void TextEngine::SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd )
{
// For now do not check if Attributes overlap!
@@ -2480,10 +2480,7 @@ void TextEngine::SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32
pTEParaPortion->MarkSelectionInvalid( nStart );
mbFormatted = false;
if ( bIdleFormatAndUpdate )
IdleFormatAndUpdate( nullptr, 0xFFFF );
else
FormatAndUpdate();
IdleFormatAndUpdate( nullptr, 0xFFFF );
}
}
+22 -65
View File
@@ -1441,7 +1441,7 @@ static Bitmap DetectEdges( const Bitmap& rBmp )
}
/** Get contours in image */
tools::Polygon BitmapEx::GetContour( bool bContourEdgeDetect, bool bContourVert,
tools::Polygon BitmapEx::GetContour( bool bContourEdgeDetect,
const tools::Rectangle* pWorkRectPixel )
{
Bitmap aWorkBmp;
@@ -1476,88 +1476,45 @@ tools::Polygon BitmapEx::GetContour( bool bContourEdgeDetect, bool bContourVert
const long nStartX2 = nEndX1 - 1;
const long nStartY1 = aWorkRect.Top() + 1;
const long nEndY1 = aWorkRect.Bottom();
const long nStartY2 = nEndY1 - 1;
std::unique_ptr<Point[]> pPoints1;
std::unique_ptr<Point[]> pPoints2;
long nX, nY;
sal_uInt16 nPolyPos = 0;
const BitmapColor aBlack = pAcc->GetBestMatchingColor( COL_BLACK );
if( bContourVert )
pPoints1.reset(new Point[ nHeight ]);
pPoints2.reset(new Point[ nHeight ]);
for ( nY = nStartY1; nY < nEndY1; nY++ )
{
pPoints1.reset(new Point[ nWidth ]);
pPoints2.reset(new Point[ nWidth ]);
nX = nStartX1;
Scanline pScanline = pAcc->GetScanline( nY );
for( nX = nStartX1; nX < nEndX1; nX++ )
// scan row from left to right
while( nX < nEndX1 )
{
nY = nStartY1;
// scan row from left to right
while( nY < nEndY1 )
if( aBlack == pAcc->GetPixelFromData( pScanline, nX ) )
{
Scanline pScanline = pAcc->GetScanline( nY );
if( aBlack == pAcc->GetPixelFromData( pScanline, nX ) )
pPoints1[ nPolyPos ] = Point( nX, nY );
nX = nStartX2;
// this loop always breaks eventually as there is at least one pixel
while( true )
{
pPoints1[ nPolyPos ] = Point( nX, nY );
nY = nStartY2;
// this loop always breaks eventually as there is at least one pixel
while( true )
if( aBlack == pAcc->GetPixelFromData( pScanline, nX ) )
{
// coverity[copy_paste_error : FALSE] - this is correct nX, not nY
if( aBlack == pAcc->GetPixelFromData( pScanline, nX ) )
{
pPoints2[ nPolyPos ] = Point( nX, nY );
break;
}
nY--;
pPoints2[ nPolyPos ] = Point( nX, nY );
break;
}
nPolyPos++;
break;
nX--;
}
nY++;
nPolyPos++;
break;
}
}
}
else
{
pPoints1.reset(new Point[ nHeight ]);
pPoints2.reset(new Point[ nHeight ]);
for ( nY = nStartY1; nY < nEndY1; nY++ )
{
nX = nStartX1;
Scanline pScanline = pAcc->GetScanline( nY );
// scan row from left to right
while( nX < nEndX1 )
{
if( aBlack == pAcc->GetPixelFromData( pScanline, nX ) )
{
pPoints1[ nPolyPos ] = Point( nX, nY );
nX = nStartX2;
// this loop always breaks eventually as there is at least one pixel
while( true )
{
if( aBlack == pAcc->GetPixelFromData( pScanline, nX ) )
{
pPoints2[ nPolyPos ] = Point( nX, nY );
break;
}
nX--;
}
nPolyPos++;
break;
}
nX++;
}
nX++;
}
}