• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "bridge/declarative_frontend/jsview/models/richeditor_model_impl.h"
17 
18 namespace OHOS::Ace::Framework {
Create()19 void RichEditorModelImpl::Create() {}
20 
GetRichEditorController()21 RefPtr<RichEditorControllerBase> RichEditorModelImpl::GetRichEditorController()
22 {
23     return nullptr;
24 }
25 
SetOnReady(std::function<void ()> && func)26 void RichEditorModelImpl::SetOnReady(std::function<void()>&& func) {}
27 
SetOnSelect(std::function<void (const BaseEventInfo *)> && func)28 void RichEditorModelImpl::SetOnSelect(std::function<void(const BaseEventInfo*)>&& func) {}
29 
SetAboutToIMEInput(std::function<bool (const NG::RichEditorInsertValue &)> && func)30 void RichEditorModelImpl::SetAboutToIMEInput(std::function<bool(const NG::RichEditorInsertValue&)>&& func) {}
31 
SetOnIMEInputComplete(std::function<void (const NG::RichEditorAbstractSpanResult &)> && func)32 void RichEditorModelImpl::SetOnIMEInputComplete(std::function<void(const NG::RichEditorAbstractSpanResult&)>&& func) {}
33 
SetAboutToDelete(std::function<bool (const NG::RichEditorDeleteValue &)> && func)34 void RichEditorModelImpl::SetAboutToDelete(std::function<bool(const NG::RichEditorDeleteValue&)>&& func) {}
35 
SetOnDeleteComplete(std::function<void ()> && func)36 void RichEditorModelImpl::SetOnDeleteComplete(std::function<void()>&& func) {}
37 
SetCustomKeyboard(std::function<void ()> && func)38 void RichEditorModelImpl::SetCustomKeyboard(std::function<void()>&& func) {}
39 
SetCopyOption(CopyOptions & copyOptions)40 void RichEditorModelImpl::SetCopyOption(CopyOptions& copyOptions) {}
41 
BindSelectionMenu(RichEditorType & editorType,ResponseType & responseType,std::function<void ()> & buildFunc,SelectMenuParam & menuParam)42 void RichEditorModelImpl::BindSelectionMenu(RichEditorType& editorType, ResponseType& responseType,
43     std::function<void()>& buildFunc, SelectMenuParam& menuParam) {}
44 } // namespace OHOS::Ace::Framework
45