LibreOffice Module svx (master)
1
|
#include <sal/config.h>
#include <officecfg/Office/Common.hxx>
#include <svtools/colorcfg.hxx>
#include <svx/svdetc.hxx>
#include <svx/svdedxv.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdoutl.hxx>
#include <vcl/BitmapReadAccess.hxx>
#include <editeng/eeitem.hxx>
#include <svl/itemset.hxx>
#include <svl/whiter.hxx>
#include <svx/xgrad.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/xflgrit.hxx>
#include <svx/svdoole2.hxx>
#include <svl/itempool.hxx>
#include <tools/debug.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/syslocale.hxx>
#include <svx/xflbckit.hxx>
#include <svx/extrusionbar.hxx>
#include <svx/fontworkbar.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <svx/sdr/contact/viewcontact.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svdotable.hxx>
#include <svx/sdrhittesthelper.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
Go to the source code of this file.
Functions | |
SdrGlobalData & | GetSdrGlobalData () |
IMPL_LINK_NOARG (OLEObjCache, UnloadCheckHdl, Timer *, void) | |
bool | GetDraftFillColor (const SfxItemSet &rSet, Color &rCol) |
Returns a replacement for an XFillStyle. More... | |
std::unique_ptr< SdrOutliner > | SdrMakeOutliner (OutlinerMode nOutlinerMode, SdrModel &rModel) |
Create an Outliner with the engine-global default settings on the heap. More... | |
std::vector< Link< SdrObjCreatorParams, SdrObject * > > & | ImpGetUserMakeObjHdl () |
bool | SearchOutlinerItems (const SfxItemSet &rSet, bool bInklDefaults, bool *pbOnlyEE) |
Search an ItemSet for Outliner/EditEngine Items. More... | |
std::unique_ptr< sal_uInt16[]> | RemoveWhichRange (const sal_uInt16 *pOldWhichTable, sal_uInt16 nRangeBeg, sal_uInt16 nRangeEnd) |
Color | GetTextEditBackgroundColor (const SdrObjEditView &rView) |
bool GetDraftFillColor | ( | const SfxItemSet & | rSet, |
Color & | rCol | ||
) |
Returns a replacement for an XFillStyle.
Definition at line 236 of file svdetc.cxx.
References basegfx::average(), COL_WHITE, SfxItemSet::Get(), BitmapReadAccess::GetColor(), XGradient::GetEndColor(), XGradient::GetStartColor(), nCount, Size::Width(), XATTR_FILLBACKGROUND(), XATTR_FILLBITMAP(), XATTR_FILLCOLOR(), XATTR_FILLGRADIENT(), XATTR_FILLHATCH(), and XATTR_FILLSTYLE().
Referenced by SdrPage::GetPageBackgroundColor(), GetTextEditBackgroundColor(), and SdrObject::setSuitableOutlinerBg().
SdrGlobalData& GetSdrGlobalData | ( | ) |
Definition at line 91 of file svdetc.cxx.
Referenced by SdrOle2Obj::Connect_Impl(), SdrOle2Obj::Disconnect_Impl(), SdrOle2Obj::GetObjRef_Impl(), and ImpGetUserMakeObjHdl().
Color GetTextEditBackgroundColor | ( | const SdrObjEditView & | rView | ) |
Definition at line 703 of file svdetc.cxx.
References svtools::DOCCOLOR, sdr::table::SdrTableObj::GetActiveCellItemSet(), svtools::ColorConfig::GetColorValue(), GetDraftFillColor(), SdrObject::GetMergedItemSet(), SdrPageView::GetPage(), Application::GetSettings(), SdrAttrObj::GetSnapRect(), AllSettings::GetStyleSettings(), SdrObjEditView::GetTextEditObject(), SdrTextObj::GetTextEditOffset(), SdrObjEditView::GetTextEditPageView(), SdrObject::IsClosedObj(), tools::Rectangle::Move(), svtools::ColorConfigValue::nColor, and Point.
Referenced by SdrObjEditView::ImpMakeOutlinerView(), and SdrObjEditView::ModelHasChanged().
std::vector<Link<SdrObjCreatorParams, SdrObject*> >& ImpGetUserMakeObjHdl | ( | ) |
Definition at line 342 of file svdetc.cxx.
References SdrGlobalData::aUserMakeObjHdl, and GetSdrGlobalData().
Referenced by SdrObjFactory::CreateObjectFromFactory(), SdrObjFactory::InsertMakeObjectHdl(), and SdrObjFactory::RemoveMakeObjectHdl().
IMPL_LINK_NOARG | ( | OLEObjCache | , |
UnloadCheckHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 112 of file svdetc.cxx.
References SdrOle2Obj::CanUnloadRunningObj(), SdrOle2Obj::GetAspect(), SdrOle2Obj::GetObjRef_NoInit(), and nIndex.
std::unique_ptr<sal_uInt16[]> RemoveWhichRange | ( | const sal_uInt16 * | pOldWhichTable, |
sal_uInt16 | nRangeBeg, | ||
sal_uInt16 | nRangeEnd | ||
) |
Definition at line 371 of file svdetc.cxx.
References DBG_ASSERT, and nCount.
Referenced by SdrObjEditView::SetAttributes().
std::unique_ptr<SdrOutliner> SdrMakeOutliner | ( | OutlinerMode | nOutlinerMode, |
SdrModel & | rMod | ||
) |
Create an Outliner with the engine-global default settings on the heap.
If pMod != nullptr, the MapMode of the passed model is used. The resulting default font height, however, stays the same (the logical font height is converted).
Definition at line 328 of file svdetc.cxx.
References SdrModel::GetCharCompressType(), SdrModel::GetDefaultTabulator(), SdrModel::GetForbiddenCharsTable(), SdrModel::GetItemPool(), SdrModel::GetStyleSheetPool(), SdrModel::IsAddExtLeading(), SdrModel::IsKernAsianPunctuation(), and Outliner::SetForbiddenCharsTable().
Referenced by SdrOutlinerCache::createOutliner(), sdr::table::SvxTableController::EditCell(), SdrText::ForceOutlinerParaObject(), sdr::properties::TextProperties::ForceStyleToHardAttributes(), SdrModel::ImpCtor(), and SdrObjEditView::SdrBeginTextEdit().
bool SearchOutlinerItems | ( | const SfxItemSet & | rSet, |
bool | bInklDefaults, | ||
bool * | pbOnlyEE = nullptr |
||
) |
Search an ItemSet for Outliner/EditEngine Items.
Definition at line 348 of file svdetc.cxx.
References EE_ITEMS_END(), SfxWhichIter::FirstWhich(), SfxItemSet::GetItemState(), and SfxWhichIter::NextWhich().
Referenced by SdrObjEditView::SetAttributes(), and SdrEditView::SetAttrToMarked().