remove unused enumerators from PrinterCapType
Change-Id: Id4f788dfae64e7a9bcde16af2db2ddeafaf6900e Reviewed-on: https://gerrit.libreoffice.org/34468 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -117,6 +117,7 @@ def is_ignore(srcLoc):
|
||||
"basic/source/inc/filefmt.hxx", # FileOffset
|
||||
"basic/source/inc/opcodes.hxx", # SbiOpcode
|
||||
"sc/source/filter/inc/flttypes.hxx", # BiffTyp
|
||||
"sc/inc/optutil.hxx", # ScOptionsUtil::KeyBindingType
|
||||
# unit test code
|
||||
"cppu/source/uno/check.cxx",
|
||||
# general weird nonsense going on
|
||||
@@ -148,6 +149,8 @@ def is_ignore(srcLoc):
|
||||
"basic/source/sbx/sbxres.hxx", # StringId
|
||||
"sc/source/core/tool/chartpos.cxx", # CellState
|
||||
"sc/source/core/data/global2.cxx", # State
|
||||
"sc/inc/global.hxx", # ScAggregateFunc
|
||||
"registry/source/reflcnst.hxx", #CPInfoTag
|
||||
# Windows or OSX only
|
||||
"include/canvas/rendering/icolorbuffer.hxx",
|
||||
"include/vcl/commandevent.hxx",
|
||||
@@ -157,6 +160,7 @@ def is_ignore(srcLoc):
|
||||
"include/vcl/salbtype.hxx",
|
||||
"include/vcl/commandevent.hxx", # CommandEvent, MediaCommand, ShowDialogId
|
||||
"include/canvas/rendering/irendermodule.hxx", # canvas::IRenderModule::PrimitiveType
|
||||
"sal/osl/unx/file.cxx", # FileHandle_Impl::Kind
|
||||
# must match some other enum
|
||||
"include/editeng/bulletitem.hxx",
|
||||
"include/editeng/svxenum.hxx",
|
||||
|
@@ -75,13 +75,11 @@ enum class PrinterCapType
|
||||
Copies = 2,
|
||||
CollateCopies = 3,
|
||||
SetOrientation = 4,
|
||||
SetPaperBin = 5,
|
||||
SetPaperSize = 6,
|
||||
SetPaper = 7,
|
||||
Fax = 8,
|
||||
PDF = 9,
|
||||
ExternalDialog = 10,
|
||||
SetDuplex = 11,
|
||||
UsePullModel = 12,
|
||||
};
|
||||
|
||||
|
@@ -281,10 +281,6 @@ sal_uInt32 AquaSalInfoPrinter::GetCapabilities( const ImplJobSetup*, PrinterCapT
|
||||
return 0xffff;
|
||||
case PrinterCapType::SetOrientation:
|
||||
return 1;
|
||||
case PrinterCapType::SetDuplex:
|
||||
return 0;
|
||||
case PrinterCapType::SetPaperBin:
|
||||
return 0;
|
||||
case PrinterCapType::SetPaperSize:
|
||||
return 1;
|
||||
case PrinterCapType::SetPaper:
|
||||
|
@@ -791,10 +791,6 @@ sal_uInt32 PspSalInfoPrinter::GetCapabilities( const ImplJobSetup* pJobSetup, Pr
|
||||
}
|
||||
case PrinterCapType::SetOrientation:
|
||||
return 1;
|
||||
case PrinterCapType::SetDuplex:
|
||||
return 1;
|
||||
case PrinterCapType::SetPaperBin:
|
||||
return 1;
|
||||
case PrinterCapType::SetPaperSize:
|
||||
return 1;
|
||||
case PrinterCapType::SetPaper:
|
||||
|
@@ -1241,12 +1241,6 @@ sal_uInt32 WinSalInfoPrinter::GetCapabilities( const ImplJobSetup* pSetupData, P
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
|
||||
case PrinterCapType::SetPaperBin:
|
||||
nRet = ImplDeviceCaps( this, DC_BINS, nullptr, pSetupData );
|
||||
if ( nRet && (nRet != GDI_ERROR) )
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
|
||||
case PrinterCapType::SetPaperSize:
|
||||
case PrinterCapType::SetPaper:
|
||||
nRet = ImplDeviceCaps( this, DC_PAPERS, nullptr, pSetupData );
|
||||
|
Reference in New Issue
Block a user