Changeset View
Changeset View
Standalone View
Standalone View
interfaces/idocumentcontroller.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 106 | public Q_SLOTS: | |||
---|---|---|---|---|---|
108 | * Opens a new or existing document. | 108 | * Opens a new or existing document. | ||
109 | * | 109 | * | ||
110 | * @param url The full Url of the document to open. | 110 | * @param url The full Url of the document to open. | ||
111 | * @param cursor The location information, if applicable. | 111 | * @param cursor The location information, if applicable. | ||
112 | * @param activationParams Indicates whether to fully activate the document. | 112 | * @param activationParams Indicates whether to fully activate the document. | ||
113 | */ | 113 | */ | ||
114 | KDevelop::IDocument* openDocument( const QUrl &url, | 114 | KDevelop::IDocument* openDocument( const QUrl &url, | ||
115 | const KTextEditor::Cursor& cursor, | 115 | const KTextEditor::Cursor& cursor, | ||
116 | DocumentActivationParams activationParams = nullptr, | 116 | DocumentActivationParams activationParams = {}, | ||
117 | const QString& encoding = {}); | 117 | const QString& encoding = {}); | ||
118 | 118 | | |||
119 | /** | 119 | /** | ||
120 | * Opens a new or existing document. | 120 | * Opens a new or existing document. | ||
121 | * | 121 | * | ||
122 | * @param url The full Url of the document to open. | 122 | * @param url The full Url of the document to open. | ||
123 | * @param range The range of text to select, if applicable. | 123 | * @param range The range of text to select, if applicable. | ||
124 | * @param activationParams Indicates whether to fully activate the document | 124 | * @param activationParams Indicates whether to fully activate the document | ||
125 | * @param buddy Optional buddy document. If 0, the registered IBuddyDocumentFinder | 125 | * @param buddy Optional buddy document. If 0, the registered IBuddyDocumentFinder | ||
126 | * for the URL's mimetype will be queried to find a fitting buddy. | 126 | * for the URL's mimetype will be queried to find a fitting buddy. | ||
127 | * If a buddy was found (or passed) @p url will be opened next | 127 | * If a buddy was found (or passed) @p url will be opened next | ||
128 | * to its buddy. | 128 | * to its buddy. | ||
129 | * | 129 | * | ||
130 | * @return The opened document | 130 | * @return The opened document | ||
131 | */ | 131 | */ | ||
132 | virtual KDevelop::IDocument* openDocument( const QUrl &url, | 132 | virtual KDevelop::IDocument* openDocument( const QUrl &url, | ||
133 | const KTextEditor::Range& range = KTextEditor::Range::invalid(), | 133 | const KTextEditor::Range& range = KTextEditor::Range::invalid(), | ||
134 | DocumentActivationParams activationParams = nullptr, | 134 | DocumentActivationParams activationParams = {}, | ||
135 | const QString& encoding = {}, | 135 | const QString& encoding = {}, | ||
136 | IDocument* buddy = nullptr) = 0; | 136 | IDocument* buddy = nullptr) = 0; | ||
137 | 137 | | |||
138 | /** | 138 | /** | ||
139 | * Opens a document from the IDocument instance. | 139 | * Opens a document from the IDocument instance. | ||
140 | * | 140 | * | ||
141 | * @param doc The IDocument to add | 141 | * @param doc The IDocument to add | ||
142 | * @param range The location information, if applicable. | 142 | * @param range The location information, if applicable. | ||
143 | * @param activationParams Indicates whether to fully activate the document. | 143 | * @param activationParams Indicates whether to fully activate the document. | ||
144 | * @param buddy Optional buddy document. If 0, the registered IBuddyDocumentFinder | 144 | * @param buddy Optional buddy document. If 0, the registered IBuddyDocumentFinder | ||
145 | * for the Documents mimetype will be queried to find a fitting buddy. | 145 | * for the Documents mimetype will be queried to find a fitting buddy. | ||
146 | * If a buddy was found (or passed) @p url will be opened next | 146 | * If a buddy was found (or passed) @p url will be opened next | ||
147 | * to its buddy. | 147 | * to its buddy. | ||
148 | */ | 148 | */ | ||
149 | virtual bool openDocument(IDocument* doc, | 149 | virtual bool openDocument(IDocument* doc, | ||
150 | const KTextEditor::Range& range = KTextEditor::Range::invalid(), | 150 | const KTextEditor::Range& range = KTextEditor::Range::invalid(), | ||
151 | DocumentActivationParams activationParams = nullptr, | 151 | DocumentActivationParams activationParams = {}, | ||
152 | IDocument* buddy = nullptr) = 0; | 152 | IDocument* buddy = nullptr) = 0; | ||
153 | 153 | | |||
154 | /** | 154 | /** | ||
155 | * Opens a new or existing document. | 155 | * Opens a new or existing document. | ||
156 | * | 156 | * | ||
157 | * @param url The full Url of the document to open. | 157 | * @param url The full Url of the document to open. | ||
158 | * @param prefName The name of the preferred KPart to open that document | 158 | * @param prefName The name of the preferred KPart to open that document | ||
159 | */ | 159 | */ | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |