48#include <osl/diagnose.h> 
   60    , mnInvisibleHeaven(0)
 
   62    , mnInvisibleControls(0)
 
   79    SAL_INFO( 
"sw.doc", 
"before create DrawDocument" );
 
   92    sLayerNm = 
"Controls";
 
   94    mpDrawModel->GetLayerAdmin().SetControlLayerName(sLayerNm);
 
   98        sLayerNm = 
"InvisibleHell";
 
  101        sLayerNm = 
"InvisibleHeaven";
 
  104        sLayerNm = 
"InvisibleControls";
 
  110    SAL_INFO( 
"sw.doc", 
"after create DrawDocument" );
 
  114        SAL_INFO( 
"sw.doc", 
"before create Spellchecker/Hyphenator" );
 
  115        css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpell = 
::GetSpellChecker();
 
  116        rOutliner.SetSpeller( xSpell );
 
  117        css::uno::Reference< css::linguistic2::XHyphenator > xHyphenator( 
::GetHyphenator() );
 
  118        rOutliner.SetHyphenator( xHyphenator );
 
  119        SAL_INFO( 
"sw.doc", 
"after create Spellchecker/Hyphenator" );
 
  147            SdrPage* pDrawPage = pMasterPage.get();
 
  174    OSL_ENSURE( !
mpDrawModel, 
"MakeDrawModel_: Why?" );
 
  185            SfxHint aHint( SfxHintId::SwDrawViewsCreated );
 
  230    sLayerNm = 
"InvisibleHell";
 
  233    sLayerNm = 
"InvisibleHeaven";
 
  236    sLayerNm = 
"InvisibleControls";
 
  258        OSL_FAIL( 
"<SwDoc::IsVisibleLayerId(..)> - unknown layer ID." );
 
  273    else if ( _nVisibleLayerId == 
GetHellId() )
 
  285        OSL_FAIL( 
"<SwDoc::GetInvisibleLayerIdByVisibleOne(..)> - given layer ID already an invisible one." );
 
  286        nInvisibleLayerId = _nVisibleLayerId;
 
  290        OSL_FAIL( 
"<SwDoc::GetInvisibleLayerIdByVisibleOne(..)> - given layer ID is unknown." );
 
  291        nInvisibleLayerId = _nVisibleLayerId;
 
  294    return nInvisibleLayerId;
 
  304        const SwFrameFormat& rFrameFormat = rPosFlyFrame.GetFormat();
 
  318        rOutliner.SetText(*pParaObj);
 
  325        if (!rOutliner.HasText(rSearchItem))
 
virtual OutputDevice * getReferenceDevice(bool bCreate) const =0
Returns the current reference device.
 
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
 
virtual sfx2::LinkManager & GetLinkManager()=0
 
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
 
void SetSelection(const ESelection &)
 
sal_Int32 StartSearchAndReplace(const SvxSearchItem &rSearchItem)
 
SdrOutliner & GetDrawOutliner(const SdrTextObj *pObj=nullptr) const
 
const OutlinerView * GetTextEditOutlinerView() const
 
void SetLayerVisible(const OUString &rName, bool bShow)
 
virtual void SetSize(const Size &aSiz)
 
virtual OutlinerParaObject * GetOutlinerParaObject() const override
 
void SetPoolDefaultItem(const SfxPoolItem &)
 
const SwView * GetView() const
 
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
 
IDocumentDeviceAccess const & getIDocumentDeviceAccess() const
 
IDocumentLinksAdministration const & getIDocumentLinksAdministration() const
 
IDocumentUndoRedo & GetIDocumentUndoRedo()
 
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
 
IDocumentSettingAccess const & getIDocumentSettingAccess() const
 
SwPosFlyFrames GetAllFlyFormats(const SwPaM *, bool bDrawAlso, bool bAsCharAlso=false) const
Returns positions of all FlyFrames in the document.
 
void AddDrawUndo(std::unique_ptr< SdrUndoAction >)
 
const SwAttrPool & GetAttrPool() const
 
SwDocShell * GetDocShell()
 
void SetCalcFieldValueHdl(Outliner *pOutliner)
In the Outliner, set a link to the method for field display in edit objects.
 
bool SelectObj(const Point &rSelPt, sal_uInt8 nFlag=0, SdrObject *pObj=nullptr)
If an object has been given, exactly this object is selected (instead of searching over position).
 
const SwRect & getFrameArea() const
 
PaM is Point and Mark: a selection of the document model.
 
For querying current flys in document.
 
void SSize(const Size &rNew)
 
The root element of a Writer document layout.
 
const SdrPage * GetDrawPage() const
 
void SetDrawPage(SdrPage *pNew)
 
bool EnterShapeDrawTextMode(SdrObject *pObject)
Same as EnterDrawTextMode(), but takes an SdrObject instead of guessing it by document position.
 
Used by the UI to modify the document model.
 
SdrLayerID mnInvisibleControls
 
virtual const SwDrawModel * GetDrawModel() const override
Draw Model and id accessors.
 
virtual void NotifyInvisibleLayers(SdrPageView &_rSdrPageView) override
method to notify drawing page view about the invisible layers
 
std::unique_ptr< SwDrawModel > mpDrawModel
 
virtual SdrLayerID GetHeavenId() const override
 
virtual bool IsVisibleLayerId(SdrLayerID _nLayerId) const override
method to determine, if a layer ID belongs to the visible ones.
 
virtual bool Search(const SwPaM &rPaM, const SvxSearchItem &rSearchItem) override
Searches text in shapes anchored inside rPaM.
 
virtual SdrLayerID GetInvisibleHellId() const override
 
virtual SdrLayerID GetControlsId() const override
 
virtual SwDrawModel * GetOrCreateDrawModel() override
 
SdrLayerID mnHeaven
Draw Model Layer IDs LayerIds, Heaven == above document Hell == below document Controls == at the ver...
 
DocumentDrawModelManager(SwDoc &i_rSwdoc)
 
virtual SwDrawModel * MakeDrawModel_() override
 
SdrLayerID mnInvisibleHeaven
 
virtual SdrLayerID GetInvisibleLayerIdByVisibleOne(SdrLayerID _nVisibleLayerId) override
method to determine, if the corresponding invisible layer ID for a visible one.
 
virtual SdrLayerID GetInvisibleHeavenId() const override
 
virtual SdrLayerID GetInvisibleControlsId() const override
 
virtual SdrLayerID GetHellId() const override
 
SdrLayerID mnInvisibleHell
 
ring_container GetRingContainer()
 
#define EE_TEXTPOS_MAX_COUNT
 
#define EE_PARA_MAX_COUNT
 
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
 
EmbeddedObjectRef * pObject
 
std::set< SwPosFlyFrame, SwPosFlyFrameCmp > SwPosFlyFrames
 
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(165)
 
#define SAL_INFO(area, stream)
 
Dialog to specify the properties of date form field.
 
SVXCORE_DLLPUBLIC SdrTextObj * DynCastSdrTextObj(SdrObject *)
 
uno::Reference< linguistic2::XSpellChecker1 > GetSpellChecker()
 
uno::Reference< linguistic2::XHyphenator > GetHyphenator()