Lines Matching refs:op
114 static DragOperation dragOpFromIEOp(const String& op)
117 if (op == "uninitialized")
119 if (op == "none")
121 if (op == "copy")
123 if (op == "link")
125 if (op == "move")
127 if (op == "copyLink")
129 if (op == "copyMove")
131 if (op == "linkMove")
133 if (op == "all")
138 static String IEOpFromDragOp(DragOperation op)
140 bool moveSet = !!((DragOperationGeneric | DragOperationMove) & op);
142 if ((moveSet && (op & DragOperationCopy) && (op & DragOperationLink))
143 || (op == DragOperationEvery))
145 if (moveSet && (op & DragOperationCopy))
147 if (moveSet && (op & DragOperationLink))
149 if ((op & DragOperationCopy) && (op & DragOperationLink))
153 if (op & DragOperationCopy)
155 if (op & DragOperationLink)
162 DragOperation op = dragOpFromIEOp(m_effectAllowed);
163 ASSERT(op != DragOperationPrivate);
164 return op;
169 DragOperation op = dragOpFromIEOp(m_dropEffect);
170 ASSERT(op == DragOperationCopy || op == DragOperationNone || op == DragOperationLink || op == (DragOperation)(DragOperationGeneric | DragOperationMove) || op == DragOperationEvery);
171 return op;
174 void Clipboard::setSourceOperation(DragOperation op)
176 ASSERT_ARG(op, op != DragOperationPrivate);
177 m_effectAllowed = IEOpFromDragOp(op);
180 void Clipboard::setDestinationOperation(DragOperation op)
182 ASSERT_ARG(op, op == DragOperationCopy || op == DragOperationNone || op == DragOperationLink || op == DragOperationGeneric || op == DragOperationMove || op == (DragOperation)(DragOperationGeneric | DragOperationMove));
183 m_dropEffect = IEOpFromDragOp(op);