summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-06-15 20:18:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-17 08:36:31 +0200
commita98ac7220a92c1dfee9a2a490d764094050ffb91 (patch)
tree4c7345cdfb7beeff4e44f02dbaacd8627c0c0040 /svx
parent2404a17e157273430d40ceaa1ab1275e7b50ba6e (diff)
TransferableObjectDescriptor::mnOle2Misc field is unused
which means that SfxObjectShell::GetMiscStatus becomes unused Change-Id: I5c89a2cd5c77c7f08a57fdac08237aab514fc7fa Reviewed-on: https://gerrit.libreoffice.org/38843 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoole2.cxx43
1 files changed, 0 insertions, 43 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 772afa3d0f5b..c7d5e354fbfd 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -999,22 +999,6 @@ void SdrOle2Obj::Connect_Impl()
<< comphelper::anyToString( cppu::getCaughtException() ) );
}
}
-
- //TODO/LATER: wait for definition of MiscStatus RESIZEONPRINTERCHANGE
- //if ( xObjRef.is() && (*ppObjRef)->GetMiscStatus() & SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE )
- {
- //TODO/LATER: needs a new handling for OnPrinterChanged
- /*
- if (pModel && pModel->GetRefDevice() &&
- pModel->GetRefDevice()->GetOutDevType() == OUTDEV_PRINTER)
- {
- // no RefDevice or RefDevice is not a printer
- bool bModified = (*ppObjRef)->IsModified();
- Printer* pPrinter = (Printer*) pModel->GetRefDevice();
- (*ppObjRef)->OnDocumentPrinterChanged( pPrinter );
- (*ppObjRef)->SetModified( bModified );
- }*/
- }
}
void SdrOle2Obj::ObjectLoaded()
@@ -1853,33 +1837,6 @@ void SdrOle2Obj::GetObjRef_Impl()
pModel->SetChanged( false );
}
}
-
- sal_Int64 nMiscStatus = mpImpl->mxObjRef->getStatus( GetAspect() );
- (void)nMiscStatus;
- //TODO/LATER: wait until ResizeOnPrinterChange is defined
- //if ( nMiscStatus & SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE )
- {
- if (pModel && pModel->GetRefDevice() &&
- pModel->GetRefDevice()->GetOutDevType() == OUTDEV_PRINTER)
- {
- if (!mpImpl->mbInDestruction)
- {
- //TODO/LATER: printerchange notification
- /*
- // prevent SetModified (don't want no update here)
- bool bWasEnabled = (*ppObjRef)->IsEnableSetModified();
- if ( bWasEnabled )
- (*ppObjRef)->EnableSetModified( false );
-
- // no RefDevice or RefDevice is not a printer
- Printer* pPrinter = (Printer*) pModel->GetRefDevice();
- (*ppObjRef)->OnDocumentPrinterChanged( pPrinter );
-
- // reset state
- (*ppObjRef)->EnableSetModified( bWasEnabled );*/
- }
- }
- }
}
if ( mpImpl->mxObjRef.is() )