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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #include <precomp.h>
23 #include <ary/info/ci_attag.hxx>
24 
25 
26 // NOT FULLY DEFINED SERVICES
27 #include <ary/info/all_dts.hxx>
28 #include <ary/info/ci_text.hxx>
29 
30 
31 namespace ary
32 {
33 namespace info
34 {
35 
36 void
Set_HtmlUseInDocuText(bool i_bUseIt)37 AtTag::Set_HtmlUseInDocuText( bool i_bUseIt )
38 {
39     DocuText * pText = Text();
40     if ( pText != 0 )
41         pText->Set_HtmlUse(i_bUseIt);
42 }
43 
44 void
Add_Token(const char * i_sText)45 AtTag::Add_Token( const char * i_sText )
46 {
47 	DocuText * pText = Text();
48 	if (pText != 0)
49 		pText->Add_Token( *new DT_Text(i_sText) );
50 }
51 
52 void
Add_PotentialLink(const char * i_sText,bool i_bIsGlobal,bool i_bIsFunction)53 AtTag::Add_PotentialLink( const char *	i_sText,
54                           bool          i_bIsGlobal,
55                           bool          i_bIsFunction )
56 {
57 	DocuText * pText = Text();
58 	if (pText != 0)
59 		pText->Add_Token( *new DT_MaybeLink(i_sText, i_bIsGlobal, i_bIsFunction) );
60 }
61 
62 void
Add_Whitespace(UINT8 i_nLength)63 AtTag::Add_Whitespace( UINT8 i_nLength )
64 {
65 	DocuText * pText = Text();
66 	if (pText != 0)
67 		pText->Add_Token( *new DT_Whitespace(i_nLength) );
68 }
69 
70 void
Add_Eol()71 AtTag::Add_Eol()
72 {
73 	DocuText * pText = Text();
74 	if (pText != 0)
75 		pText->Add_Token( *new DT_Eol );
76 }
77 
78 void
do_StoreAt(DocuDisplay &) const79 AtTag::do_StoreAt( DocuDisplay &  ) const
80 {
81     // Dummy
82 }
83 
84 }   // namespace info
85 }   // namespace ary
86 
87 
88