svdedxv.hxx (a56bd57b) svdedxv.hxx (69ffbee1)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 28 unchanged lines hidden (view full) ---

37#include <boost/shared_ptr.hpp>
38
39class SdrOutliner;
40class OutlinerView;
41class EditStatus;
42class EditFieldInfo;
43class ImpSdrEditPara;
44struct PasteOrDropInfos;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 28 unchanged lines hidden (view full) ---

37#include <boost/shared_ptr.hpp>
38
39class SdrOutliner;
40class OutlinerView;
41class EditStatus;
42class EditFieldInfo;
43class ImpSdrEditPara;
44struct PasteOrDropInfos;
45class SdrUndoManager;
45
46namespace com { namespace sun { namespace star { namespace uno {
47 class Any;
48} } } }
49
50namespace sdr {
51 class SelectionController;
52}

--- 43 unchanged lines hidden (view full) ---

96 SdrPageView* pMacroPV;
97 Window* pMacroWin;
98
99 Rectangle aTextEditArea;
100 Rectangle aMinTextEditArea;
101 Link aOldCalcFieldValueLink; // Zum rufen des alten Handlers
102 Point aMacroDownPos;
103
46
47namespace com { namespace sun { namespace star { namespace uno {
48 class Any;
49} } } }
50
51namespace sdr {
52 class SelectionController;
53}

--- 43 unchanged lines hidden (view full) ---

97 SdrPageView* pMacroPV;
98 Window* pMacroWin;
99
100 Rectangle aTextEditArea;
101 Rectangle aMinTextEditArea;
102 Link aOldCalcFieldValueLink; // Zum rufen des alten Handlers
103 Point aMacroDownPos;
104
104 sal_uInt16 nMacroTol;
105 sal_uInt16 nMacroTol;
105
106 unsigned bTextEditDontDelete : 1; // Outliner und View bei SdrEndTextEdit nicht deleten (f. Rechtschreibpruefung)
107 unsigned bTextEditOnlyOneView : 1; // Nur eine OutlinerView (f. Rechtschreibpruefung)
108 unsigned bTextEditNewObj : 1; // Aktuell editiertes Objekt wurde gerade neu erzeugt
109 unsigned bQuickTextEditMode : 1; // persistent(->CrtV). Default=TRUE
110 unsigned bMacroMode : 1; // persistent(->CrtV). Default=TRUE
111 unsigned bMacroDown : 1;
112
113 rtl::Reference< sdr::SelectionController > mxSelectionController;
114 rtl::Reference< sdr::SelectionController > mxLastSelectionController;
115
116private:
106
107 unsigned bTextEditDontDelete : 1; // Outliner und View bei SdrEndTextEdit nicht deleten (f. Rechtschreibpruefung)
108 unsigned bTextEditOnlyOneView : 1; // Nur eine OutlinerView (f. Rechtschreibpruefung)
109 unsigned bTextEditNewObj : 1; // Aktuell editiertes Objekt wurde gerade neu erzeugt
110 unsigned bQuickTextEditMode : 1; // persistent(->CrtV). Default=TRUE
111 unsigned bMacroMode : 1; // persistent(->CrtV). Default=TRUE
112 unsigned bMacroDown : 1;
113
114 rtl::Reference< sdr::SelectionController > mxSelectionController;
115 rtl::Reference< sdr::SelectionController > mxLastSelectionController;
116
117private:
118 ::svl::IUndoManager* mpOldTextEditUndoManager;
119
117 SVX_DLLPRIVATE void ImpClearVars();
118
119protected:
120 OutlinerView* ImpFindOutlinerView(Window* pWin) const;
121
122 // Eine neue OutlinerView auf dem Heap anlegen und alle erforderlichen Parameter setzen.
123 // pTextEditObj, pTextEditPV und pTextEditOutliner muessen initiallisiert sein.
124 OutlinerView* ImpMakeOutlinerView(Window* pWin, sal_Bool bNoPaint, OutlinerView* pGivenView) const;

--- 4 unchanged lines hidden (view full) ---

129 // kein Text vorhanden ist.
130 sal_Bool ImpIsTextEditAllSelected() const;
131 void ImpMakeTextCursorAreaVisible();
132
133 // Handler fuer AutoGrowing Text bei aktivem Outliner
134 DECL_LINK(ImpOutlinerStatusEventHdl,EditStatus*);
135 DECL_LINK(ImpOutlinerCalcFieldValueHdl,EditFieldInfo*);
136
120 SVX_DLLPRIVATE void ImpClearVars();
121
122protected:
123 OutlinerView* ImpFindOutlinerView(Window* pWin) const;
124
125 // Eine neue OutlinerView auf dem Heap anlegen und alle erforderlichen Parameter setzen.
126 // pTextEditObj, pTextEditPV und pTextEditOutliner muessen initiallisiert sein.
127 OutlinerView* ImpMakeOutlinerView(Window* pWin, sal_Bool bNoPaint, OutlinerView* pGivenView) const;

--- 4 unchanged lines hidden (view full) ---

132 // kein Text vorhanden ist.
133 sal_Bool ImpIsTextEditAllSelected() const;
134 void ImpMakeTextCursorAreaVisible();
135
136 // Handler fuer AutoGrowing Text bei aktivem Outliner
137 DECL_LINK(ImpOutlinerStatusEventHdl,EditStatus*);
138 DECL_LINK(ImpOutlinerCalcFieldValueHdl,EditFieldInfo*);
139
137 void ImpMacroUp(const Point& rUpPos);
140 // link for EndTextEditHdl
141 DECL_LINK(EndTextEditHdl, SdrUndoManager*);
142
143 void ImpMacroUp(const Point& rUpPos);
138 void ImpMacroDown(const Point& rDownPos);
139
140 DECL_LINK( BeginPasteOrDropHdl, PasteOrDropInfos* );
141 DECL_LINK( EndPasteOrDropHdl, PasteOrDropInfos* );
142
143protected:
144 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
145 SdrObjEditView(SdrModel* pModel1, OutputDevice* pOut = 0L);

--- 162 unchanged lines hidden ---
144 void ImpMacroDown(const Point& rDownPos);
145
146 DECL_LINK( BeginPasteOrDropHdl, PasteOrDropInfos* );
147 DECL_LINK( EndPasteOrDropHdl, PasteOrDropInfos* );
148
149protected:
150 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
151 SdrObjEditView(SdrModel* pModel1, OutputDevice* pOut = 0L);

--- 162 unchanged lines hidden ---