namespace Dali
{
-namespace Internal
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal
{
BidirectionalSupport::BidirectionalSupport()
}
-Dali::TextAbstraction::BidirectionalSupport BidirectionalSupport::Get()
+TextAbstraction::BidirectionalSupport BidirectionalSupport::Get()
{
- Dali::TextAbstraction::BidirectionalSupport bidirectionalSupportHandle;
+ TextAbstraction::BidirectionalSupport bidirectionalSupportHandle;
- Dali::SingletonService service( SingletonService::Get() );
- if ( service )
+ SingletonService service( SingletonService::Get() );
+ if( service )
{
- // Check whether the singleton is already created
- Dali::BaseHandle handle = service.GetSingleton( typeid( Dali::TextAbstraction::BidirectionalSupport ) );
- if(handle)
- {
- // If so, downcast the handle
- BidirectionalSupport* impl = dynamic_cast< Dali::Internal::TextAbstraction::BidirectionalSupport* >( handle.GetObjectPtr() );
- bidirectionalSupportHandle = Dali::TextAbstraction::BidirectionalSupport( impl );
- }
- else // create and register the object
- {
- bidirectionalSupportHandle = Dali::TextAbstraction::BidirectionalSupport( new BidirectionalSupport);
- service.Register( typeid( bidirectionalSupportHandle ), bidirectionalSupportHandle );
- }
- }
-
- return bidirectionalSupportHandle;
+ // Check whether the singleton is already created
+ BaseHandle handle = service.GetSingleton( typeid( TextAbstraction::BidirectionalSupport ) );
+ if(handle)
+ {
+ // If so, downcast the handle
+ BidirectionalSupport* impl = dynamic_cast< Internal::BidirectionalSupport* >( handle.GetObjectPtr() );
+ bidirectionalSupportHandle = TextAbstraction::BidirectionalSupport( impl );
+ }
+ else // create and register the object
+ {
+ bidirectionalSupportHandle = TextAbstraction::BidirectionalSupport( new BidirectionalSupport );
+ service.Register( typeid( bidirectionalSupportHandle ), bidirectionalSupportHandle );
+ }
+ }
+
+ return bidirectionalSupportHandle;
}
-Dali::TextAbstraction::BidiInfoIndex BidirectionalSupport::CreateInfo( const Dali::TextAbstraction::Character* const paragraph,
- Dali::TextAbstraction::Length numberOfCharacters )
+BidiInfoIndex BidirectionalSupport::CreateInfo( const Character* const paragraph,
+ Length numberOfCharacters )
{
return 0u;
}
-void BidirectionalSupport::DestroyInfo( Dali::TextAbstraction::BidiInfoIndex bidiInfoIndex )
+void BidirectionalSupport::DestroyInfo( BidiInfoIndex bidiInfoIndex )
{
}
-void BidirectionalSupport::Reorder( Dali::TextAbstraction::BidiInfoIndex bidiInfoIndex,
- Dali::TextAbstraction::CharacterIndex firstCharacterIndex,
- Dali::TextAbstraction::Length numberOfCharacters,
- Dali::TextAbstraction::CharacterIndex* visualToLogicalMap )
+void BidirectionalSupport::Reorder( BidiInfoIndex bidiInfoIndex,
+ CharacterIndex firstCharacterIndex,
+ Length numberOfCharacters,
+ CharacterIndex* visualToLogicalMap )
{
}
-} // namespace TextAbstraction
-
} // namespace Internal
+} // namespace TextAbstraction
+
} // namespace Dali
namespace Dali
{
-namespace Internal
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal
{
/**
* Implementation of the BidirectionalSupport
*/
-class BidirectionalSupport : public Dali::BaseObject
+class BidirectionalSupport : public Dali::BaseObject
{
public:
/**
* @copydoc Dali::BidirectionalSupport::Get()
*/
- static Dali::TextAbstraction::BidirectionalSupport Get();
+ static TextAbstraction::BidirectionalSupport Get();
/**
* @copydoc Dali::BidirectionalSupport::CreateInfo()
*/
- Dali::TextAbstraction::BidiInfoIndex CreateInfo( const Dali::TextAbstraction::Character* const paragraph,
- Dali::TextAbstraction::Length numberOfCharacters );
+ BidiInfoIndex CreateInfo( const Character* const paragraph,
+ Length numberOfCharacters );
/**
* @copydoc Dali::BidirectionalSupport::DestroyInfo()
*/
- void DestroyInfo( Dali::TextAbstraction::BidiInfoIndex bidiInfoIndex );
+ void DestroyInfo( BidiInfoIndex bidiInfoIndex );
/**
* @copydoc Dali::BidirectionalSupport::Reorder()
*/
- void Reorder( Dali::TextAbstraction::BidiInfoIndex bidiInfoIndex,
- Dali::TextAbstraction::CharacterIndex firstCharacterIndex,
- Dali::TextAbstraction::Length numberOfCharacters,
- Dali::TextAbstraction::CharacterIndex* visualToLogicalMap );
+ void Reorder( BidiInfoIndex bidiInfoIndex,
+ CharacterIndex firstCharacterIndex,
+ Length numberOfCharacters,
+ CharacterIndex* visualToLogicalMap );
private:
}; // class BidirectionalSupport
+} // namespace Internal
} // namespace TextAbstraction
-} // namespace Internal
-
-inline static Internal::TextAbstraction::BidirectionalSupport& GetImplementation(Dali::TextAbstraction::BidirectionalSupport& bidirectionalSupport)
+inline static TextAbstraction::Internal::BidirectionalSupport& GetImplementation( TextAbstraction::BidirectionalSupport& bidirectionalSupport )
{
DALI_ASSERT_ALWAYS( bidirectionalSupport && "bidirectional support handle is empty" );
BaseObject& handle = bidirectionalSupport.GetBaseObject();
- return static_cast<Internal::TextAbstraction::BidirectionalSupport&>(handle);
+ return static_cast<TextAbstraction::Internal::BidirectionalSupport&>(handle);
}
-inline static const Internal::TextAbstraction::BidirectionalSupport& GetImplementation(const Dali::TextAbstraction::BidirectionalSupport& bidirectionalSupport)
+inline static const TextAbstraction::Internal::BidirectionalSupport& GetImplementation( const TextAbstraction::BidirectionalSupport& bidirectionalSupport )
{
DALI_ASSERT_ALWAYS( bidirectionalSupport && "bidirectional support handle is empty" );
const BaseObject& handle = bidirectionalSupport.GetBaseObject();
- return static_cast<const Internal::TextAbstraction::BidirectionalSupport&>(handle);
+ return static_cast<const TextAbstraction::Internal::BidirectionalSupport&>(handle);
}
} // namespace Dali
namespace Dali
{
-namespace Internal
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal
{
Segmentation::Segmentation()
}
-Dali::TextAbstraction::Segmentation Segmentation::Get()
+TextAbstraction::Segmentation Segmentation::Get()
{
- Dali::TextAbstraction::Segmentation segmentationHandle;
+ TextAbstraction::Segmentation segmentationHandle;
- Dali::SingletonService service( SingletonService::Get() );
- if ( service )
+ SingletonService service( SingletonService::Get() );
+ if( service )
{
- // Check whether the singleton is already created
- Dali::BaseHandle handle = service.GetSingleton( typeid( Dali::TextAbstraction::Segmentation ) );
- if(handle)
- {
- // If so, downcast the handle
- Segmentation* impl = dynamic_cast< Dali::Internal::TextAbstraction::Segmentation* >( handle.GetObjectPtr() );
- segmentationHandle = Dali::TextAbstraction::Segmentation( impl );
- }
- else // create and register the object
- {
- segmentationHandle = Dali::TextAbstraction::Segmentation( new Segmentation);
- service.Register( typeid( segmentationHandle ), segmentationHandle );
- }
- }
+ // Check whether the singleton is already created
+ Dali::BaseHandle handle = service.GetSingleton( typeid( TextAbstraction::Segmentation ) );
+ if( handle )
+ {
+ // If so, downcast the handle
+ Segmentation* impl = dynamic_cast< Internal::Segmentation* >( handle.GetObjectPtr() );
+ segmentationHandle = TextAbstraction::Segmentation( impl );
+ }
+ else // create and register the object
+ {
+ segmentationHandle = TextAbstraction::Segmentation( new Segmentation);
+ service.Register( typeid( segmentationHandle ), segmentationHandle );
+ }
+ }
return segmentationHandle;
}
-void Segmentation::GetLineBreakPositions( const Dali::TextAbstraction::Character* const text,
- Dali::TextAbstraction::Length numberOfCharacters,
- Dali::TextAbstraction::LineBreakInfo* breakInfo )
+void Segmentation::GetLineBreakPositions( const Character* const text,
+ Length numberOfCharacters,
+ LineBreakInfo* breakInfo )
{
set_linebreaks_utf32( text, numberOfCharacters, NULL, breakInfo );
}
-void Segmentation::GetWordBreakPositions( const Dali::TextAbstraction::Character* const text,
- Dali::TextAbstraction::Length numberOfCharacters,
- Dali::TextAbstraction::WordBreakInfo* breakInfo )
+void Segmentation::GetWordBreakPositions( const Character* const text,
+ Length numberOfCharacters,
+ WordBreakInfo* breakInfo )
{
set_wordbreaks_utf32( text, numberOfCharacters, NULL, breakInfo );
}
-} // namespace TextAbstraction
-
} // namespace Internal
+} // namespace TextAbstraction
+
} // namespace Dali
namespace Dali
{
-namespace Internal
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal
{
/**
* Implementation of the Segmentation
*/
-class Segmentation : public Dali::BaseObject
+class Segmentation : public Dali::BaseObject
{
public:
/**
* @copydoc Dali::Segmentation::Get()
*/
- static Dali::TextAbstraction::Segmentation Get();
+ static TextAbstraction::Segmentation Get();
/**
* @copydoc Dali::Segmentation::GetLineBreakPositions()
*/
- void GetLineBreakPositions( const Dali::TextAbstraction::Character* const text,
- Dali::TextAbstraction::Length numberOfCharacters,
- Dali::TextAbstraction::LineBreakInfo* breakInfo );
+ void GetLineBreakPositions( const Character* const text,
+ Length numberOfCharacters,
+ LineBreakInfo* breakInfo );
/**
* @copydoc Dali::Segmentation::GetWordBreakPositions()
*/
- void GetWordBreakPositions( const Dali::TextAbstraction::Character* const text,
- Dali::TextAbstraction::Length numberOfCharacters,
- Dali::TextAbstraction::WordBreakInfo* breakInfo );
+ void GetWordBreakPositions( const Character* const text,
+ Length numberOfCharacters,
+ WordBreakInfo* breakInfo );
private:
}; // class Segmentation
+} // namespace Internal
} // namespace TextAbstraction
-} // namespace Internal
-
-inline static Internal::TextAbstraction::Segmentation& GetImplementation(Dali::TextAbstraction::Segmentation& reordering)
+inline static TextAbstraction::Internal::Segmentation& GetImplementation( TextAbstraction::Segmentation& segmentation )
{
- DALI_ASSERT_ALWAYS( reordering && "reordering handle is empty" );
- BaseObject& handle = reordering.GetBaseObject();
- return static_cast<Internal::TextAbstraction::Segmentation&>(handle);
+ DALI_ASSERT_ALWAYS( segmentation && "segmentation handle is empty" );
+ BaseObject& handle = segmentation.GetBaseObject();
+ return static_cast<TextAbstraction::Internal::Segmentation&>( handle );
}
-inline static const Internal::TextAbstraction::Segmentation& GetImplementation(const Dali::TextAbstraction::Segmentation& reordering)
+inline static const TextAbstraction::Internal::Segmentation& GetImplementation( const TextAbstraction::Segmentation& segmentation )
{
- DALI_ASSERT_ALWAYS( reordering && "reordering handle is empty" );
- const BaseObject& handle = reordering.GetBaseObject();
- return static_cast<const Internal::TextAbstraction::Segmentation&>(handle);
+ DALI_ASSERT_ALWAYS( segmentation && "segmentation handle is empty" );
+ const BaseObject& handle = segmentation.GetBaseObject();
+ return static_cast<const TextAbstraction::Internal::Segmentation&>( handle );
}
} // namespace Dali
namespace Dali
{
-namespace Internal
-{
-
namespace TextAbstraction
{
+namespace Internal
+{
Shaping::Shaping()
-:mPlugin(NULL)
+: mPlugin( NULL )
{
}
}
-Dali::TextAbstraction::Shaping Shaping::Get()
+TextAbstraction::Shaping Shaping::Get()
{
- Dali::TextAbstraction::Shaping shapingHandle;
+ TextAbstraction::Shaping shapingHandle;
- Dali::SingletonService service( SingletonService::Get() );
- if ( service )
+ SingletonService service( SingletonService::Get() );
+ if( service )
{
- // Check whether the singleton is already created
- Dali::BaseHandle handle = service.GetSingleton( typeid( Dali::TextAbstraction::Shaping ) );
- if(handle)
- {
- // If so, downcast the handle
- Shaping* impl = dynamic_cast< Dali::Internal::TextAbstraction::Shaping* >( handle.GetObjectPtr() );
- shapingHandle = Dali::TextAbstraction::Shaping( impl );
- }
- else // create and register the object
- {
- shapingHandle = Dali::TextAbstraction::Shaping( new Shaping);
- service.Register( typeid( shapingHandle ), shapingHandle );
- }
- }
+ // Check whether the singleton is already created
+ Dali::BaseHandle handle = service.GetSingleton( typeid( TextAbstraction::Shaping ) );
+ if( handle )
+ {
+ // If so, downcast the handle
+ Shaping* impl = dynamic_cast< Internal::Shaping* >( handle.GetObjectPtr() );
+ shapingHandle = TextAbstraction::Shaping( impl );
+ }
+ else // create and register the object
+ {
+ shapingHandle = TextAbstraction::Shaping( new Shaping );
+ service.Register( typeid( shapingHandle ), shapingHandle );
+ }
+ }
- return shapingHandle;
+ return shapingHandle;
}
-} // namespace Shaping
} // namespace Internal
+
+} // namespace TextAbstraction
+
} // namespace Dali
namespace Dali
{
-namespace Internal
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal
{
/**
* Implementation of the Shaping
*/
-
-class Shaping : public Dali::BaseObject
+class Shaping : public Dali::BaseObject
{
public:
/**
* @copydoc Dali::Shaping::Get()
*/
- static Dali::TextAbstraction::Shaping Get();
+ static TextAbstraction::Shaping Get();
private:
}; // class Shaping
+} // namespace Internal
} // namespace TextAbstraction
-} // namespace Internal
-
-inline static Internal::TextAbstraction::Shaping& GetImplementation(Dali::TextAbstraction::Shaping& shaping)
+inline static TextAbstraction::Internal::Shaping& GetImplementation( TextAbstraction::Shaping& shaping )
{
DALI_ASSERT_ALWAYS( shaping && "shaping handle is empty" );
BaseObject& handle = shaping.GetBaseObject();
- return static_cast<Internal::TextAbstraction::Shaping&>(handle);
+ return static_cast<TextAbstraction::Internal::Shaping&>( handle );
}
-inline static const Internal::TextAbstraction::Shaping& GetImplementation(const Dali::TextAbstraction::Shaping& shaping)
+inline static const TextAbstraction::Internal::Shaping& GetImplementation( const TextAbstraction::Shaping& shaping )
{
DALI_ASSERT_ALWAYS( shaping && "shaping handle is empty" );
const BaseObject& handle = shaping.GetBaseObject();
- return static_cast<const Internal::TextAbstraction::Shaping&>(handle);
+ return static_cast<const TextAbstraction::Internal::Shaping&>( handle );
}
} // namespace Dali
{
}
-BidirectionalSupport::BidirectionalSupport( Dali::Internal::TextAbstraction::BidirectionalSupport* implementation )
+BidirectionalSupport::BidirectionalSupport( Internal::BidirectionalSupport* implementation )
: BaseHandle( implementation )
{
}
BidirectionalSupport BidirectionalSupport::Get()
{
- return Dali::Internal::TextAbstraction::BidirectionalSupport::Get();
+ return Internal::BidirectionalSupport::Get();
}
BidiInfoIndex BidirectionalSupport::CreateInfo( const Character* const paragraph,
namespace Dali
{
-namespace Internal DALI_INTERNAL
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal DALI_INTERNAL
{
+
class BidirectionalSupport;
-} // TextAbstraction
+
} // Internal
+} // TextAbstraction
+
namespace TextAbstraction
{
-
/**
* BidirectionalSupport API
*
*
* @param[in] implementation a pointer to the internal bidirectional support object.
*/
- explicit DALI_INTERNAL BidirectionalSupport( Dali::Internal::TextAbstraction::BidirectionalSupport* implementation );
+ explicit DALI_INTERNAL BidirectionalSupport( Internal::BidirectionalSupport* implementation );
/**
* @brief Retrieve a handle to the BidirectionalSupport instance.
{
}
-Segmentation::Segmentation( Dali::Internal::TextAbstraction::Segmentation* implementation )
+Segmentation::Segmentation( Internal::Segmentation* implementation )
: BaseHandle( implementation )
{
}
Segmentation Segmentation::Get()
{
- return Dali::Internal::TextAbstraction::Segmentation::Get();
+ return Internal::Segmentation::Get();
}
void Segmentation::GetLineBreakPositions( const Character* const text,
namespace Dali
{
-namespace Internal DALI_INTERNAL
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal DALI_INTERNAL
{
+
class Segmentation;
-} // TextAbstraction
+
} // Internal
+} // TextAbstraction
+
namespace TextAbstraction
{
*
* @param[in] implementation A pointer to the internal segmentation object.
*/
- explicit DALI_INTERNAL Segmentation( Dali::Internal::TextAbstraction::Segmentation* implementation );
+ explicit DALI_INTERNAL Segmentation( Internal::Segmentation* implementation );
/**
* @brief Retrieve a handle to the Segmentation instance.
Shaping::Shaping()
{
}
+
Shaping::~Shaping()
{
}
-Shaping::Shaping(Dali::Internal::TextAbstraction::Shaping *impl)
- : BaseHandle(impl)
+
+Shaping::Shaping( Internal::Shaping *impl )
+: BaseHandle( impl )
{
}
Shaping Shaping::Get()
{
- return Dali::Internal::TextAbstraction::Shaping::Get();
+ return Internal::Shaping::Get();
}
namespace Dali
{
-namespace Internal DALI_INTERNAL
+namespace TextAbstraction
{
-namespace TextAbstraction
+namespace Internal DALI_INTERNAL
{
+
class Shaping;
-} // TextAbstraction
+
} // Internal
+} // TextAbstraction
+
namespace TextAbstraction
{
-
/**
* Shaping API
*
public:
- /**
- * @brief Create an uninitialized TextAbstraction handle.
- *
- */
- Shaping();
-
- /**
- * @brief Destructor
- *
- * This is non-virtual since derived Handle types must not contain data or virtual methods.
- */
- ~Shaping();
-
- /**
- * @brief This constructor is used by Shaping::Get().
- *
- * @param[in] shaping A pointer to the internal shaping object.
- */
- explicit DALI_INTERNAL Shaping( Dali::Internal::TextAbstraction::Shaping* shaping);
-
- /**
- * @brief Retrieve a handle to the Shaping instance.
- *
- * @return A handle to the Shaping
- */
- static Shaping Get();
+ /**
+ * @brief Create an uninitialized TextAbstraction handle.
+ *
+ */
+ Shaping();
+
+ /**
+ * @brief Destructor
+ *
+ * This is non-virtual since derived Handle types must not contain data or virtual methods.
+ */
+ ~Shaping();
+
+ /**
+ * @brief This constructor is used by Shaping::Get().
+ *
+ * @param[in] shaping A pointer to the internal shaping object.
+ */
+ explicit DALI_INTERNAL Shaping( Internal::Shaping* shaping);
+
+ /**
+ * @brief Retrieve a handle to the Shaping instance.
+ *
+ * @return A handle to the Shaping
+ */
+ static Shaping Get();
};