LibreOffice Module sw (master) 1
|
Make setting a drawing object's layer in a Writer document easy. More...
#include <writerhelper.hxx>
Public Member Functions | |
void | SendObjectToHell (SdrObject &rObject) const |
Make Object live in the bottom drawing layer. More... | |
void | SendObjectToHeaven (SdrObject &rObject) const |
Make Object lives in the top layer. More... | |
SetLayer (const SwDoc &rDoc) | |
Normal constructor. More... | |
Private Types | |
enum | Layer { eHeaven , eHell } |
Private Member Functions | |
void | SetObjectLayer (SdrObject &rObject, Layer eLayer) const |
Private Attributes | |
SdrLayerID | mnHeavenLayer |
SdrLayerID | mnHellLayer |
SdrLayerID | mnFormLayer |
Make setting a drawing object's layer in a Writer document easy.
Word has the simple concept of a drawing object either in the foreground and in the background. We have an additional complexity that form components live in a separate layer, which seems unnecessarily complicated. So in the winword filter we set the object's layer through this class with either SendObjectToHell for the bottom layer and SendObjectToHeaven for the top and we don't worry about the odd form layer design wrinkle.
Definition at line 473 of file writerhelper.hxx.
|
private |
Enumerator | |
---|---|
eHeaven | |
eHell |
Definition at line 477 of file writerhelper.hxx.
|
explicit |
Normal constructor.
rDoc | The Writer document whose drawing layers we will be inserting objects into |
Definition at line 372 of file writerhelper.cxx.
void sw::util::SetLayer::SendObjectToHeaven | ( | SdrObject & | rObject | ) | const |
Make Object lives in the top layer.
rObject | The object to be set to the top layer |
Definition at line 346 of file writerhelper.cxx.
References eHeaven, and SetObjectLayer().
Referenced by wwZOrderer::InsertDrawingObject(), wwZOrderer::InsertTextLayerObject(), and SwWW8ImplReader::Read_GrafLayer().
void sw::util::SetLayer::SendObjectToHell | ( | SdrObject & | rObject | ) | const |
Make Object live in the bottom drawing layer.
rObject | The object to be set to the bottom layer |
Definition at line 341 of file writerhelper.cxx.
References eHell, and SetObjectLayer().
Referenced by wwZOrderer::InsertDrawingObject(), and SwWW8ImplReader::Read_GrafLayer().
Definition at line 351 of file writerhelper.cxx.
References eHeaven, eHell, SdrObject::GetObjInventor(), mnFormLayer, mnHeavenLayer, mnHellLayer, and SdrObject::SetLayer().
Referenced by SendObjectToHeaven(), and SendObjectToHell().
|
private |
Definition at line 476 of file writerhelper.hxx.
Referenced by SetObjectLayer().
|
private |
Definition at line 476 of file writerhelper.hxx.
Referenced by SetObjectLayer().
|
private |
Definition at line 476 of file writerhelper.hxx.
Referenced by SetObjectLayer().